19 #ifndef MIRAL_APPLICATION_AUTHORIZER_H 20 #define MIRAL_APPLICATION_AUTHORIZER_H 22 #include <sys/types.h> 25 namespace mir {
class Server; }
26 namespace mir {
namespace frontend {
class SessionCredentials; } }
42 mir::frontend::SessionCredentials
const& creds;
66 void operator()(mir::Server& server);
67 auto the_application_authorizer()
const -> std::shared_ptr<ApplicationAuthorizer>;
71 std::shared_ptr<Self>
self;
74 template<
typename Policy>
78 template<
typename ...Args>
83 {
return std::static_pointer_cast<Policy>(the_application_authorizer()); }
87 #endif //MIRAL_APPLICATION_AUTHORIZER_H Definition: active_outputs.h:25
Definition: application_authorizer.h:45
auto the_custom_application_authorizer() const -> std::shared_ptr< Policy >
Definition: application_authorizer.h:82
SetApplicationAuthorizer(Args const &...args)
Definition: application_authorizer.h:79
Definition: application_authorizer.h:60
Definition: application_authorizer.h:75
Definition: application_authorizer.h:30
Mir Abstraction Layer.
Definition: active_outputs.h:27