Mercurial > libervia-backend
comparison frontends/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 |
---|---|
194 return unicode(self.db_core_iface.launchAction(action_type, data, profile_key)) | 194 return unicode(self.db_core_iface.launchAction(action_type, data, profile_key)) |
195 | 195 |
196 def registerNewAccount(self, login, password, email, host, port=5222): | 196 def registerNewAccount(self, login, password, email, host, port=5222): |
197 return unicode(self.db_core_iface.registerNewAccount(login, password, email, host, port)) | 197 return unicode(self.db_core_iface.registerNewAccount(login, password, email, host, port)) |
198 | 198 |
199 def sendMessage(self, to_jid, message, subject='', mess_type="auto", profile_key="@DEFAULT@"): | 199 def sendMessage(self, to_jid, message, subject='', mess_type="auto", options={}, profile_key="@NONE@"): |
200 return self.db_core_iface.sendMessage(to_jid, message, subject, mess_type, profile_key) | 200 return self.db_core_iface.sendMessage(to_jid, message, subject, mess_type, options, profile_key) |
201 | 201 |
202 def setParam(self, name, value, category, profile_key="@DEFAULT@"): | 202 def setParam(self, name, value, category, profile_key="@DEFAULT@"): |
203 return self.db_core_iface.setParam(name, value, category, profile_key) | 203 return self.db_core_iface.setParam(name, value, category, profile_key) |
204 | 204 |
205 def setPresence(self, to_jid='', show='', priority=0, statuses={}, profile_key="@DEFAULT@"): | 205 def setPresence(self, to_jid='', show='', priority=0, statuses={}, profile_key="@DEFAULT@"): |