diff src/bridge/bridge_constructor/dbus_frontend_template.py @ 320:5fc5e6a7e5c3

plugin Tarot: added a launch method to automatically create a new room, invite players and create the game - xep-0249 (direct MUC invitation) is used with a custom attribute to invite other users - bridge: added tarotGameLaunch in frontend side
author Goffi <goffi@goffi.org>
date Fri, 06 May 2011 15:42:26 +0200
parents 1e4575e12581
children 4402ac630712
line wrap: on
line diff
--- a/src/bridge/bridge_constructor/dbus_frontend_template.py	Fri May 06 15:38:32 2011 +0200
+++ b/src/bridge/bridge_constructor/dbus_frontend_template.py	Fri May 06 15:42:26 2011 +0200
@@ -61,6 +61,9 @@
     def joinMUC(self, service, roomId, nick, profile_key='@DEFAULT@'):
         return self.db_comm_iface.joinMUC(service, roomId, nick, profile_key)
 
+    def tarotGameLaunch(self, players, profile_key='@DEFAULT@'):
+        return self.db_comm_iface.tarotGameLaunch(players, profile_key)
+    
     def tarotGameCreate(self, room_jid, players, profile_key='@DEFAULT@'):
         return self.db_comm_iface.tarotGameCreate(room_jid, players, profile_key)