diff 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
line wrap: on
line diff
--- a/sat/bridge/dbus_bridge.py	Sun Feb 09 23:56:42 2020 +0100
+++ b/sat/bridge/dbus_bridge.py	Mon Feb 10 22:01:53 2020 +0100
@@ -477,6 +477,24 @@
     @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'))
     def profileCreate(self, profile, password='', component='', callback=None, errback=None):
         return self._callback("profileCreate", str(profile), str(password), str(component), callback=callback, errback=errback)