equal
deleted
inserted
replaced
24 #include <QTcpSocket> |
24 #include <QTcpSocket> |
25 |
25 |
26 #include "team.h" |
26 #include "team.h" |
27 |
27 |
28 class GameUIConfig; |
28 class GameUIConfig; |
|
29 class GameCFGWidget; |
29 |
30 |
30 extern char delimeter; |
31 extern char delimeter; |
31 |
32 |
32 class HWNewNet : public QObject |
33 class HWNewNet : public QObject |
33 { |
34 { |
34 Q_OBJECT |
35 Q_OBJECT |
35 |
36 |
36 public: |
37 public: |
37 HWNewNet(GameUIConfig * config); |
38 HWNewNet(GameUIConfig * config, GameCFGWidget* pGameCFGWidget); |
38 void Connect(const QString & hostName, quint16 port, const QString & nick); |
39 void Connect(const QString & hostName, quint16 port, const QString & nick); |
39 void Disconnect(); |
40 void Disconnect(); |
40 void JoinGame(const QString & game); |
41 void JoinGame(const QString & game); |
41 void StartGame(); |
42 void StartGame(); |
42 |
43 |
43 private: |
44 private: |
44 GameUIConfig* config; |
45 GameUIConfig* config; |
|
46 GameCFGWidget* m_pGameCFGWidget; |
45 |
47 |
|
48 bool isChief; |
46 QString mynick; |
49 QString mynick; |
47 QTcpSocket NetSocket; |
50 QTcpSocket NetSocket; |
48 QString seed; |
51 QString seed; |
49 |
52 |
50 void ConfigAsked(); |
53 void ConfigAsked(); |