diff 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
line wrap: on
line diff
--- a/src/bridge/DBus.py	Mon May 05 20:16:14 2014 +0200
+++ b/src/bridge/DBus.py	Sun May 04 18:43:54 2014 +0200
@@ -386,6 +386,12 @@
         return self._callback("launchAction", unicode(callback_id), data, unicode(profile_key), callback=callback, errback=errback)
 
     @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
+                         in_signature='s', out_signature='b',
+                         async_callbacks=None)
+    def loadParamsTemplate(self, filename):
+        return self._callback("loadParamsTemplate", unicode(filename))
+
+    @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
                          in_signature='sis', out_signature='',
                          async_callbacks=None)
     def paramsRegisterApp(self, xml, security_limit=-1, app=''):
@@ -398,6 +404,12 @@
         return self._callback("registerNewAccount", unicode(login), unicode(password), unicode(email), unicode(host), port)
 
     @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
+                         in_signature='s', out_signature='b',
+                         async_callbacks=None)
+    def saveParamsTemplate(self, filename):
+        return self._callback("saveParamsTemplate", unicode(filename))
+
+    @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
                          in_signature='ssssa{ss}s', out_signature='',
                          async_callbacks=('callback', 'errback'))
     def sendMessage(self, to_jid, message, subject='', mess_type="auto", extra={}, profile_key="@NONE@", callback=None, errback=None):