comparison src/bridge/dbus_bridge.py @ 2142:be96beb7ca14

core, bridge, frontends: renamed asyncConnect to connect, and added options parameters (not used yet)
author Goffi <goffi@goffi.org>
date Mon, 06 Feb 2017 22:54:43 +0100
parents 2f264f3df280
children 1d3f73e065e1
comparison
equal deleted inserted replaced
2141:35762e9ce8b9 2142:be96beb7ca14
202 async_callbacks=None) 202 async_callbacks=None)
203 def addContact(self, entity_jid, profile_key="@DEFAULT@"): 203 def addContact(self, entity_jid, profile_key="@DEFAULT@"):
204 return self._callback("addContact", unicode(entity_jid), unicode(profile_key)) 204 return self._callback("addContact", unicode(entity_jid), unicode(profile_key))
205 205
206 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 206 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
207 in_signature='ss', out_signature='b',
208 async_callbacks=('callback', 'errback'))
209 def asyncConnect(self, profile_key="@DEFAULT@", password='', callback=None, errback=None):
210 return self._callback("asyncConnect", unicode(profile_key), unicode(password), callback=callback, errback=errback)
211
212 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
213 in_signature='ss', out_signature='', 207 in_signature='ss', out_signature='',
214 async_callbacks=('callback', 'errback')) 208 async_callbacks=('callback', 'errback'))
215 def asyncCreateProfile(self, profile, password='', callback=None, errback=None): 209 def asyncCreateProfile(self, profile, password='', callback=None, errback=None):
216 return self._callback("asyncCreateProfile", unicode(profile), unicode(password), callback=callback, errback=errback) 210 return self._callback("asyncCreateProfile", unicode(profile), unicode(password), callback=callback, errback=errback)
217 211
230 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 224 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
231 in_signature='sis', out_signature='a{ss}', 225 in_signature='sis', out_signature='a{ss}',
232 async_callbacks=('callback', 'errback')) 226 async_callbacks=('callback', 'errback'))
233 def asyncGetParamsValuesFromCategory(self, category, security_limit=-1, profile_key="@DEFAULT@", callback=None, errback=None): 227 def asyncGetParamsValuesFromCategory(self, category, security_limit=-1, profile_key="@DEFAULT@", callback=None, errback=None):
234 return self._callback("asyncGetParamsValuesFromCategory", unicode(category), security_limit, unicode(profile_key), callback=callback, errback=errback) 228 return self._callback("asyncGetParamsValuesFromCategory", unicode(category), security_limit, unicode(profile_key), callback=callback, errback=errback)
229
230 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
231 in_signature='ssa{ss}', out_signature='b',
232 async_callbacks=('callback', 'errback'))
233 def connect(self, profile_key="@DEFAULT@", password='', options={}, callback=None, errback=None):
234 return self._callback("connect", unicode(profile_key), unicode(password), options, callback=callback, errback=errback)
235 235
236 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 236 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
237 in_signature='ss', out_signature='', 237 in_signature='ss', out_signature='',
238 async_callbacks=('callback', 'errback')) 238 async_callbacks=('callback', 'errback'))
239 def delContact(self, entity_jid, profile_key="@DEFAULT@", callback=None, errback=None): 239 def delContact(self, entity_jid, profile_key="@DEFAULT@", callback=None, errback=None):