comparison 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
comparison
equal deleted inserted replaced
59:3e5abe3bbead 60:9764e027ecc0
102 signature='sa{ss}') 102 signature='sa{ss}')
103 def updatedValue(self, name, value): 103 def updatedValue(self, name, value):
104 debug("updated value: %s = %s", name, value) 104 debug("updated value: %s = %s", name, value)
105 105
106 ### methods ### 106 ### methods ###
107
108 @dbus.service.method(const_INT_PREFIX+const_REQ_SUFFIX,
109 in_signature='', out_signature='as')
110 def getProfilesList(self):
111 info ('Profile list asked')
112 return self.cb["getProfilesList"]()
113
114 @dbus.service.method(const_INT_PREFIX+const_REQ_SUFFIX,
115 in_signature='sb', out_signature='')
116 def createProfile(self, name, default=False):
117 info ('Profile creation asked')
118 return self.cb["createProfile"](name, default)
107 119
108 @dbus.service.method(const_INT_PREFIX+const_COMM_SUFFIX, 120 @dbus.service.method(const_INT_PREFIX+const_COMM_SUFFIX,
109 in_signature='sssi', out_signature='s') 121 in_signature='sssi', out_signature='s')
110 def registerNewAccount(self, login, password, host, port=5222): 122 def registerNewAccount(self, login, password, host, port=5222):
111 info ("New account registration asked") 123 info ("New account registration asked")