Mercurial > libervia-backend
diff frontends/sat_bridge_frontend/DBus.py @ 64:d46f849664aa
SàT: multi-profile, plugins updated
- core: 2 new convenient methods: getJidNStream and getClient
- new param in plugin info: "handler" to know if there is a handler to plug on profiles clients
- plugins with handler now use an other class which is returned to profile client with the new method "getHandler" and pluged when connecting
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 30 Jan 2010 16:17:33 +1100 |
parents | a5b5fb5fc9fd |
children | d35c5edab53f |
line wrap: on
line diff
--- a/frontends/sat_bridge_frontend/DBus.py Fri Jan 29 14:17:15 2010 +1100 +++ b/frontends/sat_bridge_frontend/DBus.py Sat Jan 30 16:17:33 2010 +1100 @@ -58,23 +58,23 @@ def sendMessage(self, to, message): return self.db_comm_iface.sendMessage(to, message) - def sendFile(self, to, path): - return self.db_comm_iface.sendFile(to, path) + def sendFile(self, to, path, profile_key='@DEFAULT@'): + return self.db_comm_iface.sendFile(to, path, profile_key) def findGateways(self, target): return self.db_comm_iface.findGateways(target) - def getProfile(self, target): - return self.db_comm_iface.getProfile(target) + def getCard(self, target, profile_key='@DEFAULT@'): + return self.db_comm_iface.getCard(target, profile_key) - def getProfileCache(self, target): - return self.db_comm_iface.getProfileCache(target) + def getCardCache(self, target): + return self.db_comm_iface.getCardCache(target) def getAvatarFile(self, hash): return self.db_comm_iface.getAvatarFile(hash) - def in_band_register(self, target): - return self.db_comm_iface.in_band_register(target) + def in_band_register(self, target, profile_key='@DEFAULT@'): + return self.db_comm_iface.in_band_register(target, profile_key) def setPresence(self, to="", show="", priority=0, statuses={}): return self.db_comm_iface.setPresence(to, show, priority, statuses)