-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; |