comparison sat/bridge/dbus_bridge.py @ 2595:973d4551ffae

core: added local_device argument to discoFindByFeatures
author Goffi <goffi@goffi.org>
date Fri, 25 May 2018 10:52:01 +0200
parents 26edcf3a30eb
children 56f94936df1e
comparison
equal deleted inserted replaced
2594:59ba387c17ea 2595:973d4551ffae
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='asa(ss)bbbbs', out_signature='(a{sa(sss)}a{sa(sss)}a{sa(sss)})', 237 in_signature='asa(ss)bbbbbs', out_signature='(a{sa(sss)}a{sa(sss)}a{sa(sss)})',
238 async_callbacks=('callback', 'errback')) 238 async_callbacks=('callback', 'errback'))
239 def discoFindByFeatures(self, namespaces, identities, bare_jid=False, service=True, roster=True, own_jid=True, profile_key=u"@DEFAULT@", callback=None, errback=None): 239 def discoFindByFeatures(self, namespaces, identities, bare_jid=False, service=True, roster=True, own_jid=True, local_device=False, profile_key=u"@DEFAULT@", callback=None, errback=None):
240 return self._callback("discoFindByFeatures", namespaces, identities, bare_jid, service, roster, own_jid, unicode(profile_key), callback=callback, errback=errback) 240 return self._callback("discoFindByFeatures", namespaces, identities, bare_jid, service, roster, own_jid, local_device, 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='ssbs', out_signature='(asa(sss)a{sa(a{ss}as)})', 243 in_signature='ssbs', out_signature='(asa(sss)a{sa(a{ss}as)})',
244 async_callbacks=('callback', 'errback')) 244 async_callbacks=('callback', 'errback'))
245 def discoInfos(self, entity_jid, node=u'', use_cache=True, profile_key=u"@DEFAULT@", callback=None, errback=None): 245 def discoInfos(self, entity_jid, node=u'', use_cache=True, profile_key=u"@DEFAULT@", callback=None, errback=None):