comparison sat/bridge/dbus_bridge.py @ 3163:d10b2368684e

bridge: added methods to let frontends store/retrieve/delete private data
author Goffi <goffi@goffi.org>
date Mon, 10 Feb 2020 22:01:53 +0100
parents 830fce0db15d
children 39d7327583e1
comparison
equal deleted inserted replaced
3162:b5c058c7692e 3163:d10b2368684e
471 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 471 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
472 in_signature='sis', out_signature='', 472 in_signature='sis', out_signature='',
473 async_callbacks=None) 473 async_callbacks=None)
474 def paramsRegisterApp(self, xml, security_limit=-1, app=''): 474 def paramsRegisterApp(self, xml, security_limit=-1, app=''):
475 return self._callback("paramsRegisterApp", str(xml), security_limit, str(app)) 475 return self._callback("paramsRegisterApp", str(xml), security_limit, str(app))
476
477 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
478 in_signature='sss', out_signature='',
479 async_callbacks=('callback', 'errback'))
480 def privateDataDelete(self, namespace, key, arg_2, callback=None, errback=None):
481 return self._callback("privateDataDelete", str(namespace), str(key), str(arg_2), callback=callback, errback=errback)
482
483 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
484 in_signature='sss', out_signature='s',
485 async_callbacks=('callback', 'errback'))
486 def privateDataGet(self, namespace, key, profile_key, callback=None, errback=None):
487 return self._callback("privateDataGet", str(namespace), str(key), str(profile_key), callback=callback, errback=errback)
488
489 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
490 in_signature='ssss', out_signature='',
491 async_callbacks=('callback', 'errback'))
492 def privateDataSet(self, namespace, key, data, profile_key, callback=None, errback=None):
493 return self._callback("privateDataSet", str(namespace), str(key), str(data), str(profile_key), callback=callback, errback=errback)
476 494
477 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 495 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
478 in_signature='sss', out_signature='', 496 in_signature='sss', out_signature='',
479 async_callbacks=('callback', 'errback')) 497 async_callbacks=('callback', 'errback'))
480 def profileCreate(self, profile, password='', component='', callback=None, errback=None): 498 def profileCreate(self, profile, password='', component='', callback=None, errback=None):