Mercurial > libervia-backend
diff 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 |
line wrap: on
line diff
--- a/src/bridge/DBus.py Wed Oct 05 16:49:57 2011 +0200 +++ b/src/bridge/DBus.py Thu Oct 06 21:16:03 2011 +0200 @@ -197,6 +197,12 @@ return self.cb["getHistory"](unicode(from_jid), unicode(to_jid), size) @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, + in_signature='ss', out_signature='s', + async_callbacks=None) + def getLastResource(self, contact_jid, profile_key="@DEFAULT@"): + return self.cb["getLastResource"](unicode(contact_jid), unicode(profile_key)) + + @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, in_signature='sss', out_signature='s', async_callbacks=None) def getMenuHelp(self, category, name, menu_type):