comparison src/bridge/dbus_bridge.py @ 2342:f047d5410040

core (memory/disco): added use_cache parameter to discoInfos/discoItems (set to False to ignore cache)
author Goffi <goffi@goffi.org>
date Tue, 22 Aug 2017 22:12:57 +0200
parents 255830fdb80b
children 8b37a62336c3
comparison
equal deleted inserted replaced
2341:f9580b4a105a 2342:f047d5410040
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='sss', out_signature='(asa(sss)a{sa(a{ss}as)})', 237 in_signature='ssbs', 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, node=u'', profile_key=u"@DEFAULT@", callback=None, errback=None): 239 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), unicode(profile_key), callback=callback, errback=errback) 240 return self._callback("discoInfos", unicode(entity_jid), unicode(node), use_cache, 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='sss', out_signature='a(sss)', 243 in_signature='ssbs', out_signature='a(sss)',
244 async_callbacks=('callback', 'errback')) 244 async_callbacks=('callback', 'errback'))
245 def discoItems(self, entity_jid, node=u'', profile_key=u"@DEFAULT@", callback=None, errback=None): 245 def discoItems(self, entity_jid, node=u'', use_cache=True, profile_key=u"@DEFAULT@", callback=None, errback=None):
246 return self._callback("discoItems", unicode(entity_jid), unicode(node), unicode(profile_key), callback=callback, errback=errback) 246 return self._callback("discoItems", unicode(entity_jid), unicode(node), use_cache, 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):