Mercurial > libervia-backend
comparison src/bridge/DBus.py @ 399:3ed53803b3b3
core: added getLastResource method
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 06 Oct 2011 21:16:03 +0200 |
parents | e66d300c5d42 |
children | dd4caab17008 |
comparison
equal
deleted
inserted
replaced
398:cb0285372818 | 399:3ed53803b3b3 |
---|---|
193 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | 193 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, |
194 in_signature='ssi', out_signature='a{i(ss)}', | 194 in_signature='ssi', out_signature='a{i(ss)}', |
195 async_callbacks=None) | 195 async_callbacks=None) |
196 def getHistory(self, from_jid, to_jid, size): | 196 def getHistory(self, from_jid, to_jid, size): |
197 return self.cb["getHistory"](unicode(from_jid), unicode(to_jid), size) | 197 return self.cb["getHistory"](unicode(from_jid), unicode(to_jid), size) |
198 | |
199 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | |
200 in_signature='ss', out_signature='s', | |
201 async_callbacks=None) | |
202 def getLastResource(self, contact_jid, profile_key="@DEFAULT@"): | |
203 return self.cb["getLastResource"](unicode(contact_jid), unicode(profile_key)) | |
198 | 204 |
199 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | 205 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, |
200 in_signature='sss', out_signature='s', | 206 in_signature='sss', out_signature='s', |
201 async_callbacks=None) | 207 async_callbacks=None) |
202 def getMenuHelp(self, category, name, menu_type): | 208 def getMenuHelp(self, category, name, menu_type): |