227 def __syncFinished(self, type_, status, download): |
227 def __syncFinished(self, type_, status, download): |
228 """ |
228 """ |
229 Private slot to handle a finished synchronization event. |
229 Private slot to handle a finished synchronization event. |
230 |
230 |
231 @param type_ type of the synchronization event (string one |
231 @param type_ type of the synchronization event (string one |
232 of "bookmarks", "history", "passwords" or "useragents") |
232 of "bookmarks", "history", "passwords", "useragents" or "speeddial") |
233 @param status flag indicating success (boolean) |
233 @param status flag indicating success (boolean) |
234 @param download flag indicating a download of a file (boolean) |
234 @param download flag indicating a download of a file (boolean) |
235 """ |
235 """ |
236 if status and download: |
236 if status and download: |
237 if type_ == "bookmarks": |
237 if type_ == "bookmarks": |
249 def __syncStatus(self, type_, message): |
249 def __syncStatus(self, type_, message): |
250 """ |
250 """ |
251 Private slot to handle a status update of a synchronization event. |
251 Private slot to handle a status update of a synchronization event. |
252 |
252 |
253 @param type_ type of the synchronization event (string one |
253 @param type_ type of the synchronization event (string one |
254 of "bookmarks", "history", "passwords" or "useragents") |
254 of "bookmarks", "history", "passwords", "useragents" or "speeddial") |
255 @param message status message for the event (string) |
255 @param message status message for the event (string) |
256 """ |
256 """ |
257 self.syncMessage.emit(message) |
257 self.syncMessage.emit(message) |
258 self.syncStatus.emit(type_, message) |
258 self.syncStatus.emit(type_, message) |
259 |
259 |