Mir
Public Member Functions | List of all members
mir::frontend::AuthorizingDisplayChanger Class Reference

Adaptor to selectively permit display configuration calls. More...

#include <authorizing_display_changer.h>

Inheritance diagram for mir::frontend::AuthorizingDisplayChanger:
[legend]

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::DisplayConfigurationbase_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
 
void preview_base_configuration (std::weak_ptr< Session > const &, std::shared_ptr< graphics::DisplayConfiguration > const &, std::chrono::seconds) override
 
void confirm_base_configuration (std::shared_ptr< Session > const &, std::shared_ptr< graphics::DisplayConfiguration > const &) override
 
- Public Member Functions inherited from mir::frontend::DisplayChanger
virtual ~DisplayChanger ()=default
 
virtual void configure (std::shared_ptr< Session > const &, std::shared_ptr< graphics::DisplayConfiguration > const &)=0
 

Additional Inherited Members

- Protected Member Functions inherited from mir::frontend::DisplayChanger
 DisplayChanger ()=default
 
 DisplayChanger (DisplayChanger const &)=delete
 
DisplayChangeroperator= (DisplayChanger const &)=delete
 

Detailed Description

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.

Constructor & Destructor Documentation

mir::frontend::AuthorizingDisplayChanger::AuthorizingDisplayChanger ( std::shared_ptr< frontend::DisplayChanger > const &  changer,
bool  configuration_is_authorized,
bool  base_configuration_modification_is_authorized 
)

Member Function Documentation

std::shared_ptr< mg::DisplayConfiguration > mir::frontend::AuthorizingDisplayChanger::base_configuration ( )
overridevirtual
void mir::frontend::AuthorizingDisplayChanger::configure ( std::shared_ptr< frontend::Session > const &  ,
std::shared_ptr< graphics::DisplayConfiguration > const &   
)
override
void mir::frontend::AuthorizingDisplayChanger::confirm_base_configuration ( std::shared_ptr< Session > const &  session,
std::shared_ptr< graphics::DisplayConfiguration > const &  config 
)
overridevirtual
void mir::frontend::AuthorizingDisplayChanger::preview_base_configuration ( std::weak_ptr< Session > const &  session,
std::shared_ptr< graphics::DisplayConfiguration > const &  config,
std::chrono::seconds  timeout 
)
overridevirtual
void mir::frontend::AuthorizingDisplayChanger::set_base_configuration ( std::shared_ptr< graphics::DisplayConfiguration > const &  config)
overridevirtual

The documentation for this class was generated from the following files:

Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Sep 8 14:50:19 UTC 2016