Mercurial > libervia-backend
comparison src/bridge/DBus.py @ 755:e3ad48a2aab2
core, frontends: callMenu is now async and don't use callback_id anymore
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 24 Dec 2013 15:18:31 +0100 |
parents | f49945d728de |
children | 93bd868b8fb6 |
comparison
equal
deleted
inserted
replaced
754:f021bf27a557 | 755:e3ad48a2aab2 |
---|---|
190 async_callbacks=None) | 190 async_callbacks=None) |
191 def addContact(self, entity_jid, profile_key="@DEFAULT@"): | 191 def addContact(self, entity_jid, profile_key="@DEFAULT@"): |
192 return self._callback("addContact", unicode(entity_jid), unicode(profile_key)) | 192 return self._callback("addContact", unicode(entity_jid), unicode(profile_key)) |
193 | 193 |
194 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | 194 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, |
195 in_signature='ssss', out_signature='s', | |
196 async_callbacks=('callback', 'errback')) | |
197 def asyncCallMenu(self, category, name, menu_type, profile_key, callback=None, errback=None): | |
198 return self._callback("asyncCallMenu", unicode(category), unicode(name), unicode(menu_type), unicode(profile_key), callback=callback, errback=errback) | |
199 | |
200 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | |
195 in_signature='s', out_signature='', | 201 in_signature='s', out_signature='', |
196 async_callbacks=('callback', 'errback')) | 202 async_callbacks=('callback', 'errback')) |
197 def asyncConnect(self, profile_key="@DEFAULT@", callback=None, errback=None): | 203 def asyncConnect(self, profile_key="@DEFAULT@", callback=None, errback=None): |
198 return self._callback("asyncConnect", unicode(profile_key), callback=callback, errback=errback) | 204 return self._callback("asyncConnect", unicode(profile_key), callback=callback, errback=errback) |
199 | 205 |
206 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | 212 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, |
207 in_signature='sssis', out_signature='s', | 213 in_signature='sssis', out_signature='s', |
208 async_callbacks=('callback', 'errback')) | 214 async_callbacks=('callback', 'errback')) |
209 def asyncGetParamA(self, name, category, attribute="value", security_limit=-1, profile_key="@DEFAULT@", callback=None, errback=None): | 215 def asyncGetParamA(self, name, category, attribute="value", security_limit=-1, profile_key="@DEFAULT@", callback=None, errback=None): |
210 return self._callback("asyncGetParamA", unicode(name), unicode(category), unicode(attribute), security_limit, unicode(profile_key), callback=callback, errback=errback) | 216 return self._callback("asyncGetParamA", unicode(name), unicode(category), unicode(attribute), security_limit, unicode(profile_key), callback=callback, errback=errback) |
211 | |
212 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | |
213 in_signature='ssss', out_signature='s', | |
214 async_callbacks=None) | |
215 def callMenu(self, category, name, menu_type, profile_key): | |
216 return self._callback("callMenu", unicode(category), unicode(name), unicode(menu_type), unicode(profile_key)) | |
217 | 217 |
218 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | 218 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, |
219 in_signature='sba{ss}s', out_signature='', | 219 in_signature='sba{ss}s', out_signature='', |
220 async_callbacks=None) | 220 async_callbacks=None) |
221 def confirmationAnswer(self, id, accepted, data, profile): | 221 def confirmationAnswer(self, id, accepted, data, profile): |