-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 | |||
@@ -32,4 +32,5 @@ 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 |
@@ -55,4 +56,9 @@ class KSyncManager : public QObject | |||
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 ); |
@@ -90,5 +96,5 @@ class KSyncManager : public QObject | |||
90 | QPopupMenu* mSyncMenu; | 96 | QPopupMenu* mSyncMenu; |
91 | 97 | ||
92 | 98 | QProgressBar* bar; | |
93 | 99 | ||
94 | 100 | ||
@@ -103,6 +109,10 @@ class KSyncInterface | |||
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. |