comparison src/bridge/DBus.py @ 636:7ea6d5a86e58

plugin XEP-0085: Chat State Notifications - new "options" parameter to send chat states - plugin command export: messages without body are now delivered (since all the chat states other than "active" need them)
author souliane <souliane@mailoo.org>
date Thu, 05 Sep 2013 20:48:47 +0200
parents ca2cae6b2c6d
children 49587e170f53
comparison
equal deleted inserted replaced
635:eff8772fd472 636:7ea6d5a86e58
383 async_callbacks=None) 383 async_callbacks=None)
384 def registerNewAccount(self, login, password, email, host, port=5222): 384 def registerNewAccount(self, login, password, email, host, port=5222):
385 return self._callback("registerNewAccount", unicode(login), unicode(password), unicode(email), unicode(host), port) 385 return self._callback("registerNewAccount", unicode(login), unicode(password), unicode(email), unicode(host), port)
386 386
387 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 387 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
388 in_signature='sssss', out_signature='', 388 in_signature='ssssa{ss}s', out_signature='',
389 async_callbacks=None) 389 async_callbacks=None)
390 def sendMessage(self, to_jid, message, subject='', mess_type="auto", profile_key="@DEFAULT@"): 390 def sendMessage(self, to_jid, message, subject='', mess_type="auto", options={}, profile_key="@NONE@"):
391 return self._callback("sendMessage", unicode(to_jid), unicode(message), unicode(subject), unicode(mess_type), unicode(profile_key)) 391 return self._callback("sendMessage", unicode(to_jid), unicode(message), unicode(subject), unicode(mess_type), options, unicode(profile_key))
392 392
393 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 393 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
394 in_signature='ssss', out_signature='', 394 in_signature='ssss', out_signature='',
395 async_callbacks=None) 395 async_callbacks=None)
396 def setParam(self, name, value, category, profile_key="@DEFAULT@"): 396 def setParam(self, name, value, category, profile_key="@DEFAULT@"):