comparison frontends/src/bridge/DBus.py @ 405:10b4f577d0c0

MUC update to follow wokkel's MUC branch update - bridge methods have been updated (API change) - plugin XEP-0045 has been updated
author Goffi <goffi@goffi.org>
date Sat, 08 Oct 2011 18:43:17 +0200
parents b2caa2615c4c
children dd4caab17008
comparison
equal deleted inserted replaced
404:6a1c6c41b91b 405:10b4f577d0c0
158 def updateContact(self, entity_jid, name, groups, profile_key="@DEFAULT@"): 158 def updateContact(self, entity_jid, name, groups, profile_key="@DEFAULT@"):
159 return self.db_core_iface.updateContact(entity_jid, name, groups, profile_key) 159 return self.db_core_iface.updateContact(entity_jid, name, groups, profile_key)
160 160
161 161
162 #methods from plugins 162 #methods from plugins
163 def getRoomJoined(self, profile_key='@DEFAULT@'): 163 def getRoomsJoined(self, profile_key='@DEFAULT@'):
164 return self.db_plugin_iface.getRoomJoined(profile_key) 164 return self.db_plugin_iface.getRoomsJoined(profile_key)
165 165
166 def getRoomSubjects(self, profile_key='@DEFAULT@'): 166 def getRoomsSubjectss(self, profile_key='@DEFAULT@'):
167 return self.db_plugin_iface.getRoomSubjects(profile_key) 167 return self.db_plugin_iface.getRoomsSubjectss(profile_key)
168 168
169 def joinMUC(self, service, roomId, nick, profile_key='@DEFAULT@'): 169 def joinMUC(self, room_jid, nick, options, profile_key='@DEFAULT@'):
170 return self.db_plugin_iface.joinMUC(service, roomId, nick, profile_key) 170 if options == None:
171 options = [('', '')] #XXX: we have to do this awful hack because python dbus need to guess the signature
172 return self.db_plugin_iface.joinMUC(room_jid, nick, options, profile_key)
171 173
172 def tarotGameLaunch(self, players, profile_key='@DEFAULT@'): 174 def tarotGameLaunch(self, players, profile_key='@DEFAULT@'):
173 return self.db_plugin_iface.tarotGameLaunch(players, profile_key) 175 return self.db_plugin_iface.tarotGameLaunch(players, profile_key)
174 176
175 def tarotGameCreate(self, room_jid, players, profile_key='@DEFAULT@'): 177 def tarotGameCreate(self, room_jid, players, profile_key='@DEFAULT@'):