diff frontends/src/quick_frontend/quick_app.py @ 2142:be96beb7ca14

core, bridge, frontends: renamed asyncConnect to connect, and added options parameters (not used yet)
author Goffi <goffi@goffi.org>
date Mon, 06 Feb 2017 22:54:43 +0100
parents 4e67d6ffea66
children 4b78b4c7f805
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_app.py	Mon Feb 06 20:51:56 2017 +0100
+++ b/frontends/src/quick_frontend/quick_app.py	Mon Feb 06 22:54:43 2017 +0100
@@ -90,7 +90,7 @@
     def _plug_profile_autoconnect(self, value_str):
         autoconnect = C.bool(value_str)
         if autoconnect and not self.connected:
-            self.host.asyncConnect(self.profile, callback=lambda dummy: self._plug_profile_afterconnect())
+            self.host.connect(self.profile, callback=lambda dummy: self._plug_profile_afterconnect())
         else:
             self._plug_profile_afterconnect()
 
@@ -440,7 +440,7 @@
         if not self._plugs_in_progress:
             self.contact_lists.lockUpdate(False)
 
-    def asyncConnect(self, profile, callback=None, errback=None):
+    def connect(self, profile, callback=None, errback=None):
         if not callback:
             callback = lambda dummy: None
         if not errback:
@@ -462,7 +462,7 @@
                     self.launchAction(C.CHANGE_XMPP_PASSWD_ID, {}, profile=profile)
                 else:
                     self.showDialog(message, fullname, 'error')
-        self.bridge.asyncConnect(profile, callback=callback, errback=errback)
+        self.bridge.connect(profile, callback=callback, errback=errback)
 
     def plug_profiles(self, profiles):
         """Tell application which profiles must be used