comparison src/bridge/bridge_constructor/dbus_frontend_template.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 6c167a2e04b8
comparison
equal deleted inserted replaced
404:6a1c6c41b91b 405:10b4f577d0c0
57 error(_('Unknown interface')) 57 error(_('Unknown interface'))
58 58
59 ##METHODS_PART## 59 ##METHODS_PART##
60 60
61 #methods from plugins 61 #methods from plugins
62 def getRoomJoined(self, profile_key='@DEFAULT@'): 62 def getRoomsJoined(self, profile_key='@DEFAULT@'):
63 return self.db_plugin_iface.getRoomJoined(profile_key) 63 return self.db_plugin_iface.getRoomsJoined(profile_key)
64 64
65 def getRoomSubjects(self, profile_key='@DEFAULT@'): 65 def getRoomsSubjectss(self, profile_key='@DEFAULT@'):
66 return self.db_plugin_iface.getRoomSubjects(profile_key) 66 return self.db_plugin_iface.getRoomsSubjectss(profile_key)
67 67
68 def joinMUC(self, service, roomId, nick, profile_key='@DEFAULT@'): 68 def joinMUC(self, room_jid, nick, options, profile_key='@DEFAULT@'):
69 return self.db_plugin_iface.joinMUC(service, roomId, nick, profile_key) 69 if options == None:
70 options = [('', '')] #XXX: we have to do this awful hack because python dbus need to guess the signature
71 return self.db_plugin_iface.joinMUC(room_jid, nick, options, profile_key)
70 72
71 def tarotGameLaunch(self, players, profile_key='@DEFAULT@'): 73 def tarotGameLaunch(self, players, profile_key='@DEFAULT@'):
72 return self.db_plugin_iface.tarotGameLaunch(players, profile_key) 74 return self.db_plugin_iface.tarotGameLaunch(players, profile_key)
73 75
74 def tarotGameCreate(self, room_jid, players, profile_key='@DEFAULT@'): 76 def tarotGameCreate(self, room_jid, players, profile_key='@DEFAULT@'):