comparison src/bridge/DBus.py @ 777:5642939d254e

core, bridge: new method paramsRegisterApp to register frontend's specific parameters
author souliane <souliane@mailoo.org>
date Fri, 27 Dec 2013 13:28:26 +0100
parents eac23b1aad90
children 1fe00f0c9a91
comparison
equal deleted inserted replaced
776:f89173f44850 777:5642939d254e
298 async_callbacks=None) 298 async_callbacks=None)
299 def getParamA(self, name, category, attribute="value", profile_key="@DEFAULT@"): 299 def getParamA(self, name, category, attribute="value", profile_key="@DEFAULT@"):
300 return self._callback("getParamA", unicode(name), unicode(category), unicode(attribute), unicode(profile_key)) 300 return self._callback("getParamA", unicode(name), unicode(category), unicode(attribute), unicode(profile_key))
301 301
302 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 302 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
303 in_signature='is', out_signature='s', 303 in_signature='iss', out_signature='s',
304 async_callbacks=('callback', 'errback')) 304 async_callbacks=('callback', 'errback'))
305 def getParams(self, security_limit=-1, profile_key="@DEFAULT@", callback=None, errback=None): 305 def getParams(self, security_limit=-1, app='', profile_key="@DEFAULT@", callback=None, errback=None):
306 return self._callback("getParams", security_limit, unicode(profile_key), callback=callback, errback=errback) 306 return self._callback("getParams", security_limit, unicode(app), unicode(profile_key), callback=callback, errback=errback)
307 307
308 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 308 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
309 in_signature='', out_signature='as', 309 in_signature='', out_signature='as',
310 async_callbacks=None) 310 async_callbacks=None)
311 def getParamsCategories(self, ): 311 def getParamsCategories(self, ):
312 return self._callback("getParamsCategories", ) 312 return self._callback("getParamsCategories", )
313 313
314 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 314 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
315 in_signature='sis', out_signature='s', 315 in_signature='siss', out_signature='s',
316 async_callbacks=('callback', 'errback')) 316 async_callbacks=('callback', 'errback'))
317 def getParamsForCategory(self, category, security_limit=-1, profile_key="@DEFAULT@", callback=None, errback=None): 317 def getParamsForCategory(self, category, security_limit=-1, app='', profile_key="@DEFAULT@", callback=None, errback=None):
318 return self._callback("getParamsForCategory", unicode(category), security_limit, unicode(profile_key), callback=callback, errback=errback) 318 return self._callback("getParamsForCategory", unicode(category), security_limit, unicode(app), unicode(profile_key), callback=callback, errback=errback)
319 319
320 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 320 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
321 in_signature='is', out_signature='s', 321 in_signature='iss', out_signature='s',
322 async_callbacks=('callback', 'errback')) 322 async_callbacks=('callback', 'errback'))
323 def getParamsUI(self, security_limit=-1, profile_key="@DEFAULT@", callback=None, errback=None): 323 def getParamsUI(self, security_limit=-1, app='', profile_key="@DEFAULT@", callback=None, errback=None):
324 return self._callback("getParamsUI", security_limit, unicode(profile_key), callback=callback, errback=errback) 324 return self._callback("getParamsUI", security_limit, unicode(app), unicode(profile_key), callback=callback, errback=errback)
325 325
326 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 326 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
327 in_signature='s', out_signature='a{sa{s(sia{ss})}}', 327 in_signature='s', out_signature='a{sa{s(sia{ss})}}',
328 async_callbacks=None) 328 async_callbacks=None)
329 def getPresenceStatus(self, profile_key="@DEFAULT@"): 329 def getPresenceStatus(self, profile_key="@DEFAULT@"):
374 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 374 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
375 in_signature='sa{ss}s', out_signature='a{ss}', 375 in_signature='sa{ss}s', out_signature='a{ss}',
376 async_callbacks=('callback', 'errback')) 376 async_callbacks=('callback', 'errback'))
377 def launchAction(self, callback_id, data, profile_key="@DEFAULT@", callback=None, errback=None): 377 def launchAction(self, callback_id, data, profile_key="@DEFAULT@", callback=None, errback=None):
378 return self._callback("launchAction", unicode(callback_id), data, unicode(profile_key), callback=callback, errback=errback) 378 return self._callback("launchAction", unicode(callback_id), data, unicode(profile_key), callback=callback, errback=errback)
379
380 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
381 in_signature='sis', out_signature='',
382 async_callbacks=None)
383 def paramsRegisterApp(self, xml, security_limit=-1, app=''):
384 return self._callback("paramsRegisterApp", unicode(xml), security_limit, unicode(app))
379 385
380 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 386 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
381 in_signature='ssssi', out_signature='s', 387 in_signature='ssssi', out_signature='s',
382 async_callbacks=None) 388 async_callbacks=None)
383 def registerNewAccount(self, login, password, email, host, port=5222): 389 def registerNewAccount(self, login, password, email, host, port=5222):