diff 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
line wrap: on
line diff
--- a/src/bridge/bridge_constructor/dbus_frontend_template.py	Sat Oct 08 11:19:25 2011 +0200
+++ b/src/bridge/bridge_constructor/dbus_frontend_template.py	Sat Oct 08 18:43:17 2011 +0200
@@ -59,14 +59,16 @@
 ##METHODS_PART##
 
 #methods from plugins
-    def getRoomJoined(self, profile_key='@DEFAULT@'):
-        return self.db_plugin_iface.getRoomJoined(profile_key)
+    def getRoomsJoined(self, profile_key='@DEFAULT@'):
+        return self.db_plugin_iface.getRoomsJoined(profile_key)
 
-    def getRoomSubjects(self, profile_key='@DEFAULT@'):
-        return self.db_plugin_iface.getRoomSubjects(profile_key)
+    def getRoomsSubjectss(self, profile_key='@DEFAULT@'):
+        return self.db_plugin_iface.getRoomsSubjectss(profile_key)
 
-    def joinMUC(self, service, roomId, nick, profile_key='@DEFAULT@'):
-        return self.db_plugin_iface.joinMUC(service, roomId, nick, profile_key)
+    def joinMUC(self, room_jid, nick, options, profile_key='@DEFAULT@'):
+        if options == None:
+            options = [('', '')] #XXX: we have to do this awful hack because python dbus need to guess the signature
+        return self.db_plugin_iface.joinMUC(room_jid, nick, options, profile_key)
 
     def tarotGameLaunch(self, players, profile_key='@DEFAULT@'):
         return self.db_plugin_iface.tarotGameLaunch(players, profile_key)