QTfrontend/game.h
changeset 178 efdc2a63be8e
parent 177 c67c15e6fae3
child 180 ea83b9e9057f
--- a/QTfrontend/game.h	Sun Oct 01 20:14:30 2006 +0000
+++ b/QTfrontend/game.h	Sun Oct 01 20:25:03 2006 +0000
@@ -53,7 +53,7 @@
 class GameUIConfig;
 class GameCFGWidget;
 
-class HWGame : public QObject
+class HWGame : public TCPBase
 {
 	Q_OBJECT
 public:
@@ -67,6 +67,7 @@
  protected:
 	virtual QStringList setArguments();
 	virtual void onClientRead();
+	virtual void onClientDisconnect();
 
 signals:
 	void SendNet(const QByteArray & msg);
@@ -83,10 +84,7 @@
         gtDemo   = 3,
         gtNet    = 4
     };
-    QTcpServer * IPCServer;
-	QTcpSocket * IPCSocket;
 	char msgbuf[MAXMSGCHARS];
-	QByteArray readbuffer;
 	QString teams[5];
 	std::map<QString, unsigned char> hdNum;
 	QString seed;
@@ -97,7 +95,6 @@
 	GameCFGWidget * gamecfg;
 	GameType gameType;
 
-	void Start();
 	void SendConfig();
 	void SendQuickConfig();
 	void SendTeamConfig(int index);
@@ -107,12 +104,6 @@
 	void SendIPC(const QString & buf);
 	void RawSendIPC(const QByteArray & buf);
 	void SaveDemo(const QString & filename);
-
-private slots:
-	void NewConnection();
-	void ClientDisconnect();
-	void ClientRead();
-	void StartProcessError(QProcess::ProcessError error);
 };
 
 #endif