Unity 8
 All Classes Functions Properties
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 <QObject>
21 
29 class DBusUnitySessionService : public QObject
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 
55  void logoutReady();
56 
57 public Q_SLOTS:
67  Q_SCRIPTABLE void Logout();
68 
78  Q_SCRIPTABLE void RequestLogout();
79 
80 };
81 
82 #endif // DBUSUNITYSESSIONSERVICE_H
void logoutRequested(bool have_inhibitors)