Mercurial > libervia-backend
comparison frontends/src/bridge/DBus.py @ 501:e9634d2e7b38
core, quick_frontend, primitivus, wix: Contacts List refactoring phase 1:
- QuickContactManagement is not used anymore and will be removed, ContactList + Core are used instead
- disconnected contacts are now displayed in Primitivus (M-d to show/hide them)
- avatars are temporary unavailable in wix
- new bridge method: getContactsFromGroup
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 25 Sep 2012 00:58:34 +0200 |
parents | 9248f2c5e03e |
children | 65ecbb473cbb |
comparison
equal
deleted
inserted
replaced
500:00d3679976ab | 501:e9634d2e7b38 |
---|---|
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 getContactsFromGroup(self, group, profile_key="@DEFAULT@"): | |
100 return self.db_core_iface.getContactsFromGroup(group, profile_key) | |
101 | |
99 def getHistory(self, from_jid, to_jid, limit, between=True, callback=None, errback=None): | 102 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, limit, between, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:])) | 103 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 | 104 |
102 def getLastResource(self, contact_jid, profile_key="@DEFAULT@"): | 105 def getLastResource(self, contact_jid, profile_key="@DEFAULT@"): |
103 return unicode(self.db_core_iface.getLastResource(contact_jid, profile_key)) | 106 return unicode(self.db_core_iface.getLastResource(contact_jid, profile_key)) |