diff options
author | Slávek Banko <[email protected]> | 2014-02-25 19:17:41 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2014-02-25 19:17:41 +0100 |
commit | a8d432483204f80e11c83ea9dbc311882d9289d8 (patch) | |
tree | 47073c5daf063fb8893dfe01f9cee5d359cad15d /kdesktop/lockeng.h | |
parent | a7e7483aaa86a336f1e55b132a2d4feaa5c3a157 (diff) | |
download | tdebase-a8d432483204f80e11c83ea9dbc311882d9289d8.tar.gz tdebase-a8d432483204f80e11c83ea9dbc311882d9289d8.zip |
Add systemd support into kdesktop
+ response to systemd signal Lock()
+ setting SetIdleHint(true / false) by screen saver activity
Diffstat (limited to 'kdesktop/lockeng.h')
-rw-r--r-- | kdesktop/lockeng.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/kdesktop/lockeng.h b/kdesktop/lockeng.h index b211c73e9..70bde3281 100644 --- a/kdesktop/lockeng.h +++ b/kdesktop/lockeng.h @@ -15,7 +15,11 @@ #include "xautolock.h" #include "xautolock_c.h" +#include <tqdbusconnection.h> + class DCOPClientTransaction; +class TQT_DBusMessage; +class TQT_DBusProxy; //=========================================================================== /** @@ -82,6 +86,7 @@ public slots: void slotLockProcessWaiting(); void slotLockProcessFullyActivated(); void slotLockProcessReady(); + void handleDBusSignal(const TQT_DBusMessage&); protected slots: void idleTimeout(); @@ -98,8 +103,14 @@ private slots: void enableExports(); void recoverFromHackingAttempt(); + bool dBusReconnect(); + private: bool restartDesktopLockProcess(); + void dBusClose(); + bool dBusConnect(); + void onDBusServiceRegistered(const TQString&); + void onDBusServiceUnregistered(const TQString&); protected: enum LockType { DontLock, DefaultLock, ForceLock, SecureDialog }; @@ -131,6 +142,10 @@ private: TDEProcess* mSAKProcess; bool mTerminationRequested; bool mSaverProcessReady; + TQT_DBusConnection dBusConn; + TQT_DBusProxy* dBusLocal; + TQT_DBusProxy* dBusWatch; + TQT_DBusProxy* systemdSession; }; #endif |