comparison 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
comparison
equal deleted inserted replaced
892:58107179cd97 893:308a96bc7c1b
202 async_callbacks=('callback', 'errback')) 202 async_callbacks=('callback', 'errback'))
203 def asyncCreateProfile(self, profile, callback=None, errback=None): 203 def asyncCreateProfile(self, profile, callback=None, errback=None):
204 return self._callback("asyncCreateProfile", unicode(profile), callback=callback, errback=errback) 204 return self._callback("asyncCreateProfile", unicode(profile), callback=callback, errback=errback)
205 205
206 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 206 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
207 in_signature='s', out_signature='',
208 async_callbacks=('callback', 'errback'))
209 def asyncDeleteProfile(self, profile, callback=None, errback=None):
210 return self._callback("asyncDeleteProfile", unicode(profile), callback=callback, errback=errback)
211
212 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
207 in_signature='sssis', out_signature='s', 213 in_signature='sssis', out_signature='s',
208 async_callbacks=('callback', 'errback')) 214 async_callbacks=('callback', 'errback'))
209 def asyncGetParamA(self, name, category, attribute="value", security_limit=-1, profile_key="@DEFAULT@", callback=None, errback=None): 215 def asyncGetParamA(self, name, category, attribute="value", security_limit=-1, profile_key="@DEFAULT@", callback=None, errback=None):
210 return self._callback("asyncGetParamA", unicode(name), unicode(category), unicode(attribute), security_limit, unicode(profile_key), callback=callback, errback=errback) 216 return self._callback("asyncGetParamA", unicode(name), unicode(category), unicode(attribute), security_limit, unicode(profile_key), callback=callback, errback=errback)
211 217
220 async_callbacks=None) 226 async_callbacks=None)
221 def connect(self, profile_key="@DEFAULT@"): 227 def connect(self, profile_key="@DEFAULT@"):
222 return self._callback("connect", unicode(profile_key)) 228 return self._callback("connect", unicode(profile_key))
223 229
224 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 230 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
225 in_signature='s', out_signature='i',
226 async_callbacks=None)
227 def createProfile(self, profile):
228 return self._callback("createProfile", unicode(profile))
229
230 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
231 in_signature='ss', out_signature='', 231 in_signature='ss', out_signature='',
232 async_callbacks=None) 232 async_callbacks=None)
233 def delContact(self, entity_jid, profile_key="@DEFAULT@"): 233 def delContact(self, entity_jid, profile_key="@DEFAULT@"):
234 return self._callback("delContact", unicode(entity_jid), unicode(profile_key)) 234 return self._callback("delContact", unicode(entity_jid), unicode(profile_key))
235
236 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
237 in_signature='s', out_signature='i',
238 async_callbacks=None)
239 def deleteProfile(self, profile):
240 return self._callback("deleteProfile", unicode(profile))
241 235
242 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 236 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
243 in_signature='s', out_signature='', 237 in_signature='s', out_signature='',
244 async_callbacks=None) 238 async_callbacks=None)
245 def disconnect(self, profile_key="@DEFAULT@"): 239 def disconnect(self, profile_key="@DEFAULT@"):