85 if not Preferences.getUI("UseProxy"): |
85 if not Preferences.getUI("UseProxy"): |
86 proxyType = E5FtpProxyType.NoProxy |
86 proxyType = E5FtpProxyType.NoProxy |
87 else: |
87 else: |
88 proxyType = Preferences.getUI("ProxyType/Ftp") |
88 proxyType = Preferences.getUI("ProxyType/Ftp") |
89 if proxyType != E5FtpProxyType.NoProxy: |
89 if proxyType != E5FtpProxyType.NoProxy: |
90 self.__ftp.setProxy(proxyType, |
90 self.__ftp.setProxy( |
|
91 proxyType, |
91 Preferences.getUI("ProxyHost/Ftp"), |
92 Preferences.getUI("ProxyHost/Ftp"), |
92 Preferences.getUI("ProxyPort/Ftp")) |
93 Preferences.getUI("ProxyPort/Ftp")) |
93 if proxyType != E5FtpProxyType.NonAuthorizing: |
94 if proxyType != E5FtpProxyType.NonAuthorizing: |
94 self.__ftp.setProxyAuthentication( |
95 self.__ftp.setProxyAuthentication( |
95 Preferences.getUI("ProxyUser/Ftp"), |
96 Preferences.getUI("ProxyUser/Ftp"), |
343 |
344 |
344 def syncBookmarks(self): |
345 def syncBookmarks(self): |
345 """ |
346 """ |
346 Public method to synchronize the bookmarks. |
347 Public method to synchronize the bookmarks. |
347 """ |
348 """ |
348 self.__syncFile("bookmarks", |
349 self.__syncFile( |
|
350 "bookmarks", |
349 Helpviewer.HelpWindow.HelpWindow.bookmarksManager().getFileName()) |
351 Helpviewer.HelpWindow.HelpWindow.bookmarksManager().getFileName()) |
350 |
352 |
351 def syncHistory(self): |
353 def syncHistory(self): |
352 """ |
354 """ |
353 Public method to synchronize the history. |
355 Public method to synchronize the history. |
354 """ |
356 """ |
355 self.__syncFile("history", |
357 self.__syncFile( |
|
358 "history", |
356 Helpviewer.HelpWindow.HelpWindow.historyManager().getFileName()) |
359 Helpviewer.HelpWindow.HelpWindow.historyManager().getFileName()) |
357 |
360 |
358 def syncPasswords(self): |
361 def syncPasswords(self): |
359 """ |
362 """ |
360 Public method to synchronize the passwords. |
363 Public method to synchronize the passwords. |
361 """ |
364 """ |
362 self.__syncFile("passwords", |
365 self.__syncFile( |
|
366 "passwords", |
363 Helpviewer.HelpWindow.HelpWindow.passwordManager().getFileName()) |
367 Helpviewer.HelpWindow.HelpWindow.passwordManager().getFileName()) |
364 |
368 |
365 def syncUserAgents(self): |
369 def syncUserAgents(self): |
366 """ |
370 """ |
367 Public method to synchronize the user agents. |
371 Public method to synchronize the user agents. |
368 """ |
372 """ |
369 self.__syncFile("useragents", |
373 self.__syncFile( |
|
374 "useragents", |
370 Helpviewer.HelpWindow.HelpWindow.userAgentsManager().getFileName()) |
375 Helpviewer.HelpWindow.HelpWindow.userAgentsManager().getFileName()) |
371 |
376 |
372 def syncSpeedDial(self): |
377 def syncSpeedDial(self): |
373 """ |
378 """ |
374 Public method to synchronize the speed dial data. |
379 Public method to synchronize the speed dial data. |
375 """ |
380 """ |
376 self.__syncFile("speeddial", |
381 self.__syncFile( |
|
382 "speeddial", |
377 Helpviewer.HelpWindow.HelpWindow.speedDial().getFileName()) |
383 Helpviewer.HelpWindow.HelpWindow.speedDial().getFileName()) |
378 |
384 |
379 def shutdown(self): |
385 def shutdown(self): |
380 """ |
386 """ |
381 Public method to shut down the handler. |
387 Public method to shut down the handler. |