diff options
author | Timothy Pearson <[email protected]> | 2013-04-06 16:57:38 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-04-06 16:57:38 -0500 |
commit | aa0b92c035cc0b060af4bfa9e512792884ac2dc1 (patch) | |
tree | 96e80cd34541655b82c0a616506334c5b2fab51c /tdm/kfrontend/sakdlg.h | |
parent | 091b1eface0a6172927a481c8d7e4030f3d2d0b9 (diff) | |
download | tdebase-aa0b92c035cc0b060af4bfa9e512792884ac2dc1.tar.gz tdebase-aa0b92c035cc0b060af4bfa9e512792884ac2dc1.zip |
Use threading and select instead of busywaiting on TDM control socket
This partially resolves Bug 690
Clean up TDM logfile
Diffstat (limited to 'tdm/kfrontend/sakdlg.h')
-rw-r--r-- | tdm/kfrontend/sakdlg.h | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/tdm/kfrontend/sakdlg.h b/tdm/kfrontend/sakdlg.h index cb4dcec05..22d5ec869 100644 --- a/tdm/kfrontend/sakdlg.h +++ b/tdm/kfrontend/sakdlg.h @@ -8,16 +8,20 @@ #ifndef __SAKDLG_H__ #define __SAKDLG_H__ +#include <tqthread.h> #include <tqdialog.h> #include <tqstringlist.h> #include <kprocess.h> +#include "kgreeter.h" + class TQFrame; class TQGridLayout; class TQLabel; class KPushButton; class TQListView; +class SAKDlg; //=========================================================================== // @@ -38,26 +42,28 @@ public: private slots: void slotSAKProcessExited(); - void handleInputPipe(); + void processInputPipeCommand(TQString command); protected slots: virtual void reject(); private: - TQFrame *frame; - TQGridLayout *frameLayout; - TQLabel *mStatusLabel; - int mCapsLocked; - bool mUnlockingFailed; - TQStringList layoutsList; - TQStringList::iterator currLayout; - int sPid, sFd; - TDEProcess* mSAKProcess; - int mPipe_fd; - TQString mPipeFilename; + TQFrame *frame; + TQGridLayout *frameLayout; + TQLabel *mStatusLabel; + int mCapsLocked; + bool mUnlockingFailed; + TQStringList layoutsList; + TQStringList::iterator currLayout; + int sPid, sFd; + TDEProcess* mSAKProcess; + ControlPipeHandlerObject* mControlPipeHandler; + TQEventLoopThread* mControlPipeHandlerThread; protected: - bool closingDown; + bool closingDown; + + friend class ControlPipeHandlerObject; }; #endif |