Mercurial > libervia-backend
diff 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/src/bridge/DBus.py Fri Feb 28 11:19:08 2014 +0100 +++ b/src/bridge/DBus.py Mon Mar 03 09:59:10 2014 +0100 @@ -204,6 +204,12 @@ return self._callback("asyncCreateProfile", unicode(profile), callback=callback, errback=errback) @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, + in_signature='s', out_signature='', + async_callbacks=('callback', 'errback')) + def asyncDeleteProfile(self, profile, callback=None, errback=None): + return self._callback("asyncDeleteProfile", unicode(profile), callback=callback, errback=errback) + + @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, in_signature='sssis', out_signature='s', async_callbacks=('callback', 'errback')) def asyncGetParamA(self, name, category, attribute="value", security_limit=-1, profile_key="@DEFAULT@", callback=None, errback=None): @@ -222,24 +228,12 @@ return self._callback("connect", unicode(profile_key)) @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, - in_signature='s', out_signature='i', - async_callbacks=None) - def createProfile(self, profile): - return self._callback("createProfile", unicode(profile)) - - @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, in_signature='ss', out_signature='', async_callbacks=None) def delContact(self, entity_jid, profile_key="@DEFAULT@"): return self._callback("delContact", unicode(entity_jid), unicode(profile_key)) @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, - in_signature='s', out_signature='i', - async_callbacks=None) - def deleteProfile(self, profile): - return self._callback("deleteProfile", unicode(profile)) - - @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, in_signature='s', out_signature='', async_callbacks=None) def disconnect(self, profile_key="@DEFAULT@"):