--- a/Helpviewer/Sync/SyncHandler.py Sun Mar 11 13:04:30 2012 +0100 +++ b/Helpviewer/Sync/SyncHandler.py Sun Mar 11 16:46:46 2012 +0100 @@ -20,16 +20,16 @@ """ Base class for synchronization handlers. - @signal syncStatus(type_, done, message) emitted to indicate the synchronization - status (string one of "bookmarks", "history", "passwords" or "useragents", - boolean, string) + @signal syncStatus(type_, message) emitted to indicate the synchronization + status (string one of "bookmarks", "history", "passwords", "useragents" or + "speeddial", string) @signal syncError(message) emitted for a general error with the error message (string) @signal syncMessage(message) emitted to send a message about synchronization (string) @signal syncFinished(type_, done, download) emitted after a synchronization has - finished (string one of "bookmarks", "history", "passwords" or "useragents", - boolean, boolean) + finished (string one of "bookmarks", "history", "passwords", "useragents" or + "speeddial", boolean, boolean) """ - syncStatus = pyqtSignal(str, bool, str) + syncStatus = pyqtSignal(str, str) syncError = pyqtSignal(str) syncMessage = pyqtSignal(str) syncFinished = pyqtSignal(str, bool, bool) @@ -48,7 +48,8 @@ "bookmarks": "Bookmarks", "history": "History", "passwords": "Logins", - "useragents": "UserAgentSettings" + "useragents": "UserAgentSettings", + "speeddial": "SpeedDial", } self._messages = { @@ -98,6 +99,19 @@ " Skipping synchronization!"), "Uploading": self.trUtf8("Uploading local user agent settings file..."), }, + "speeddial": { + "RemoteExists": self.trUtf8( + "Remote speed dial settings file exists! Syncing local copy..."), + "RemoteMissing": self.trUtf8( + "Remote speed dial settings file does NOT exists." + " Exporting local copy..."), + "LocalNewer": self.trUtf8( + "Local speed dial settings file is NEWER. Exporting local copy..."), + "LocalMissing": self.trUtf8( + "Local speed dial settings file does NOT exist." + " Skipping synchronization!"), + "Uploading": self.trUtf8("Uploading local speed dial settings file..."), + }, } def syncBookmarks(self): @@ -124,6 +138,12 @@ """ raise NotImplementedError + def syncSpeedDial(self): + """ + Public method to synchronize the speed dial data. + """ + raise NotImplementedError + def initialLoadAndCheck(self, forceUpload): """ Public method to do the initial check.