summaryrefslogtreecommitdiff
path: root/src/sync/syncmanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sync/syncmanager.h')
-rw-r--r--src/sync/syncmanager.h42
1 files changed, 8 insertions, 34 deletions
diff --git a/src/sync/syncmanager.h b/src/sync/syncmanager.h
index 82fd3551..98536603 100644
--- a/src/sync/syncmanager.h
+++ b/src/sync/syncmanager.h
@@ -31,14 +31,12 @@
// Rekonq Includes
#include "rekonq_defines.h"
+// Local Includes
+#include "synchandler.h"
+
// Qt Includes
#include <QObject>
-
-// KDE Includes
-#include <KUrl>
-
-// Forward Declarations
-class KJob;
+#include <QWeakPointer>
class REKONQ_TESTS_EXPORT SyncManager : public QObject
@@ -47,8 +45,9 @@ class REKONQ_TESTS_EXPORT SyncManager : public QObject
public:
SyncManager(QObject *parent = 0);
-
- void firstTimeSync();
+ ~SyncManager();
+
+ void resetSyncer();
public Q_SLOTS:
void syncBookmarks();
@@ -59,33 +58,8 @@ private Q_SLOTS:
void loadSettings();
void showSettings();
- void onBookmarksSyncFinished(KJob *);
- void onBookmarksStatFinished(KJob *);
-
- void onHistorySyncFinished(KJob *);
- void onHistoryStatFinished(KJob *);
-
- void onPasswordsSyncFinished(KJob *);
- void onPasswordsStatFinished(KJob *);
-
-Q_SIGNALS:
- void syncBookmarksFinished(bool);
- void syncHistoryFinished(bool);
- void syncPasswordsFinished(bool);
-
private:
- bool syncRelativeEnabled(bool);
-
- bool _firstTimeSynced;
-
- QUrl _remoteBookmarksUrl;
- KUrl _localBookmarksUrl;
-
- QUrl _remoteHistoryUrl;
- KUrl _localHistoryUrl;
-
- QUrl _remotePasswordsUrl;
- KUrl _localPasswordsUrl;
+ QWeakPointer<SyncHandler> _syncImplementation;
};
#endif // SYNC_MANAGER_H