diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-04-07 04:18:36 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-04-07 04:18:36 +0000 |
commit | c97349f53a15c930ce1f5f53ef37c44318a1981a (patch) | |
tree | 6064071088838d50234a4b6fe9d855e7136dea74 /kdesktop/lock/lockprocess.h | |
parent | 1c9a50141d128a02150d0adca3684f957e3e994f (diff) | |
download | tdebase-c97349f53a15c930ce1f5f53ef37c44318a1981a.tar.gz tdebase-c97349f53a15c930ce1f5f53ef37c44318a1981a.zip |
Added initial support for pipe-based root-only control of all running kdesktop_lock processes
Right now this allows a background authentication process to display pop-up status messages on all screens
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1111946 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdesktop/lock/lockprocess.h')
-rw-r--r-- | kdesktop/lock/lockprocess.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/kdesktop/lock/lockprocess.h b/kdesktop/lock/lockprocess.h index d7043e64d..18a624d57 100644 --- a/kdesktop/lock/lockprocess.h +++ b/kdesktop/lock/lockprocess.h @@ -29,6 +29,9 @@ struct GreeterPluginHandle { kgreeterplugin_info *info; }; +#define FIFO_DIR "/tmp/ksocket-global" +#define FIFO_FILE "/tmp/ksocket-global/kdesktoplockcontrol" + //=========================================================================== // // Screen saver handling process. Handles screensaver window, @@ -53,11 +56,12 @@ public: void msgBox( QMessageBox::Icon type, const QString &txt ); int execDialog( QDialog* dlg ); - + public slots: void quitSaver(); void preparePopup(); void cleanupPopup(); + void checkPipe(); protected: virtual bool x11Event(XEvent *); @@ -89,6 +93,7 @@ private: bool startHack(); void stopHack(); void setupSignals(); + void setupPipe(); bool checkPass(); void stayOnTop(); void lockXF86(); @@ -125,6 +130,12 @@ private: int mAutoLogoutTimerId; int mAutoLogoutTimeout; bool mAutoLogout; + bool mInfoMessageDisplayed; + QDialog *currentDialog; + bool mForceReject; + + bool mPipeOpen; + int mPipe_fd; }; #endif |