Mercurial > libervia-backend
comparison 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 | 2a072735e459 |
children | 65ecbb473cbb |
comparison
equal
deleted
inserted
replaced
500:00d3679976ab | 501:e9634d2e7b38 |
---|---|
254 async_callbacks=None) | 254 async_callbacks=None) |
255 def getContacts(self, profile_key="@DEFAULT@"): | 255 def getContacts(self, profile_key="@DEFAULT@"): |
256 return self._callback("getContacts", unicode(profile_key)) | 256 return self._callback("getContacts", unicode(profile_key)) |
257 | 257 |
258 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | 258 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, |
259 in_signature='ss', out_signature='as', | |
260 async_callbacks=None) | |
261 def getContactsFromGroup(self, group, profile_key="@DEFAULT@"): | |
262 return self._callback("getContactsFromGroup", unicode(group), unicode(profile_key)) | |
263 | |
264 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | |
259 in_signature='ssib', out_signature='a(dsss)', | 265 in_signature='ssib', out_signature='a(dsss)', |
260 async_callbacks=('callback', 'errback')) | 266 async_callbacks=('callback', 'errback')) |
261 def getHistory(self, from_jid, to_jid, limit, between=True, callback=None, errback=None): | 267 def getHistory(self, from_jid, to_jid, limit, between=True, callback=None, errback=None): |
262 return self._callback("getHistory", unicode(from_jid), unicode(to_jid), limit, between, callback=callback, errback=errback) | 268 return self._callback("getHistory", unicode(from_jid), unicode(to_jid), limit, between, callback=callback, errback=errback) |
263 | 269 |
364 return self._callback("registerNewAccount", unicode(login), unicode(password), unicode(email), unicode(host), port) | 370 return self._callback("registerNewAccount", unicode(login), unicode(password), unicode(email), unicode(host), port) |
365 | 371 |
366 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | 372 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, |
367 in_signature='sssss', out_signature='', | 373 in_signature='sssss', out_signature='', |
368 async_callbacks=None) | 374 async_callbacks=None) |
369 def sendMessage(self, to_jid, message, subject='', mess_type="chat", profile_key="@DEFAULT@"): | 375 def sendMessage(self, to_jid, message, subject='', mess_type="auto", profile_key="@DEFAULT@"): |
370 return self._callback("sendMessage", unicode(to_jid), unicode(message), unicode(subject), unicode(mess_type), unicode(profile_key)) | 376 return self._callback("sendMessage", unicode(to_jid), unicode(message), unicode(subject), unicode(mess_type), unicode(profile_key)) |
371 | 377 |
372 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | 378 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, |
373 in_signature='ssss', out_signature='', | 379 in_signature='ssss', out_signature='', |
374 async_callbacks=None) | 380 async_callbacks=None) |