-rw-r--r-- | libkdepim/ksyncmanager.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/libkdepim/ksyncmanager.h b/libkdepim/ksyncmanager.h index 389a005..9761107 100644 --- a/libkdepim/ksyncmanager.h +++ b/libkdepim/ksyncmanager.h | |||
@@ -31,6 +31,7 @@ class KPimPrefs; | |||
31 | class QWidget; | 31 | class QWidget; |
32 | class KSyncManager; | 32 | class KSyncManager; |
33 | class KSyncInterface; | 33 | class KSyncInterface; |
34 | class QProgressBar; | ||
34 | 35 | ||
35 | class KSyncManager : public QObject | 36 | class KSyncManager : public QObject |
36 | { | 37 | { |
@@ -54,6 +55,11 @@ class KSyncManager : public QObject | |||
54 | QString getCurrentSyncDevice() { return mCurrentSyncDevice; } | 55 | QString getCurrentSyncDevice() { return mCurrentSyncDevice; } |
55 | QString getCurrentSyncName() { return mCurrentSyncName; } | 56 | QString getCurrentSyncName() { return mCurrentSyncName; } |
56 | 57 | ||
58 | void showProgressBar(int percentage, QString caption = QString::null, int total=100); | ||
59 | void hideProgressBar(); | ||
60 | bool isProgressBarCanceled(); | ||
61 | |||
62 | |||
57 | public slots: | 63 | public slots: |
58 | void slotSyncMenu( int ); | 64 | void slotSyncMenu( int ); |
59 | 65 | ||
@@ -89,7 +95,7 @@ class KSyncManager : public QObject | |||
89 | KPimPrefs* mPrefs; | 95 | KPimPrefs* mPrefs; |
90 | QPopupMenu* mSyncMenu; | 96 | QPopupMenu* mSyncMenu; |
91 | 97 | ||
92 | 98 | QProgressBar* bar; | |
93 | 99 | ||
94 | 100 | ||
95 | 101 | ||
@@ -102,8 +108,12 @@ class KSyncInterface | |||
102 | { | 108 | { |
103 | public: | 109 | public: |
104 | virtual bool sync(KSyncManager* manager, QString filename, int mode) = 0; | 110 | virtual bool sync(KSyncManager* manager, QString filename, int mode) = 0; |
105 | virtual bool syncExternal(KSyncManager* manager, QString resource) = 0; | ||
106 | 111 | ||
112 | virtual bool syncExternal(KSyncManager* manager, QString resource) | ||
113 | { | ||
114 | // empty implementation, because some syncable applications do not have an external(sharpdtm) syncmode, like pwmanager. | ||
115 | return false; | ||
116 | } | ||
107 | 117 | ||
108 | //called by the syncmanager to indicate that the work has to be marked as dirty. | 118 | //called by the syncmanager to indicate that the work has to be marked as dirty. |
109 | virtual void sync_setModified() = 0; | 119 | virtual void sync_setModified() = 0; |