comparison 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
comparison
equal deleted inserted replaced
751:1def5b7edf9f 752:f49945d728de
389 def registerNewAccount(self, login, password, email, host, port=5222): 389 def registerNewAccount(self, login, password, email, host, port=5222):
390 return self._callback("registerNewAccount", unicode(login), unicode(password), unicode(email), unicode(host), port) 390 return self._callback("registerNewAccount", unicode(login), unicode(password), unicode(email), unicode(host), port)
391 391
392 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 392 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
393 in_signature='ssssa{ss}s', out_signature='', 393 in_signature='ssssa{ss}s', out_signature='',
394 async_callbacks=None) 394 async_callbacks=('callback', 'errback'))
395 def sendMessage(self, to_jid, message, subject='', mess_type="auto", extra={}, profile_key="@NONE@"): 395 def sendMessage(self, to_jid, message, subject='', mess_type="auto", extra={}, profile_key="@NONE@", callback=None, errback=None):
396 return self._callback("sendMessage", unicode(to_jid), unicode(message), unicode(subject), unicode(mess_type), extra, unicode(profile_key)) 396 return self._callback("sendMessage", unicode(to_jid), unicode(message), unicode(subject), unicode(mess_type), extra, unicode(profile_key), callback=callback, errback=errback)
397 397
398 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 398 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
399 in_signature='sssis', out_signature='', 399 in_signature='sssis', out_signature='',
400 async_callbacks=None) 400 async_callbacks=None)
401 def setParam(self, name, value, category, security_limit=-1, profile_key="@DEFAULT@"): 401 def setParam(self, name, value, category, security_limit=-1, profile_key="@DEFAULT@"):