author | zautrix <zautrix> | 2004-10-04 17:32:48 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-04 17:32:48 (UTC) |
commit | 2a99a7ca0816fd68b7fcf2f1fee023aef019000d (patch) (unidiff) | |
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: | |||
48 | 48 | ||
49 | class KCommandSocket : public QObject | ||
50 | { | ||
51 | Q_OBJECT | ||
52 | |||
53 | public: | ||
54 | KCommandSocket ( QString password, Q_UINT16 port, QString host, QObject * parent=0, const char * name=0 ); | ||
55 | void readFile( QString ); | ||
56 | void writeFile( QString ); | ||
57 | |||
58 | |||
59 | signals: | ||
60 | void commandFinished( bool ); | ||
61 | private slots: | ||
62 | void startReadFileFromSocket(); | ||
63 | void readFileFromSocket(); | ||
64 | void deleteSocket(); | ||
65 | private : | ||
66 | QSocket* mSocket; | ||
67 | QString mPassWord; | ||
68 | Q_UINT16 mPort; | ||
69 | QString mHost; | ||
70 | QString mFileName; | ||
71 | QTimer* mTimerSocket; | ||
72 | bool mRetVal; | ||
73 | QTime mTime; | ||
74 | QString mFileString; | ||
75 | bool mFirst; | ||
76 | }; | ||
49 | 77 | ||
@@ -123,3 +151,3 @@ class MainWindow : public QMainWindow | |||
123 | QTime piTime; | 151 | QTime piTime; |
124 | void deleteCommandSocket(); | 152 | void deleteCommandSocket(bool); |
125 | void deleteCommandSocketFinish(); | 153 | void deleteCommandSocketFinish(); |
@@ -132,5 +160,5 @@ class MainWindow : public QMainWindow | |||
132 | private: | 160 | private: |
133 | QTimer* mTimerCommandSocket; | 161 | //QTimer* mTimerCommandSocket; |
134 | QString mPassWordPiSync; | 162 | QString mPassWordPiSync; |
135 | QSocket* mCommandSocket; | 163 | KCommandSocket* mCommandSocket; |
136 | QSocket* mCommandSocketFinish; | 164 | QSocket* mCommandSocketFinish; |