author | zautrix <zautrix> | 2004-10-04 17:32:48 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-04 17:32:48 (UTC) |
commit | 2a99a7ca0816fd68b7fcf2f1fee023aef019000d (patch) (side-by-side diff) | |
tree | cef1bc6813689ecc05ef8d1d4323947adeabafcb /korganizer/mainwindow.h | |
parent | 01b5806c61deb8368f8f454fdec1c4767c73a840 (diff) | |
download | kdepimpi-2a99a7ca0816fd68b7fcf2f1fee023aef019000d.zip kdepimpi-2a99a7ca0816fd68b7fcf2f1fee023aef019000d.tar.gz kdepimpi-2a99a7ca0816fd68b7fcf2f1fee023aef019000d.tar.bz2 |
more sync fixes
-rw-r--r-- | korganizer/mainwindow.h | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h index d217578..11a816c 100644 --- a/korganizer/mainwindow.h +++ b/korganizer/mainwindow.h @@ -48,2 +48,30 @@ private slots: +class KCommandSocket : public QObject +{ + Q_OBJECT + +public: + KCommandSocket ( QString password, Q_UINT16 port, QString host, QObject * parent=0, const char * name=0 ); + void readFile( QString ); + void writeFile( QString ); + + +signals: + void commandFinished( bool ); +private slots: + void startReadFileFromSocket(); + void readFileFromSocket(); + void deleteSocket(); + private : + QSocket* mSocket; + QString mPassWord; + Q_UINT16 mPort; + QString mHost; + QString mFileName; + QTimer* mTimerSocket; + bool mRetVal; + QTime mTime; + QString mFileString; + bool mFirst; +}; @@ -123,3 +151,3 @@ class MainWindow : public QMainWindow QTime piTime; - void deleteCommandSocket(); + void deleteCommandSocket(bool); void deleteCommandSocketFinish(); @@ -132,5 +160,5 @@ class MainWindow : public QMainWindow private: - QTimer* mTimerCommandSocket; + //QTimer* mTimerCommandSocket; QString mPassWordPiSync; - QSocket* mCommandSocket; + KCommandSocket* mCommandSocket; QSocket* mCommandSocketFinish; |