diff sat_bridge/DBus.py @ 60:9764e027ecc0

SàT: multi-profile parameters, first draft - new bridge methods getProfilesList and createProfile - param xml now use two types: general and individual, general are common parameters, individual parameters are linked to profiles - indidual xml are constructed from param xml and saved values /!\ params values are not saved yet
author Goffi <goffi@goffi.org>
date Thu, 28 Jan 2010 02:32:27 +1100
parents a5b5fb5fc9fd
children 58d49fc19639
line wrap: on
line diff
--- a/sat_bridge/DBus.py	Sun Jan 10 18:40:45 2010 +1100
+++ b/sat_bridge/DBus.py	Thu Jan 28 02:32:27 2010 +1100
@@ -105,6 +105,18 @@
 
     ### methods ###    
 
+    @dbus.service.method(const_INT_PREFIX+const_REQ_SUFFIX,
+                         in_signature='', out_signature='as')
+    def getProfilesList(self):
+        info ('Profile list asked')
+        return self.cb["getProfilesList"]()
+
+    @dbus.service.method(const_INT_PREFIX+const_REQ_SUFFIX,
+                         in_signature='sb', out_signature='')
+    def createProfile(self, name, default=False):
+        info ('Profile creation asked')
+        return self.cb["createProfile"](name, default)
+
     @dbus.service.method(const_INT_PREFIX+const_COMM_SUFFIX,
                          in_signature='sssi', out_signature='s')
     def registerNewAccount(self, login, password, host, port=5222):