Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
63:0db25931b60d | 64:d46f849664aa |
---|---|
56 return self.db_comm_iface.getWaitingSub() | 56 return self.db_comm_iface.getWaitingSub() |
57 | 57 |
58 def sendMessage(self, to, message): | 58 def sendMessage(self, to, message): |
59 return self.db_comm_iface.sendMessage(to, message) | 59 return self.db_comm_iface.sendMessage(to, message) |
60 | 60 |
61 def sendFile(self, to, path): | 61 def sendFile(self, to, path, profile_key='@DEFAULT@'): |
62 return self.db_comm_iface.sendFile(to, path) | 62 return self.db_comm_iface.sendFile(to, path, profile_key) |
63 | 63 |
64 def findGateways(self, target): | 64 def findGateways(self, target): |
65 return self.db_comm_iface.findGateways(target) | 65 return self.db_comm_iface.findGateways(target) |
66 | 66 |
67 def getProfile(self, target): | 67 def getCard(self, target, profile_key='@DEFAULT@'): |
68 return self.db_comm_iface.getProfile(target) | 68 return self.db_comm_iface.getCard(target, profile_key) |
69 | 69 |
70 def getProfileCache(self, target): | 70 def getCardCache(self, target): |
71 return self.db_comm_iface.getProfileCache(target) | 71 return self.db_comm_iface.getCardCache(target) |
72 | 72 |
73 def getAvatarFile(self, hash): | 73 def getAvatarFile(self, hash): |
74 return self.db_comm_iface.getAvatarFile(hash) | 74 return self.db_comm_iface.getAvatarFile(hash) |
75 | 75 |
76 def in_band_register(self, target): | 76 def in_band_register(self, target, profile_key='@DEFAULT@'): |
77 return self.db_comm_iface.in_band_register(target) | 77 return self.db_comm_iface.in_band_register(target, profile_key) |
78 | 78 |
79 def setPresence(self, to="", show="", priority=0, statuses={}): | 79 def setPresence(self, to="", show="", priority=0, statuses={}): |
80 return self.db_comm_iface.setPresence(to, show, priority, statuses) | 80 return self.db_comm_iface.setPresence(to, show, priority, statuses) |
81 | 81 |
82 def subscription(self, type, entity): | 82 def subscription(self, type, entity): |