2
* Copyright (C) 2013-2015 Canonical, Ltd.
4
* This program is free software: you can redistribute it and/or modify it under
5
* the terms of the GNU Lesser General Public License version 3, as published by
6
* the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful, but WITHOUT
9
* ANY WARRANTY; without even the implied warranties of MERCHANTABILITY,
10
* SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
* Lesser General Public License for more details.
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
#ifndef SESSIONAUTHORIZER_H
18
#define SESSIONAUTHORIZER_H
24
#include <miral/application_authorizer.h>
29
class SessionAuthorizer : public QObject, public miral::ApplicationAuthorizer
34
SessionAuthorizer(QObject *parent = 0);
37
bool connection_is_allowed(miral::ApplicationCredentials const& creds) override;
38
bool configure_display_is_allowed(miral::ApplicationCredentials const& creds) override;
39
bool set_base_display_configuration_is_allowed(miral::ApplicationCredentials const& creds) override;
40
bool screencast_is_allowed(miral::ApplicationCredentials const& creds) override;
41
bool prompt_session_is_allowed(miral::ApplicationCredentials const& creds) override;
44
// needs to be blocked queued signal which returns value for authorized
45
void requestAuthorizationForSession(const pid_t &pid, bool &authorized);
48
bool m_connectionChecked;
51
#endif // SESSIONAUTHORIZER_H