author | zautrix <zautrix> | 2006-02-24 18:49:56 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2006-02-24 18:49:56 (UTC) |
commit | d7738fdfc685192eb2f8317db6ffad3c246001c8 (patch) (unidiff) | |
tree | d9aae6ca97851fd1b53c4d9e74740a5ee2b69ea9 /libkdepim/ksyncmanager.h | |
parent | 987757f168bbae56100f2aff763b865e81ceec18 (diff) | |
download | kdepimpi-d7738fdfc685192eb2f8317db6ffad3c246001c8.zip kdepimpi-d7738fdfc685192eb2f8317db6ffad3c246001c8.tar.gz kdepimpi-d7738fdfc685192eb2f8317db6ffad3c246001c8.tar.bz2 |
kapi sync
-rw-r--r-- | libkdepim/ksyncmanager.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libkdepim/ksyncmanager.h b/libkdepim/ksyncmanager.h index 04cdade..71d17e9 100644 --- a/libkdepim/ksyncmanager.h +++ b/libkdepim/ksyncmanager.h | |||
@@ -142,108 +142,107 @@ class KSyncManager : public QObject | |||
142 | QString defaultFileName() { return mDefFileName ;} | 142 | QString defaultFileName() { return mDefFileName ;} |
143 | QString syncFileName(); | 143 | QString syncFileName(); |
144 | void enableQuick( bool ask = true); | 144 | void enableQuick( bool ask = true); |
145 | 145 | ||
146 | bool syncWithDesktop () { return mSyncWithDesktop;} | 146 | bool syncWithDesktop () { return mSyncWithDesktop;} |
147 | QString getCurrentSyncDevice() { return mCurrentSyncDevice; } | 147 | QString getCurrentSyncDevice() { return mCurrentSyncDevice; } |
148 | QString getCurrentSyncName() { return mCurrentSyncName; } | 148 | QString getCurrentSyncName() { return mCurrentSyncName; } |
149 | 149 | ||
150 | void showProgressBar(int percentage, QString caption = QString::null, int total=100); | 150 | void showProgressBar(int percentage, QString caption = QString::null, int total=100); |
151 | void hideProgressBar(); | 151 | void hideProgressBar(); |
152 | bool isProgressBarCanceled(); | 152 | bool isProgressBarCanceled(); |
153 | 153 | ||
154 | // sync stuff | 154 | // sync stuff |
155 | QString mLocalMachineName; | 155 | QString mLocalMachineName; |
156 | QStringList mExternSyncProfiles; | 156 | QStringList mExternSyncProfiles; |
157 | QStringList mSyncProfileNames; | 157 | QStringList mSyncProfileNames; |
158 | bool mAskForPreferences; | 158 | bool mAskForPreferences; |
159 | bool mShowSyncSummary; | 159 | bool mShowSyncSummary; |
160 | bool mIsKapiFile; | 160 | bool mIsKapiFile; |
161 | bool mWriteBackExistingOnly; | 161 | bool mWriteBackExistingOnly; |
162 | int mSyncAlgoPrefs; | 162 | int mSyncAlgoPrefs; |
163 | bool mWriteBackFile; | 163 | bool mWriteBackFile; |
164 | int mWriteBackInFuture; | 164 | int mWriteBackInFuture; |
165 | int mWriteBackInPast; | 165 | int mWriteBackInPast; |
166 | QString mPhoneDevice; | 166 | QString mPhoneDevice; |
167 | QString mPhoneConnection; | 167 | QString mPhoneConnection; |
168 | QString mPhoneModel; | 168 | QString mPhoneModel; |
169 | QString mPassWordPiSync; | 169 | QString mPassWordPiSync; |
170 | QString mActiveSyncPort; | 170 | QString mActiveSyncPort; |
171 | QString mActiveSyncIP ; | 171 | QString mActiveSyncIP ; |
172 | QString mFilterInCal; | 172 | QString mFilterInCal; |
173 | QString mFilterOutCal; | 173 | QString mFilterOutCal; |
174 | QString mFilterInAB; | 174 | QString mFilterInAB; |
175 | QString mFilterOutAB; | 175 | QString mFilterOutAB; |
176 | static QDateTime mRequestedSyncEvent; | 176 | static QDateTime mRequestedSyncEvent; |
177 | 177 | ||
178 | signals: | 178 | signals: |
179 | void save(); | 179 | void save(); |
180 | void request_file(); | 180 | void request_file(); |
181 | void getFile( bool ); | 181 | void getFile( bool ); |
182 | void getFile( bool, const QString &); | 182 | void getFile( bool, const QString &); |
183 | void request_file(const QString &); | 183 | void request_file(const QString &); |
184 | void multiResourceSyncStart( bool ); | 184 | void multiResourceSyncStart( bool ); |
185 | 185 | ||
186 | public slots: | 186 | public slots: |
187 | void slotSyncMenu( int ); | 187 | void slotSyncMenu( int ); |
188 | void slotClearMenu( int action ); | 188 | void slotClearMenu( int action ); |
189 | void deleteCommandSocket(KCommandSocket*s, int state); | 189 | void deleteCommandSocket(KCommandSocket*s, int state); |
190 | void readFileFromSocket(); | 190 | void readFileFromSocket(); |
191 | void fillSyncMenu(); | 191 | void fillSyncMenu(); |
192 | 192 | ||
193 | private: | 193 | private: |
194 | void syncPi(); | 194 | void syncPi(); |
195 | KServerSocket * mServerSocket; | 195 | KServerSocket * mServerSocket; |
196 | KPimPrefs* mPrefs; | 196 | KPimPrefs* mPrefs; |
197 | QString mDefFileName; | 197 | QString mDefFileName; |
198 | QString mCurrentSyncDevice; | 198 | QString mCurrentSyncDevice; |
199 | QString mCurrentSyncName; | 199 | QString mCurrentSyncName; |
200 | void quickSyncLocalFile(); | 200 | void quickSyncLocalFile(); |
201 | bool syncWithFile( QString fn , bool quick ); | 201 | bool syncWithFile( QString fn , bool quick ); |
202 | void syncLocalFile(); | 202 | void syncLocalFile(); |
203 | void syncPhone(); | 203 | void syncPhone(); |
204 | void syncSharp(); | 204 | void syncSharp(); |
205 | void syncKDE(); | 205 | void syncKDE(); |
206 | void syncOL(); | ||
206 | bool syncExternalApplication(QString); | 207 | bool syncExternalApplication(QString); |
207 | int mCurrentSyncProfile ; | 208 | int mCurrentSyncProfile ; |
208 | void syncRemote( KSyncProfile* prof, bool ask = true); | 209 | void syncRemote( KSyncProfile* prof, bool ask = true); |
209 | bool edit_sync_options(); | 210 | bool edit_sync_options(); |
210 | bool edit_pisync_options(); | 211 | bool edit_pisync_options(); |
211 | int ringSync(); | 212 | int ringSync(); |
212 | QString getPassword( ); | 213 | QString getPassword( ); |
213 | bool mPisyncFinished; | 214 | bool mPisyncFinished; |
214 | QStringList mSpecificResources; | 215 | QStringList mSpecificResources; |
215 | QString mCurrentResourceLocal; | 216 | QString mCurrentResourceLocal; |
216 | QString mCurrentResourceRemote; | 217 | QString mCurrentResourceRemote; |
217 | bool mBlockSaveFlag; | 218 | bool mBlockSaveFlag; |
218 | QWidget* mParent; | 219 | QWidget* mParent; |
219 | KSyncInterface* mImplementation; | 220 | KSyncInterface* mImplementation; |
220 | TargetApp mTargetApp; | 221 | TargetApp mTargetApp; |
221 | QPopupMenu* mSyncMenu; | 222 | QPopupMenu* mSyncMenu; |
222 | QProgressBar* bar; | 223 | QProgressBar* bar; |
223 | bool mSyncWithDesktop; | 224 | bool mSyncWithDesktop; |
224 | 225 | ||
225 | private slots: | 226 | private slots: |
226 | void displayErrorPort(); | 227 | void displayErrorPort(); |
227 | void confSync(); | 228 | void confSync(); |
228 | 229 | ||
229 | 230 | ||
230 | }; | 231 | }; |
231 | 232 | ||
232 | 233 | ||
233 | class KSyncInterface | 234 | class KSyncInterface |
234 | { | 235 | { |
235 | public : | 236 | public : |
236 | virtual void removeSyncInfo( QString syncProfile) = 0; | 237 | virtual void removeSyncInfo( QString syncProfile) = 0; |
237 | virtual bool sync(KSyncManager* manager, QString filename, int mode, QString resource) = 0; | 238 | virtual bool sync(KSyncManager* manager, QString filename, int mode, QString resource) = 0; |
238 | virtual bool syncExternal(KSyncManager* /*manager*/, QString /*resource*/) | 239 | virtual bool syncExternal(KSyncManager* /*manager*/, QString /*resource*/) |
239 | { | 240 | { |
240 | // empty implementation, because some syncable applications do not | 241 | // empty implementation, because some syncable applications do not |
241 | // have an external(sharpdtm) syncmode, like pwmanager. | 242 | // have an external(sharpdtm) syncmode, like pwmanager. |
242 | return false; | 243 | return false; |
243 | } | 244 | } |
244 | |||
245 | |||
246 | }; | 245 | }; |
247 | 246 | ||
248 | 247 | ||
249 | #endif | 248 | #endif |