Mercurial > libervia-backend
comparison src/bridge/DBus.py @ 1015:fee00f2e11c2
memory, jp: added jp commands to load/save parameters template
author | souliane <souliane@mailoo.org> |
---|---|
date | Sun, 04 May 2014 18:43:54 +0200 |
parents | 301b342c697a |
children | 8bae81e254a2 |
comparison
equal
deleted
inserted
replaced
1014:e40d9858cb83 | 1015:fee00f2e11c2 |
---|---|
384 async_callbacks=('callback', 'errback')) | 384 async_callbacks=('callback', 'errback')) |
385 def launchAction(self, callback_id, data, profile_key="@DEFAULT@", callback=None, errback=None): | 385 def launchAction(self, callback_id, data, profile_key="@DEFAULT@", callback=None, errback=None): |
386 return self._callback("launchAction", unicode(callback_id), data, unicode(profile_key), callback=callback, errback=errback) | 386 return self._callback("launchAction", unicode(callback_id), data, unicode(profile_key), callback=callback, errback=errback) |
387 | 387 |
388 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | 388 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, |
389 in_signature='s', out_signature='b', | |
390 async_callbacks=None) | |
391 def loadParamsTemplate(self, filename): | |
392 return self._callback("loadParamsTemplate", unicode(filename)) | |
393 | |
394 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | |
389 in_signature='sis', out_signature='', | 395 in_signature='sis', out_signature='', |
390 async_callbacks=None) | 396 async_callbacks=None) |
391 def paramsRegisterApp(self, xml, security_limit=-1, app=''): | 397 def paramsRegisterApp(self, xml, security_limit=-1, app=''): |
392 return self._callback("paramsRegisterApp", unicode(xml), security_limit, unicode(app)) | 398 return self._callback("paramsRegisterApp", unicode(xml), security_limit, unicode(app)) |
393 | 399 |
394 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | 400 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, |
395 in_signature='ssssi', out_signature='s', | 401 in_signature='ssssi', out_signature='s', |
396 async_callbacks=None) | 402 async_callbacks=None) |
397 def registerNewAccount(self, login, password, email, host, port=5222): | 403 def registerNewAccount(self, login, password, email, host, port=5222): |
398 return self._callback("registerNewAccount", unicode(login), unicode(password), unicode(email), unicode(host), port) | 404 return self._callback("registerNewAccount", unicode(login), unicode(password), unicode(email), unicode(host), port) |
405 | |
406 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | |
407 in_signature='s', out_signature='b', | |
408 async_callbacks=None) | |
409 def saveParamsTemplate(self, filename): | |
410 return self._callback("saveParamsTemplate", unicode(filename)) | |
399 | 411 |
400 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | 412 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, |
401 in_signature='ssssa{ss}s', out_signature='', | 413 in_signature='ssssa{ss}s', out_signature='', |
402 async_callbacks=('callback', 'errback')) | 414 async_callbacks=('callback', 'errback')) |
403 def sendMessage(self, to_jid, message, subject='', mess_type="auto", extra={}, profile_key="@NONE@", callback=None, errback=None): | 415 def sendMessage(self, to_jid, message, subject='', mess_type="auto", extra={}, profile_key="@NONE@", callback=None, errback=None): |