comparison src/bridge/DBus.py @ 1622:5b24d6bf5d15

core, bridge: actionsGet: - added a new mechanism to keep actions until they are answered (or timeout-ed) - keep_id must be explicitly used on actionNew - actionsGet is used to retrive these actions - the mechanism is used in deferXMLUI
author Goffi <goffi@goffi.org>
date Tue, 17 Nov 2015 21:28:58 +0100
parents e2ed8009e66e
children 63cef4dbf2a4
comparison
equal deleted inserted replaced
1621:a17a91531fbe 1622:5b24d6bf5d15
211 pass 211 pass
212 212
213 ### methods ### 213 ### methods ###
214 214
215 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 215 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
216 in_signature='s', out_signature='a(a{ss}si)',
217 async_callbacks=None)
218 def actionsGet(self, profile_key="@DEFAULT@"):
219 return self._callback("actionsGet", unicode(profile_key))
220
221 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
216 in_signature='ss', out_signature='', 222 in_signature='ss', out_signature='',
217 async_callbacks=None) 223 async_callbacks=None)
218 def addContact(self, entity_jid, profile_key="@DEFAULT@"): 224 def addContact(self, entity_jid, profile_key="@DEFAULT@"):
219 return self._callback("addContact", unicode(entity_jid), unicode(profile_key)) 225 return self._callback("addContact", unicode(entity_jid), unicode(profile_key))
220 226