Mir
|
Adaptor to selectively permit display configuration calls. More...
#include <authorizing_display_changer.h>
Public Member Functions | |
AuthorizingDisplayChanger (std::shared_ptr< frontend::DisplayChanger > const &changer, bool configuration_is_authorized, bool base_configuration_modification_is_authorized) | |
std::shared_ptr< graphics::DisplayConfiguration > | base_configuration () override |
void | configure (std::shared_ptr< frontend::Session > const &, std::shared_ptr< graphics::DisplayConfiguration > const &) override |
void | set_base_configuration (std::shared_ptr< graphics::DisplayConfiguration > const &) override |
![]() | |
virtual | ~DisplayChanger ()=default |
virtual void | configure (std::shared_ptr< Session > const &, std::shared_ptr< graphics::DisplayConfiguration > const &)=0 |
Additional Inherited Members | |
![]() | |
DisplayChanger ()=default | |
DisplayChanger (DisplayChanger const &)=delete | |
DisplayChanger & | operator= (DisplayChanger const &)=delete |
Adaptor to selectively permit display configuration calls.
Wraps an authorization layer around an existing frontend::DisplayChanger.
Authorization is set at construction time, and is then immutable.
Authorisation for client-specific "session" display changes is separate from authorization for system-wide default display changes. Neither imply the other.
mir::frontend::AuthorizingDisplayChanger::AuthorizingDisplayChanger | ( | std::shared_ptr< frontend::DisplayChanger > const & | changer, |
bool | configuration_is_authorized, | ||
bool | base_configuration_modification_is_authorized | ||
) |
|
overridevirtual |
Implements mir::frontend::DisplayChanger.
|
override |
|
overridevirtual |
Implements mir::frontend::DisplayChanger.
Copyright © 2012-2015 Canonical Ltd.
Generated on Wed Mar 30 00:29:56 UTC 2016