Mercurial > libervia-backend
diff src/bridge/DBus.py @ 752:f49945d728de
core,bridge: sendMessage bridge method is now async
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 17 Dec 2013 01:46:45 +0100 |
parents | 1def5b7edf9f |
children | e3ad48a2aab2 |
line wrap: on
line diff
--- a/src/bridge/DBus.py Tue Dec 17 00:56:39 2013 +0100 +++ b/src/bridge/DBus.py Tue Dec 17 01:46:45 2013 +0100 @@ -391,9 +391,9 @@ @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, in_signature='ssssa{ss}s', out_signature='', - async_callbacks=None) - def sendMessage(self, to_jid, message, subject='', mess_type="auto", extra={}, profile_key="@NONE@"): - return self._callback("sendMessage", unicode(to_jid), unicode(message), unicode(subject), unicode(mess_type), extra, unicode(profile_key)) + async_callbacks=('callback', 'errback')) + def sendMessage(self, to_jid, message, subject='', mess_type="auto", extra={}, profile_key="@NONE@", callback=None, errback=None): + return self._callback("sendMessage", unicode(to_jid), unicode(message), unicode(subject), unicode(mess_type), extra, unicode(profile_key), callback=callback, errback=errback) @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, in_signature='sssis', out_signature='',