Mercurial > libervia-backend
comparison src/bridge/dbus_bridge.py @ 2534:7da86e1633a5
core: new discoFindFeatures method which return all server services/roster entities implementing a set of features.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 24 Mar 2018 10:46:09 +0100 |
parents | 0046283a285d |
children | 27539029a662 |
comparison
equal
deleted
inserted
replaced
2533:8d82a62fa098 | 2534:7da86e1633a5 |
---|---|
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='asbbbs', out_signature='(a{sa(sss)}a{sa(sss)}a{sa(sss)})', | |
238 async_callbacks=('callback', 'errback')) | |
239 def discoFindByFeatures(self, namespaces, service=True, roster=True, own_jid=True, profile_key=u"@DEFAULT@", callback=None, errback=None): | |
240 return self._callback("discoFindByFeatures", namespaces, service, roster, own_jid, unicode(profile_key), callback=callback, errback=errback) | |
241 | |
242 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | |
237 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)})', |
238 async_callbacks=('callback', 'errback')) | 244 async_callbacks=('callback', 'errback')) |
239 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): |
240 return self._callback("discoInfos", unicode(entity_jid), unicode(node), use_cache, unicode(profile_key), callback=callback, errback=errback) | 246 return self._callback("discoInfos", unicode(entity_jid), unicode(node), use_cache, unicode(profile_key), callback=callback, errback=errback) |
241 | 247 |