@@ -46,6 +46,8 @@ public:
46 Q_INVOKABLE void shutdown() { Shutdown(); }
46 Q_INVOKABLE void shutdown() { Shutdown(); }
47 Q_INVOKABLE void endSession() { EndSession(); }
47 Q_INVOKABLE void endSession() { EndSession(); }
49+ // TODO: remove duplicate signals and split D-Bus and QML API's
50+ // Apparently QML needs the signals in lowercase, while DBUS spec needs the uppercase version
51 * LogoutRequested signal
53 * LogoutRequested signal
@@ -56,6 +58,7 @@ Q_SIGNALS:
56 * which inhibit the logout.
58 * which inhibit the logout.
58 Q_SCRIPTABLE void LogoutRequested(bool have_inhibitors);
60 Q_SCRIPTABLE void LogoutRequested(bool have_inhibitors);
61+ void logoutRequested(bool have_inhibitors);
61 * RebootRequested signal
64 * RebootRequested signal
@@ -66,6 +69,7 @@ Q_SIGNALS:
66 * which inhibit the reboot.
69 * which inhibit the reboot.
68 Q_SCRIPTABLE void RebootRequested(bool have_inhibitors);
71 Q_SCRIPTABLE void RebootRequested(bool have_inhibitors);
72+ void rebootRequested(bool have_inhibitors);
71 * ShutdownRequested signal
75 * ShutdownRequested signal
@@ -76,6 +80,7 @@ Q_SIGNALS:
76 * which inhibit the shutdown.
80 * which inhibit the shutdown.
78 Q_SCRIPTABLE void ShutdownRequested(bool have_inhibitors);
82 Q_SCRIPTABLE void ShutdownRequested(bool have_inhibitors);
83+ void shutdownRequested(bool have_inhibitors);
81 * LogoutReady signal
86 * LogoutReady signal
@@ -84,11 +89,13 @@ Q_SIGNALS:
84 * is safe to logout.
89 * is safe to logout.
86 Q_SCRIPTABLE void LogoutReady();
91 Q_SCRIPTABLE void LogoutReady();
89 * Emitted as a result of calling PromptLock()
95 * Emitted as a result of calling PromptLock()
91 Q_SCRIPTABLE void LockRequested();
97 Q_SCRIPTABLE void LockRequested();
98+ void lockRequested();
94 * Emitted after the session has been locked.
101 * Emitted after the session has been locked.