Mercurial > libervia-backend
comparison frontends/src/bridge/DBus.py @ 425:e4e9187e3b5b
backend, bridge: asynchronous history
quick_frontend: use of asynchronous history
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 08 Nov 2011 01:08:11 +0100 |
parents | 6c20c76abdcc |
children | c243f4cb2ad9 |
comparison
equal
deleted
inserted
replaced
424:72c13313b6d6 | 425:e4e9187e3b5b |
---|---|
94 return unicode(self.db_core_iface.getConfig(section, name)) | 94 return unicode(self.db_core_iface.getConfig(section, name)) |
95 | 95 |
96 def getContacts(self, profile_key="@DEFAULT@"): | 96 def getContacts(self, profile_key="@DEFAULT@"): |
97 return self.db_core_iface.getContacts(profile_key) | 97 return self.db_core_iface.getContacts(profile_key) |
98 | 98 |
99 def getHistory(self, from_jid, to_jid, size): | 99 def getHistory(self, from_jid, to_jid, limit, between=True, callback=None, errback=None): |
100 return self.db_core_iface.getHistory(from_jid, to_jid, size) | 100 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:])) |
101 | 101 |
102 def getLastResource(self, contact_jid, profile_key="@DEFAULT@"): | 102 def getLastResource(self, contact_jid, profile_key="@DEFAULT@"): |
103 return unicode(self.db_core_iface.getLastResource(contact_jid, profile_key)) | 103 return unicode(self.db_core_iface.getLastResource(contact_jid, profile_key)) |
104 | 104 |
105 def getMenuHelp(self, category, name, menu_type): | 105 def getMenuHelp(self, category, name, menu_type): |