diff frontends/src/bridge/DBus.py @ 893:308a96bc7c1b

core, frontends: add method asyncDeleteProfile, remove synchronous methods createProfile and deleteProfile
author souliane <souliane@mailoo.org>
date Mon, 03 Mar 2014 09:59:10 +0100
parents 1fe00f0c9a91
children a9401694d2dc
line wrap: on
line diff
--- a/frontends/src/bridge/DBus.py	Fri Feb 28 11:19:08 2014 +0100
+++ b/frontends/src/bridge/DBus.py	Mon Mar 03 09:59:10 2014 +0100
@@ -104,6 +104,9 @@
     def asyncCreateProfile(self, profile, callback=None, errback=None):
         return self.db_core_iface.asyncCreateProfile(profile, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:]))
 
+    def asyncDeleteProfile(self, profile, callback=None, errback=None):
+        return self.db_core_iface.asyncDeleteProfile(profile, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:]))
+
     def asyncGetParamA(self, name, category, attribute="value", security_limit=-1, profile_key="@DEFAULT@", callback=None, errback=None):
         return unicode(self.db_core_iface.asyncGetParamA(name, category, attribute, security_limit, profile_key, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:])))
 
@@ -113,15 +116,9 @@
     def connect(self, profile_key="@DEFAULT@"):
         return self.db_core_iface.connect(profile_key)
 
-    def createProfile(self, profile):
-        return self.db_core_iface.createProfile(profile)
-
     def delContact(self, entity_jid, profile_key="@DEFAULT@"):
         return self.db_core_iface.delContact(entity_jid, profile_key)
 
-    def deleteProfile(self, profile):
-        return self.db_core_iface.deleteProfile(profile)
-
     def disconnect(self, profile_key="@DEFAULT@"):
         return self.db_core_iface.disconnect(profile_key)