From adce8459b83cd7494dbc4c552c5079dc22e68a54 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 22 Nov 2011 18:38:16 +0100 Subject: Clean out ftp code to easily add in the future new sync implementations --- src/sync/syncmanager.h | 42 ++++++++---------------------------------- 1 file changed, 8 insertions(+), 34 deletions(-) (limited to 'src/sync/syncmanager.h') 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 - -// KDE Includes -#include - -// Forward Declarations -class KJob; +#include 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 _syncImplementation; }; #endif // SYNC_MANAGER_H -- cgit v1.2.1