QTfrontend/hwform.cpp
changeset 634 b9db5ff5cfdb
parent 632 5e09ae25729f
child 635 0fb6d55ecd66
--- a/QTfrontend/hwform.cpp	Sun Dec 09 11:25:59 2007 +0000
+++ b/QTfrontend/hwform.cpp	Sun Dec 09 11:43:56 2007 +0000
@@ -42,12 +42,14 @@
 #include "gamecfgwidget.h"
 #include "netserverslist.h"
 #include "netudpwidget.h"
+#include "netudpserver.h"
 #include "netwwwwidget.h"
+#include "netwwwserver.h"
 #include "chatwidget.h"
 #include "playrecordpage.h"
 
 HWForm::HWForm(QWidget *parent)
-  : QMainWindow(parent), pnetserver(0), pUdpServer(0), editedTeam(0)
+  : QMainWindow(parent), pnetserver(0), pRegisterServer(0), editedTeam(0)
 {
 	ui.setupUi(this);
 	config = new GameUIConfig(this, cfgdir->absolutePath() + "/hedgewars.ini");
@@ -400,7 +402,7 @@
   pnetserver = new HWNetServer;
   pnetserver->StartServer();
   _NetConnect("localhost", pnetserver->getRunningPort(), ui.pageNet->editNetNick->text());
-//  pUdpServer = new HWNetUdpServer();
+  pRegisterServer = new HWNetWwwServer(0, "hedgewars server", 46631);
 }
 
 void HWForm::NetDisconnect()
@@ -411,7 +413,7 @@
     hwnet=0;
   }
   if(pnetserver) {
-//    pUdpServer->deleteLater();
+    pRegisterServer->deleteLater();
     pnetserver->StopServer();
     delete pnetserver;
     pnetserver=0;