Unity 8
 All Classes Functions
dbusunitysessionservice.h
1 /*
2  * Copyright (C) 2014 Canonical, Ltd.
3  *
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.
7  *
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.
12  *
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/>.
15  */
16 
17 #ifndef DBUSUNITYSESSIONSERVICE_H
18 #define DBUSUNITYSESSIONSERVICE_H
19 
20 #include "unitydbusobject.h"
21 
29 class DBusUnitySessionService : public UnityDBusObject
30 {
31  Q_OBJECT
32  Q_CLASSINFO("D-Bus Interface", "com.canonical.Unity.Session")
33 
34 public:
37 
38 Q_SIGNALS:
47  void logoutRequested(bool have_inhibitors);
48 
57  void rebootRequested(bool have_inhibitors);
58 
67  void shutdownRequested(bool have_inhibitors);
68 
69 
76  void logoutReady();
77 
78 public Q_SLOTS:
86  Q_SCRIPTABLE void Logout();
87 
95  Q_SCRIPTABLE void Reboot();
96 
104  Q_SCRIPTABLE void Shutdown();
105 
114  Q_SCRIPTABLE void RequestLogout();
115 
124  Q_SCRIPTABLE void RequestReboot();
125 
135  Q_SCRIPTABLE void RequestShutdown();
136 
137 };
138 
139 #endif // DBUSUNITYSESSIONSERVICE_H
void shutdownRequested(bool have_inhibitors)
Q_SCRIPTABLE void RequestShutdown()
void logoutRequested(bool have_inhibitors)
void rebootRequested(bool have_inhibitors)