-rw-r--r-- | korganizer/mainwindow.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h index 90b3a88..4da371e 100644 --- a/korganizer/mainwindow.h +++ b/korganizer/mainwindow.h | |||
@@ -58,35 +58,35 @@ private slots: | |||
58 | QString piFileString; | 58 | QString piFileString; |
59 | }; | 59 | }; |
60 | 60 | ||
61 | class KCommandSocket : public QObject | 61 | class KCommandSocket : public QObject |
62 | { | 62 | { |
63 | Q_OBJECT | 63 | Q_OBJECT |
64 | |||
65 | public: | 64 | public: |
65 | enum state { successR, errorR, successW, errorW, quiet }; | ||
66 | 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 ); |
67 | void readFile( QString ); | 67 | void readFile( QString ); |
68 | void writeFile( QString ); | 68 | void writeFile( QString ); |
69 | void sendStop(); | 69 | void sendStop(); |
70 | 70 | ||
71 | 71 | ||
72 | signals: | 72 | signals: |
73 | void commandFinished( KCommandSocket*, bool ); | 73 | void commandFinished( KCommandSocket*, int ); |
74 | private slots: | 74 | private slots: |
75 | void startReadFileFromSocket(); | 75 | void startReadFileFromSocket(); |
76 | void readFileFromSocket(); | 76 | void readFileFromSocket(); |
77 | void deleteSocket(); | 77 | void deleteSocket(); |
78 | void writeFileToSocket(); | 78 | void writeFileToSocket(); |
79 | private : | 79 | private : |
80 | QSocket* mSocket; | 80 | QSocket* mSocket; |
81 | QString mPassWord; | 81 | QString mPassWord; |
82 | Q_UINT16 mPort; | 82 | Q_UINT16 mPort; |
83 | QString mHost; | 83 | QString mHost; |
84 | QString mFileName; | 84 | QString mFileName; |
85 | QTimer* mTimerSocket; | 85 | QTimer* mTimerSocket; |
86 | bool mRetVal; | 86 | int mRetVal; |
87 | QTime mTime; | 87 | QTime mTime; |
88 | QString mFileString; | 88 | QString mFileString; |
89 | bool mFirst; | 89 | bool mFirst; |
90 | }; | 90 | }; |
91 | 91 | ||
92 | namespace KCal { | 92 | namespace KCal { |
@@ -103,12 +103,13 @@ class MainWindow : public QMainWindow | |||
103 | ~MainWindow(); | 103 | ~MainWindow(); |
104 | public slots: | 104 | public slots: |
105 | virtual void showMaximized (); | 105 | virtual void showMaximized (); |
106 | void configureAgenda( int ); | 106 | void configureAgenda( int ); |
107 | void recieve( const QCString& msg, const QByteArray& data ); | 107 | void recieve( const QCString& msg, const QByteArray& data ); |
108 | static QString defaultFileName(); | 108 | static QString defaultFileName(); |
109 | static QString syncFileName(); | ||
109 | static QString resourcePath(); | 110 | static QString resourcePath(); |
110 | protected slots: | 111 | protected slots: |
111 | void setCaptionToDates(); | 112 | void setCaptionToDates(); |
112 | int ringSync(); | 113 | int ringSync(); |
113 | void multiSync( bool askforPrefs = false ); | 114 | void multiSync( bool askforPrefs = false ); |
114 | void about(); | 115 | void about(); |
@@ -161,14 +162,13 @@ class MainWindow : public QMainWindow | |||
161 | void enableIncidenceActions( bool ); | 162 | void enableIncidenceActions( bool ); |
162 | 163 | ||
163 | private slots: | 164 | private slots: |
164 | QSocket* piSocket; | 165 | QSocket* piSocket; |
165 | QString piFileString; | 166 | QString piFileString; |
166 | QTime piTime; | 167 | QTime piTime; |
167 | void deleteCommandSocket(KCommandSocket* s, bool success); | 168 | void deleteCommandSocket(KCommandSocket* s, int state ); |
168 | void deleteCommandSocketFinish(KCommandSocket* s, bool success); | ||
169 | void fillSyncMenu(); | 169 | void fillSyncMenu(); |
170 | void getFile( bool ); | 170 | void getFile( bool ); |
171 | void readFileFromSocket(); | 171 | void readFileFromSocket(); |
172 | private: | 172 | private: |
173 | //QTimer* mTimerCommandSocket; | 173 | //QTimer* mTimerCommandSocket; |
174 | QString mPassWordPiSync; | 174 | QString mPassWordPiSync; |