author | zautrix <zautrix> | 2004-10-08 10:31:33 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-08 10:31:33 (UTC) |
commit | 98987418d89d1334c0c2961ca4d6bc295d6fb021 (patch) (unidiff) | |
tree | 2562272904bcd82eab7e6d185f3f7f0abfac48c3 /libkdepim/ksyncmanager.h | |
parent | 309df8e8df3a17602f948025b7951b21ec5c3fed (diff) | |
download | kdepimpi-98987418d89d1334c0c2961ca4d6bc295d6fb021.zip kdepimpi-98987418d89d1334c0c2961ca4d6bc295d6fb021.tar.gz kdepimpi-98987418d89d1334c0c2961ca4d6bc295d6fb021.tar.bz2 |
Sync fixes
-rw-r--r-- | libkdepim/ksyncmanager.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libkdepim/ksyncmanager.h b/libkdepim/ksyncmanager.h index 1f7c7e7..5b05383 100644 --- a/libkdepim/ksyncmanager.h +++ b/libkdepim/ksyncmanager.h | |||
@@ -112,96 +112,97 @@ class KSyncManager : public QObject | |||
112 | PWMPI = 2 }; | 112 | PWMPI = 2 }; |
113 | 113 | ||
114 | KSyncManager(QWidget* parent, KSyncInterface* implementation, TargetApp ta, KPimPrefs* prefs, QPopupMenu* syncmenu); | 114 | KSyncManager(QWidget* parent, KSyncInterface* implementation, TargetApp ta, KPimPrefs* prefs, QPopupMenu* syncmenu); |
115 | ~KSyncManager() ; | 115 | ~KSyncManager() ; |
116 | 116 | ||
117 | void multiSync( bool askforPrefs ); | 117 | void multiSync( bool askforPrefs ); |
118 | bool blockSave() { return mBlockSaveFlag; } | 118 | bool blockSave() { return mBlockSaveFlag; } |
119 | void setBlockSave(bool sa) { mBlockSaveFlag = sa; } | 119 | void setBlockSave(bool sa) { mBlockSaveFlag = sa; } |
120 | void setDefaultFileName( QString s) { mDefFileName = s ;} | 120 | void setDefaultFileName( QString s) { mDefFileName = s ;} |
121 | QString defaultFileName() { return mDefFileName ;} | 121 | QString defaultFileName() { return mDefFileName ;} |
122 | QString syncFileName(); | 122 | QString syncFileName(); |
123 | 123 | ||
124 | QString getCurrentSyncDevice() { return mCurrentSyncDevice; } | 124 | QString getCurrentSyncDevice() { return mCurrentSyncDevice; } |
125 | QString getCurrentSyncName() { return mCurrentSyncName; } | 125 | QString getCurrentSyncName() { return mCurrentSyncName; } |
126 | 126 | ||
127 | void showProgressBar(int percentage, QString caption = QString::null, int total=100); | 127 | void showProgressBar(int percentage, QString caption = QString::null, int total=100); |
128 | void hideProgressBar(); | 128 | void hideProgressBar(); |
129 | bool isProgressBarCanceled(); | 129 | bool isProgressBarCanceled(); |
130 | 130 | ||
131 | // sync stuff | 131 | // sync stuff |
132 | QString mLocalMachineName; | 132 | QString mLocalMachineName; |
133 | QStringList mExternSyncProfiles; | 133 | QStringList mExternSyncProfiles; |
134 | QStringList mSyncProfileNames; | 134 | QStringList mSyncProfileNames; |
135 | bool mAskForPreferences; | 135 | bool mAskForPreferences; |
136 | bool mShowSyncSummary; | 136 | bool mShowSyncSummary; |
137 | bool mWriteBackExistingOnly; | 137 | bool mWriteBackExistingOnly; |
138 | int mSyncAlgoPrefs; | 138 | int mSyncAlgoPrefs; |
139 | bool mWriteBackFile; | 139 | bool mWriteBackFile; |
140 | int mWriteBackInFuture; | 140 | int mWriteBackInFuture; |
141 | QString mPhoneDevice; | 141 | QString mPhoneDevice; |
142 | QString mPhoneConnection; | 142 | QString mPhoneConnection; |
143 | QString mPhoneModel; | 143 | QString mPhoneModel; |
144 | QString mPassWordPiSync; | 144 | QString mPassWordPiSync; |
145 | QString mActiveSyncPort; | 145 | QString mActiveSyncPort; |
146 | QString mActiveSyncIP ; | 146 | QString mActiveSyncIP ; |
147 | 147 | ||
148 | signals: | 148 | signals: |
149 | void save(); | 149 | void save(); |
150 | void request_file(); | 150 | void request_file(); |
151 | void getFile( bool ); | 151 | void getFile( bool ); |
152 | 152 | ||
153 | public slots: | 153 | public slots: |
154 | void slotSyncMenu( int ); | 154 | void slotSyncMenu( int ); |
155 | void deleteCommandSocket(KCommandSocket*s, int state); | 155 | void deleteCommandSocket(KCommandSocket*s, int state); |
156 | void readFileFromSocket(); | 156 | void readFileFromSocket(); |
157 | void fillSyncMenu(); | 157 | void fillSyncMenu(); |
158 | 158 | ||
159 | private: | 159 | private: |
160 | void syncPi(); | 160 | void syncPi(); |
161 | KServerSocket * mServerSocket; | 161 | KServerSocket * mServerSocket; |
162 | void enableQuick(); | 162 | void enableQuick(); |
163 | KPimPrefs* mPrefs; | 163 | KPimPrefs* mPrefs; |
164 | QString mDefFileName; | 164 | QString mDefFileName; |
165 | QString mCurrentSyncDevice; | 165 | QString mCurrentSyncDevice; |
166 | QString mCurrentSyncName; | 166 | QString mCurrentSyncName; |
167 | void quickSyncLocalFile(); | 167 | void quickSyncLocalFile(); |
168 | bool syncWithFile( QString fn , bool quick ); | 168 | bool syncWithFile( QString fn , bool quick ); |
169 | void syncLocalFile(); | 169 | void syncLocalFile(); |
170 | void syncPhone(); | 170 | void syncPhone(); |
171 | void syncSharp(); | 171 | void syncSharp(); |
172 | bool syncExternalApplication(QString); | 172 | bool syncExternalApplication(QString); |
173 | int mCurrentSyncProfile ; | 173 | int mCurrentSyncProfile ; |
174 | void syncRemote( KSyncProfile* prof, bool ask = true); | 174 | void syncRemote( KSyncProfile* prof, bool ask = true); |
175 | void edit_sync_options(); | 175 | void edit_sync_options(); |
176 | void edit_pisync_options(); | ||
176 | int ringSync(); | 177 | int ringSync(); |
177 | QString getPassword( ); | 178 | QString getPassword( ); |
178 | 179 | ||
179 | private slots: | 180 | private slots: |
180 | void confSync(); | 181 | void confSync(); |
181 | private: | 182 | private: |
182 | bool mBlockSaveFlag; | 183 | bool mBlockSaveFlag; |
183 | QWidget* mParent; | 184 | QWidget* mParent; |
184 | KSyncInterface* mImplementation; | 185 | KSyncInterface* mImplementation; |
185 | TargetApp mTargetApp; | 186 | TargetApp mTargetApp; |
186 | QPopupMenu* mSyncMenu; | 187 | QPopupMenu* mSyncMenu; |
187 | QProgressBar* bar; | 188 | QProgressBar* bar; |
188 | 189 | ||
189 | }; | 190 | }; |
190 | 191 | ||
191 | 192 | ||
192 | class KSyncInterface | 193 | class KSyncInterface |
193 | { | 194 | { |
194 | public : | 195 | public : |
195 | virtual bool sync(KSyncManager* manager, QString filename, int mode) = 0; | 196 | virtual bool sync(KSyncManager* manager, QString filename, int mode) = 0; |
196 | virtual bool syncExternal(KSyncManager* manager, QString resource) | 197 | virtual bool syncExternal(KSyncManager* manager, QString resource) |
197 | { | 198 | { |
198 | // empty implementation, because some syncable applications do not | 199 | // empty implementation, because some syncable applications do not |
199 | // have an external(sharpdtm) syncmode, like pwmanager. | 200 | // have an external(sharpdtm) syncmode, like pwmanager. |
200 | return false; | 201 | return false; |
201 | } | 202 | } |
202 | 203 | ||
203 | 204 | ||
204 | }; | 205 | }; |
205 | 206 | ||
206 | 207 | ||
207 | #endif | 208 | #endif |