bridge: added methods to let frontends store/retrieve/delete private data
This commit is contained in:
parent
104902f076
commit
d684685e24
2 changed files with 168 additions and 0 deletions
|
|
@ -573,6 +573,41 @@ doc_param_1=category: as for [setParam]
|
|||
doc_param_2=attribute: Name of the attribute
|
||||
doc_param_3=%(doc_profile_key)s
|
||||
|
||||
[privateDataGet]
|
||||
async=
|
||||
type=method
|
||||
category=core
|
||||
sig_in=sss
|
||||
sig_out=s
|
||||
doc=Retrieve private data
|
||||
doc_param_0=namespace: unique namespace to use
|
||||
doc_param_1=key: key of the data to set
|
||||
doc_param_2=%(doc_profile_key)s
|
||||
doc_return=serialised data
|
||||
|
||||
[privateDataSet]
|
||||
async=
|
||||
type=method
|
||||
category=core
|
||||
sig_in=ssss
|
||||
sig_out=
|
||||
doc=Store private data
|
||||
doc_param_0=namespace: unique namespace to use
|
||||
doc_param_1=key: key of the data to set
|
||||
doc_param_2=data: serialised data
|
||||
doc_param_3=%(doc_profile_key)s
|
||||
|
||||
[privateDataDelete]
|
||||
async=
|
||||
type=method
|
||||
category=core
|
||||
sig_in=sss
|
||||
sig_out=
|
||||
doc=Delete private data
|
||||
doc_param_0=namespace: unique namespace to use
|
||||
doc_param_1=key: key of the data to delete
|
||||
doc_param_3=%(doc_profile_key)s
|
||||
|
||||
[asyncGetParamA]
|
||||
async=
|
||||
type=method
|
||||
|
|
|
|||
|
|
@ -474,6 +474,24 @@ class DbusObject(dbus.service.Object):
|
|||
def paramsRegisterApp(self, xml, security_limit=-1, app=''):
|
||||
return self._callback("paramsRegisterApp", str(xml), security_limit, str(app))
|
||||
|
||||
@dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
|
||||
in_signature='sss', out_signature='',
|
||||
async_callbacks=('callback', 'errback'))
|
||||
def privateDataDelete(self, namespace, key, arg_2, callback=None, errback=None):
|
||||
return self._callback("privateDataDelete", str(namespace), str(key), str(arg_2), callback=callback, errback=errback)
|
||||
|
||||
@dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
|
||||
in_signature='sss', out_signature='s',
|
||||
async_callbacks=('callback', 'errback'))
|
||||
def privateDataGet(self, namespace, key, profile_key, callback=None, errback=None):
|
||||
return self._callback("privateDataGet", str(namespace), str(key), str(profile_key), callback=callback, errback=errback)
|
||||
|
||||
@dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
|
||||
in_signature='ssss', out_signature='',
|
||||
async_callbacks=('callback', 'errback'))
|
||||
def privateDataSet(self, namespace, key, data, profile_key, callback=None, errback=None):
|
||||
return self._callback("privateDataSet", str(namespace), str(key), str(data), str(profile_key), callback=callback, errback=errback)
|
||||
|
||||
@dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
|
||||
in_signature='sss', out_signature='',
|
||||
async_callbacks=('callback', 'errback'))
|
||||
|
|
|
|||
Loading…
Reference in a new issue