Mercurial > libervia-backend
comparison sat_bridge/DBus.py @ 68:9b842086d915
multiple profiles update
- Wix: new profile managed, it appear at launch in place of the contact list, and disappear once the profile is choosen
- SàT: default profile is now saved, first one is choosed is no default profile
- Bridge: new delete profile method
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 25 Feb 2010 17:09:18 +1100 |
parents | 0e50dd3a234a |
children | f271fff3a713 |
comparison
equal
deleted
inserted
replaced
67:0e50dd3a234a | 68:9b842086d915 |
---|---|
115 def getProfilesList(self): | 115 def getProfilesList(self): |
116 info ('Profile list asked') | 116 info ('Profile list asked') |
117 return self.cb["getProfilesList"]() | 117 return self.cb["getProfilesList"]() |
118 | 118 |
119 @dbus.service.method(const_INT_PREFIX+const_REQ_SUFFIX, | 119 @dbus.service.method(const_INT_PREFIX+const_REQ_SUFFIX, |
120 in_signature='s', out_signature='') | 120 in_signature='s', out_signature='i') |
121 def createProfile(self, name): | 121 def createProfile(self, name): |
122 info ('Profile creation asked') | 122 info ('Profile creation asked') |
123 return self.cb["createProfile"](name, default) | 123 return self.cb["createProfile"](str(name)) |
124 | |
125 @dbus.service.method(const_INT_PREFIX+const_REQ_SUFFIX, | |
126 in_signature='s', out_signature='i') | |
127 def deleteProfile(self, name): | |
128 info ('Profile deletion asked') | |
129 return self.cb["deleteProfile"](str(name)) | |
124 | 130 |
125 @dbus.service.method(const_INT_PREFIX+const_COMM_SUFFIX, | 131 @dbus.service.method(const_INT_PREFIX+const_COMM_SUFFIX, |
126 in_signature='sssi', out_signature='s') | 132 in_signature='sssi', out_signature='s') |
127 def registerNewAccount(self, login, password, host, port=5222): | 133 def registerNewAccount(self, login, password, host, port=5222): |
128 info ("New account registration asked") | 134 info ("New account registration asked") |