summaryrefslogtreecommitdiffstats
path: root/kdesktop/lockeng.h
diff options
context:
space:
mode:
Diffstat (limited to 'kdesktop/lockeng.h')
-rw-r--r--kdesktop/lockeng.h15
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