comparison src/bridge/dbus_bridge.py @ 2150:91347fe95384

core(memory.disco), bridge: discoInfos and discoItems now handle node
author Goffi <goffi@goffi.org>
date Sun, 12 Feb 2017 21:17:56 +0100
parents 1bb9bf1b4150
children 255830fdb80b
comparison
equal deleted inserted replaced
2149:a0e6f7951bd7 2150:91347fe95384
232 async_callbacks=('callback', 'errback')) 232 async_callbacks=('callback', 'errback'))
233 def delContact(self, entity_jid, profile_key="@DEFAULT@", callback=None, errback=None): 233 def delContact(self, entity_jid, profile_key="@DEFAULT@", callback=None, errback=None):
234 return self._callback("delContact", unicode(entity_jid), unicode(profile_key), callback=callback, errback=errback) 234 return self._callback("delContact", unicode(entity_jid), unicode(profile_key), callback=callback, errback=errback)
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)a{sa(a{ss}as)})', 237 in_signature='sss', out_signature='(asa(sss)a{sa(a{ss}as)})',
238 async_callbacks=('callback', 'errback')) 238 async_callbacks=('callback', 'errback'))
239 def discoInfos(self, entity_jid, profile_key, callback=None, errback=None): 239 def discoInfos(self, entity_jid, node=u'', profile_key=u"@DEFAULT@", callback=None, errback=None):
240 return self._callback("discoInfos", unicode(entity_jid), unicode(profile_key), callback=callback, errback=errback) 240 return self._callback("discoInfos", unicode(entity_jid), unicode(node), unicode(profile_key), callback=callback, errback=errback)
241 241
242 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 242 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
243 in_signature='ss', out_signature='a(sss)', 243 in_signature='sss', out_signature='a(sss)',
244 async_callbacks=('callback', 'errback')) 244 async_callbacks=('callback', 'errback'))
245 def discoItems(self, entity_jid, profile_key, callback=None, errback=None): 245 def discoItems(self, entity_jid, node=u'', profile_key=u"@DEFAULT@", callback=None, errback=None):
246 return self._callback("discoItems", unicode(entity_jid), unicode(profile_key), callback=callback, errback=errback) 246 return self._callback("discoItems", unicode(entity_jid), unicode(node), unicode(profile_key), callback=callback, errback=errback)
247 247
248 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 248 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
249 in_signature='s', out_signature='', 249 in_signature='s', out_signature='',
250 async_callbacks=('callback', 'errback')) 250 async_callbacks=('callback', 'errback'))
251 def disconnect(self, profile_key="@DEFAULT@", callback=None, errback=None): 251 def disconnect(self, profile_key="@DEFAULT@", callback=None, errback=None):