comparison frontends/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
comparison
equal deleted inserted replaced
1014:e40d9858cb83 1015:fee00f2e11c2
193 return self.db_core_iface.isConnected(profile_key) 193 return self.db_core_iface.isConnected(profile_key)
194 194
195 def launchAction(self, callback_id, data, profile_key="@DEFAULT@", callback=None, errback=None): 195 def launchAction(self, callback_id, data, profile_key="@DEFAULT@", callback=None, errback=None):
196 return self.db_core_iface.launchAction(callback_id, data, profile_key, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:])) 196 return self.db_core_iface.launchAction(callback_id, data, profile_key, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:]))
197 197
198 def loadParamsTemplate(self, filename):
199 return self.db_core_iface.loadParamsTemplate(filename)
200
198 def paramsRegisterApp(self, xml, security_limit=-1, app=''): 201 def paramsRegisterApp(self, xml, security_limit=-1, app=''):
199 return self.db_core_iface.paramsRegisterApp(xml, security_limit, app) 202 return self.db_core_iface.paramsRegisterApp(xml, security_limit, app)
200 203
201 def registerNewAccount(self, login, password, email, host, port=5222): 204 def registerNewAccount(self, login, password, email, host, port=5222):
202 return unicode(self.db_core_iface.registerNewAccount(login, password, email, host, port)) 205 return unicode(self.db_core_iface.registerNewAccount(login, password, email, host, port))
203 206
207 def saveParamsTemplate(self, filename):
208 return self.db_core_iface.saveParamsTemplate(filename)
209
204 def sendMessage(self, to_jid, message, subject='', mess_type="auto", extra={}, profile_key="@NONE@", callback=None, errback=None): 210 def sendMessage(self, to_jid, message, subject='', mess_type="auto", extra={}, profile_key="@NONE@", callback=None, errback=None):
205 return self.db_core_iface.sendMessage(to_jid, message, subject, mess_type, extra, profile_key, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:])) 211 return self.db_core_iface.sendMessage(to_jid, message, subject, mess_type, extra, profile_key, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:]))
206 212
207 def setParam(self, name, value, category, security_limit=-1, profile_key="@DEFAULT@"): 213 def setParam(self, name, value, category, security_limit=-1, profile_key="@DEFAULT@"):
208 return self.db_core_iface.setParam(name, value, category, security_limit, profile_key) 214 return self.db_core_iface.setParam(name, value, category, security_limit, profile_key)