17 #ifndef DBUSUNITYSESSIONSERVICE_H
18 #define DBUSUNITYSESSIONSERVICE_H
20 #include <QDBusObjectPath>
22 #include "unitydbusobject.h"
24 typedef QList<QDBusObjectPath> QDbusList;
25 Q_DECLARE_METATYPE(QList<QDBusObjectPath>)
37 Q_CLASSINFO(
"D-Bus Interface",
"com.canonical.Unity.Session")
44 Q_INVOKABLE
void logout() { Logout(); }
45 Q_INVOKABLE
void reboot() { Reboot(); }
46 Q_INVOKABLE
void shutdown() { Shutdown(); }
47 Q_INVOKABLE
void endSession() { EndSession(); }
58 Q_SCRIPTABLE
void logoutRequested(
bool have_inhibitors);
68 Q_SCRIPTABLE
void rebootRequested(
bool have_inhibitors);
78 Q_SCRIPTABLE
void shutdownRequested(
bool have_inhibitors);
97 Q_SCRIPTABLE
void Logout();
106 Q_SCRIPTABLE
void Reboot();
115 Q_SCRIPTABLE
void Shutdown();
125 Q_SCRIPTABLE
void RequestLogout();
135 Q_SCRIPTABLE
void RequestReboot();
146 Q_SCRIPTABLE
void RequestShutdown();
154 Q_SCRIPTABLE
void EndSession();
157 class DBusGnomeSessionManagerWrapper :
public UnityDBusObject
160 Q_CLASSINFO(
"D-Bus Interface",
"org.gnome.SessionManager.EndSessionDialog")
163 DBusGnomeSessionManagerWrapper();
164 ~DBusGnomeSessionManagerWrapper();
167 Q_SCRIPTABLE
void Open(const
unsigned int type, const
unsigned int arg_1, const
unsigned int max_wait, const QList<QDBusObjectPath> &inhibitors);
169 #endif // DBUSUNITYSESSIONSERVICE_H