-rw-r--r-- | korganizer/mainwindow.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h index 8b76067..5a67765 100644 --- a/korganizer/mainwindow.h +++ b/korganizer/mainwindow.h | |||
@@ -48,8 +48,9 @@ private slots: | |||
48 | void readBackFileFromSocket(); | 48 | void readBackFileFromSocket(); |
49 | private : | 49 | private : |
50 | void send_file(); | 50 | void send_file(); |
51 | void get_file(); | 51 | void get_file(); |
52 | void end_connect(); | ||
52 | QDialog* mSyncActionDialog; | 53 | QDialog* mSyncActionDialog; |
53 | QSocket* mSocket; | 54 | QSocket* mSocket; |
54 | QString mPassWord; | 55 | QString mPassWord; |
55 | QString mFileName; | 56 | QString mFileName; |
@@ -64,12 +65,13 @@ class KCommandSocket : public QObject | |||
64 | public: | 65 | public: |
65 | KCommandSocket ( QString password, Q_UINT16 port, QString host, QObject * parent=0, const char * name=0 ); | 66 | KCommandSocket ( QString password, Q_UINT16 port, QString host, QObject * parent=0, const char * name=0 ); |
66 | void readFile( QString ); | 67 | void readFile( QString ); |
67 | void writeFile( QString ); | 68 | void writeFile( QString ); |
69 | void sendStop(); | ||
68 | 70 | ||
69 | 71 | ||
70 | signals: | 72 | signals: |
71 | void commandFinished( bool ); | 73 | void commandFinished( KCommandSocket*, bool ); |
72 | private slots: | 74 | private slots: |
73 | void startReadFileFromSocket(); | 75 | void startReadFileFromSocket(); |
74 | void readFileFromSocket(); | 76 | void readFileFromSocket(); |
75 | void deleteSocket(); | 77 | void deleteSocket(); |
@@ -159,21 +161,16 @@ class MainWindow : public QMainWindow | |||
159 | private slots: | 161 | private slots: |
160 | QSocket* piSocket; | 162 | QSocket* piSocket; |
161 | QString piFileString; | 163 | QString piFileString; |
162 | QTime piTime; | 164 | QTime piTime; |
163 | void deleteCommandSocket(bool); | 165 | void deleteCommandSocket(KCommandSocket* s, bool success); |
164 | void deleteCommandSocketFinish(); | 166 | void deleteCommandSocketFinish(KCommandSocket* s, bool success); |
165 | void fillSyncMenu(); | 167 | void fillSyncMenu(); |
166 | void sendFile(QSocket* s); | ||
167 | void getFile( bool ); | 168 | void getFile( bool ); |
168 | void readFileFromSocket(); | 169 | void readFileFromSocket(); |
169 | void readBackFileFromSocket(); | ||
170 | void endConnect(); | ||
171 | private: | 170 | private: |
172 | //QTimer* mTimerCommandSocket; | 171 | //QTimer* mTimerCommandSocket; |
173 | QString mPassWordPiSync; | 172 | QString mPassWordPiSync; |
174 | KCommandSocket* mCommandSocket; | ||
175 | QSocket* mCommandSocketFinish; | ||
176 | KServerSocket * mServerSocket; | 173 | KServerSocket * mServerSocket; |
177 | bool mClosed; | 174 | bool mClosed; |
178 | void saveOnClose(); | 175 | void saveOnClose(); |
179 | int mCurrentSyncProfile; | 176 | int mCurrentSyncProfile; |