comparison 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
comparison
equal deleted inserted replaced
319:5bb1cfc105d0 320:5fc5e6a7e5c3
59 return self.db_comm_iface.getRoomSubjects(profile_key) 59 return self.db_comm_iface.getRoomSubjects(profile_key)
60 60
61 def joinMUC(self, service, roomId, nick, profile_key='@DEFAULT@'): 61 def joinMUC(self, service, roomId, nick, profile_key='@DEFAULT@'):
62 return self.db_comm_iface.joinMUC(service, roomId, nick, profile_key) 62 return self.db_comm_iface.joinMUC(service, roomId, nick, profile_key)
63 63
64 def tarotGameLaunch(self, players, profile_key='@DEFAULT@'):
65 return self.db_comm_iface.tarotGameLaunch(players, profile_key)
66
64 def tarotGameCreate(self, room_jid, players, profile_key='@DEFAULT@'): 67 def tarotGameCreate(self, room_jid, players, profile_key='@DEFAULT@'):
65 return self.db_comm_iface.tarotGameCreate(room_jid, players, profile_key) 68 return self.db_comm_iface.tarotGameCreate(room_jid, players, profile_key)
66 69
67 def tarotGameReady(self, player, referee, profile_key='@DEFAULT@'): 70 def tarotGameReady(self, player, referee, profile_key='@DEFAULT@'):
68 return self.db_comm_iface.tarotGameReady(player, referee, profile_key) 71 return self.db_comm_iface.tarotGameReady(player, referee, profile_key)