QTfrontend/hwform.cpp
changeset 1313 f4c54e9e1b8c
parent 1312 0078e4f72d40
child 1315 c2f09811bb8c
--- a/QTfrontend/hwform.cpp	Wed Oct 08 10:58:21 2008 +0000
+++ b/QTfrontend/hwform.cpp	Wed Oct 08 13:40:29 2008 +0000
@@ -412,6 +412,14 @@
 	connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter()));
 	connect(hwnet, SIGNAL(AddNetTeam(const HWTeam&)), this, SLOT(AddNetTeam(const HWTeam&)));
 
+	connect(hwnet, SIGNAL(roomsList(const QStringList&)),
+		ui.pageRoomsList, SLOT(setRoomsList(const QStringList&)));
+	
+	connect(ui.pageRoomsList, SIGNAL(askForCreateRoom(const QString &)),
+		hwnet, SLOT(CreateRoom(const QString&)));
+	connect(ui.pageRoomsList, SIGNAL(askForJoinRoom(const QString &)),
+		hwnet, SLOT(JoinRoom(const QString&)));
+
 	connect(hwnet, SIGNAL(chatStringFromNet(const QStringList&)),
 		ui.pageNetGame->pChatWidget, SLOT(onChatStringFromNet(const QStringList&)));
 	connect(ui.pageNetGame->pChatWidget, SIGNAL(chatLine(const QString&)),