backend, bridge: asynchronous history
quick_frontend: use of asynchronous history
This commit is contained in:
parent
88d0fceb2a
commit
f1966d9692
1 changed files with 94 additions and 79 deletions
|
|
@ -96,8 +96,8 @@ class DBusBridgeFrontend(BridgeFrontend):
|
|||
def getContacts(self, profile_key="@DEFAULT@"):
|
||||
return self.db_core_iface.getContacts(profile_key)
|
||||
|
||||
def getHistory(self, from_jid, to_jid, size):
|
||||
return self.db_core_iface.getHistory(from_jid, to_jid, size)
|
||||
def getHistory(self, from_jid, to_jid, limit, between=True, callback=None, errback=None):
|
||||
return self.db_core_iface.getHistory(from_jid, to_jid, limit, between, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:]))
|
||||
|
||||
def getLastResource(self, contact_jid, profile_key="@DEFAULT@"):
|
||||
return unicode(self.db_core_iface.getLastResource(contact_jid, profile_key))
|
||||
|
|
|
|||
Loading…
Reference in a new issue