comparison src/bridge/DBus.py @ 963:723f28cd15c7

core (disco): added discoInfos and discoItems bridge methods
author Goffi <goffi@goffi.org>
date Tue, 01 Apr 2014 21:14:57 +0200
parents 71926ec2114d
children 301b342c697a
comparison
equal deleted inserted replaced
962:b280cf4cdf25 963:723f28cd15c7
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 235
236 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 236 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
237 in_signature='ss', out_signature='(asa(sss))',
238 async_callbacks=('callback', 'errback'))
239 def discoInfos(self, entity_jid, profile_key, callback=None, errback=None):
240 return self._callback("discoInfos", unicode(entity_jid), unicode(profile_key), callback=callback, errback=errback)
241
242 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
243 in_signature='ss', out_signature='a(sss)',
244 async_callbacks=('callback', 'errback'))
245 def discoItems(self, entity_jid, profile_key, callback=None, errback=None):
246 return self._callback("discoItems", unicode(entity_jid), unicode(profile_key), callback=callback, errback=errback)
247
248 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
237 in_signature='s', out_signature='', 249 in_signature='s', out_signature='',
238 async_callbacks=None) 250 async_callbacks=None)
239 def disconnect(self, profile_key="@DEFAULT@"): 251 def disconnect(self, profile_key="@DEFAULT@"):
240 return self._callback("disconnect", unicode(profile_key)) 252 return self._callback("disconnect", unicode(profile_key))
241 253