comparison frontends/src/bridge/DBus.py @ 387:e66d300c5d42

frontends, bridge: sendFile method signature change + jid parameters in bridge now use _jid suffix
author Goffi <goffi@goffi.org>
date Thu, 29 Sep 2011 12:13:22 +0200
parents f964dcec1611
children 3ed53803b3b3
comparison
equal deleted inserted replaced
386:deeebf697d9a 387:e66d300c5d42
54 elif iface == "plugin": 54 elif iface == "plugin":
55 self.db_plugin_iface.connect_to_signal(functionName, handler) 55 self.db_plugin_iface.connect_to_signal(functionName, handler)
56 else: 56 else:
57 error(_('Unknown interface')) 57 error(_('Unknown interface'))
58 58
59 def addContact(self, entity, profile_key="@DEFAULT@"): 59 def addContact(self, entity_jid, profile_key="@DEFAULT@"):
60 return self.db_core_iface.addContact(entity, profile_key) 60 return self.db_core_iface.addContact(entity_jid, profile_key)
61 61
62 def asyncConnect(self, profile_key="@DEFAULT@", callback=None, errback=None): 62 def asyncConnect(self, profile_key="@DEFAULT@", callback=None, errback=None):
63 return self.db_core_iface.asyncConnect(profile_key, reply_handler=callback, error_handler=errback) 63 return self.db_core_iface.asyncConnect(profile_key, reply_handler=callback, error_handler=errback)
64 64
65 def callMenu(self, category, name, menu_type, profile_key): 65 def callMenu(self, category, name, menu_type, profile_key):
72 return self.db_core_iface.connect(profile_key) 72 return self.db_core_iface.connect(profile_key)
73 73
74 def createProfile(self, profile): 74 def createProfile(self, profile):
75 return self.db_core_iface.createProfile(profile) 75 return self.db_core_iface.createProfile(profile)
76 76
77 def delContact(self, entity, profile_key="@DEFAULT@"): 77 def delContact(self, entity_jid, profile_key="@DEFAULT@"):
78 return self.db_core_iface.delContact(entity, profile_key) 78 return self.db_core_iface.delContact(entity_jid, profile_key)
79 79
80 def deleteProfile(self, profile): 80 def deleteProfile(self, profile):
81 return self.db_core_iface.deleteProfile(profile) 81 return self.db_core_iface.deleteProfile(profile)
82 82
83 def disconnect(self, profile_key="@DEFAULT@"): 83 def disconnect(self, profile_key="@DEFAULT@"):
150 return self.db_core_iface.setPresence(to_jid, show, priority, statuses, profile_key) 150 return self.db_core_iface.setPresence(to_jid, show, priority, statuses, profile_key)
151 151
152 def subscription(self, sub_type, entity, profile_key="@DEFAULT@"): 152 def subscription(self, sub_type, entity, profile_key="@DEFAULT@"):
153 return self.db_core_iface.subscription(sub_type, entity, profile_key) 153 return self.db_core_iface.subscription(sub_type, entity, profile_key)
154 154
155 def updateContact(self, entity, name, groups, profile_key="@DEFAULT@"): 155 def updateContact(self, entity_jid, name, groups, profile_key="@DEFAULT@"):
156 return self.db_core_iface.updateContact(entity, name, groups, profile_key) 156 return self.db_core_iface.updateContact(entity_jid, name, groups, profile_key)
157 157
158 158
159 #methods from plugins 159 #methods from plugins
160 def getRoomJoined(self, profile_key='@DEFAULT@'): 160 def getRoomJoined(self, profile_key='@DEFAULT@'):
161 return self.db_plugin_iface.getRoomJoined(profile_key) 161 return self.db_plugin_iface.getRoomJoined(profile_key)
191 return self.db_plugin_iface.quizGameReady(player, referee, profile_key) 191 return self.db_plugin_iface.quizGameReady(player, referee, profile_key)
192 192
193 def quizGameAnswer(self, player, referee, answer, profile_key='@DEFAULT@'): 193 def quizGameAnswer(self, player, referee, answer, profile_key='@DEFAULT@'):
194 return self.db_plugin_iface.quizGameAnswer(player, referee, answer, profile_key) 194 return self.db_plugin_iface.quizGameAnswer(player, referee, answer, profile_key)
195 195
196 def sendFile(self, to, path, profile_key='@DEFAULT@'): 196 def sendFile(self, to, path, data, profile_key='@DEFAULT@'):
197 return self.db_plugin_iface.sendFile(to, path, profile_key) 197 return self.db_plugin_iface.sendFile(to, path, data, profile_key)
198 198
199 def findGateways(self, target, profile_key='@DEFAULT@'): 199 def findGateways(self, target, profile_key='@DEFAULT@'):
200 return self.db_plugin_iface.findGateways(target, profile_key) 200 return self.db_plugin_iface.findGateways(target, profile_key)
201 201
202 def getCard(self, target, profile_key='@DEFAULT@'): 202 def getCard(self, target, profile_key='@DEFAULT@'):