-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 aa32e28..2af891b 100644 --- a/libkdepim/ksyncmanager.h +++ b/libkdepim/ksyncmanager.h | |||
@@ -101,96 +101,97 @@ class KCommandSocket : public QObject | |||
101 | }; | 101 | }; |
102 | 102 | ||
103 | 103 | ||
104 | class KSyncManager : public QObject | 104 | class KSyncManager : public QObject |
105 | { | 105 | { |
106 | Q_OBJECT | 106 | Q_OBJECT |
107 | 107 | ||
108 | public: | 108 | public: |
109 | enum TargetApp { | 109 | enum TargetApp { |
110 | KOPI = 0, | 110 | KOPI = 0, |
111 | KAPI = 1, | 111 | KAPI = 1, |
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 | void enableQuick( bool ask = true); | 123 | void enableQuick( bool ask = true); |
124 | 124 | ||
125 | QString getCurrentSyncDevice() { return mCurrentSyncDevice; } | 125 | QString getCurrentSyncDevice() { return mCurrentSyncDevice; } |
126 | QString getCurrentSyncName() { return mCurrentSyncName; } | 126 | QString getCurrentSyncName() { return mCurrentSyncName; } |
127 | 127 | ||
128 | void showProgressBar(int percentage, QString caption = QString::null, int total=100); | 128 | void showProgressBar(int percentage, QString caption = QString::null, int total=100); |
129 | void hideProgressBar(); | 129 | void hideProgressBar(); |
130 | bool isProgressBarCanceled(); | 130 | bool isProgressBarCanceled(); |
131 | 131 | ||
132 | // sync stuff | 132 | // sync stuff |
133 | QString mLocalMachineName; | 133 | QString mLocalMachineName; |
134 | QStringList mExternSyncProfiles; | 134 | QStringList mExternSyncProfiles; |
135 | QStringList mSyncProfileNames; | 135 | QStringList mSyncProfileNames; |
136 | bool mAskForPreferences; | 136 | bool mAskForPreferences; |
137 | bool mShowSyncSummary; | 137 | bool mShowSyncSummary; |
138 | bool mIsKapiFile; | 138 | bool mIsKapiFile; |
139 | bool mWriteBackExistingOnly; | 139 | bool mWriteBackExistingOnly; |
140 | int mSyncAlgoPrefs; | 140 | int mSyncAlgoPrefs; |
141 | bool mWriteBackFile; | 141 | bool mWriteBackFile; |
142 | int mWriteBackInFuture; | 142 | int mWriteBackInFuture; |
143 | QString mPhoneDevice; | 143 | QString mPhoneDevice; |
144 | QString mPhoneConnection; | 144 | QString mPhoneConnection; |
145 | QString mPhoneModel; | 145 | QString mPhoneModel; |
146 | QString mPassWordPiSync; | 146 | QString mPassWordPiSync; |
147 | QString mActiveSyncPort; | 147 | QString mActiveSyncPort; |
148 | QString mActiveSyncIP ; | 148 | QString mActiveSyncIP ; |
149 | static QDateTime mRequestedSyncEvent; | ||
149 | 150 | ||
150 | signals: | 151 | signals: |
151 | void save(); | 152 | void save(); |
152 | void request_file(); | 153 | void request_file(); |
153 | void getFile( bool ); | 154 | void getFile( bool ); |
154 | 155 | ||
155 | public slots: | 156 | public slots: |
156 | void slotSyncMenu( int ); | 157 | void slotSyncMenu( int ); |
157 | void slotClearMenu( int action ); | 158 | void slotClearMenu( int action ); |
158 | void deleteCommandSocket(KCommandSocket*s, int state); | 159 | void deleteCommandSocket(KCommandSocket*s, int state); |
159 | void readFileFromSocket(); | 160 | void readFileFromSocket(); |
160 | void fillSyncMenu(); | 161 | void fillSyncMenu(); |
161 | 162 | ||
162 | private: | 163 | private: |
163 | void syncPi(); | 164 | void syncPi(); |
164 | KServerSocket * mServerSocket; | 165 | KServerSocket * mServerSocket; |
165 | KPimPrefs* mPrefs; | 166 | KPimPrefs* mPrefs; |
166 | QString mDefFileName; | 167 | QString mDefFileName; |
167 | QString mCurrentSyncDevice; | 168 | QString mCurrentSyncDevice; |
168 | QString mCurrentSyncName; | 169 | QString mCurrentSyncName; |
169 | void quickSyncLocalFile(); | 170 | void quickSyncLocalFile(); |
170 | bool syncWithFile( QString fn , bool quick ); | 171 | bool syncWithFile( QString fn , bool quick ); |
171 | void syncLocalFile(); | 172 | void syncLocalFile(); |
172 | void syncPhone(); | 173 | void syncPhone(); |
173 | void syncSharp(); | 174 | void syncSharp(); |
174 | void syncKDE(); | 175 | void syncKDE(); |
175 | bool syncExternalApplication(QString); | 176 | bool syncExternalApplication(QString); |
176 | int mCurrentSyncProfile ; | 177 | int mCurrentSyncProfile ; |
177 | void syncRemote( KSyncProfile* prof, bool ask = true); | 178 | void syncRemote( KSyncProfile* prof, bool ask = true); |
178 | bool edit_sync_options(); | 179 | bool edit_sync_options(); |
179 | bool edit_pisync_options(); | 180 | bool edit_pisync_options(); |
180 | int ringSync(); | 181 | int ringSync(); |
181 | QString getPassword( ); | 182 | QString getPassword( ); |
182 | bool mPisyncFinished; | 183 | bool mPisyncFinished; |
183 | bool mBlockSaveFlag; | 184 | bool mBlockSaveFlag; |
184 | QWidget* mParent; | 185 | QWidget* mParent; |
185 | KSyncInterface* mImplementation; | 186 | KSyncInterface* mImplementation; |
186 | TargetApp mTargetApp; | 187 | TargetApp mTargetApp; |
187 | QPopupMenu* mSyncMenu; | 188 | QPopupMenu* mSyncMenu; |
188 | QProgressBar* bar; | 189 | QProgressBar* bar; |
189 | 190 | ||
190 | private slots: | 191 | private slots: |
191 | void confSync(); | 192 | void confSync(); |
192 | 193 | ||
193 | 194 | ||
194 | }; | 195 | }; |
195 | 196 | ||
196 | 197 | ||