comparison frontends/src/bridge/DBus.py @ 963:723f28cd15c7

core (disco): added discoInfos and discoItems bridge methods
author Goffi <goffi@goffi.org>
date Tue, 01 Apr 2014 21:14:57 +0200
parents 71926ec2114d
children 301b342c697a
comparison
equal deleted inserted replaced
962:b280cf4cdf25 963:723f28cd15c7
117 return self.db_core_iface.connect(profile_key) 117 return self.db_core_iface.connect(profile_key)
118 118
119 def delContact(self, entity_jid, profile_key="@DEFAULT@"): 119 def delContact(self, entity_jid, profile_key="@DEFAULT@"):
120 return self.db_core_iface.delContact(entity_jid, profile_key) 120 return self.db_core_iface.delContact(entity_jid, profile_key)
121 121
122 def discoInfos(self, entity_jid, profile_key, callback=None, errback=None):
123 return self.db_core_iface.discoInfos(entity_jid, profile_key, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:]))
124
125 def discoItems(self, entity_jid, profile_key, callback=None, errback=None):
126 return self.db_core_iface.discoItems(entity_jid, profile_key, reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:]))
127
122 def disconnect(self, profile_key="@DEFAULT@"): 128 def disconnect(self, profile_key="@DEFAULT@"):
123 return self.db_core_iface.disconnect(profile_key) 129 return self.db_core_iface.disconnect(profile_key)
124 130
125 def getConfig(self, section, name): 131 def getConfig(self, section, name):
126 return unicode(self.db_core_iface.getConfig(section, name)) 132 return unicode(self.db_core_iface.getConfig(section, name))