27 class TeamSelWidget; |
27 class TeamSelWidget; |
28 class GameCFGWidget; |
28 class GameCFGWidget; |
29 |
29 |
30 class PageNetGame : public AbstractPage |
30 class PageNetGame : public AbstractPage |
31 { |
31 { |
32 Q_OBJECT |
32 Q_OBJECT |
33 |
33 |
34 public: |
34 public: |
35 PageNetGame(QWidget* parent, QSettings * gameSettings); |
35 PageNetGame(QWidget* parent, QSettings * gameSettings); |
36 |
36 |
37 /** |
37 /** |
38 * Sets the room name to display. |
38 * Sets the room name to display. |
39 * @param roomName room name to be displayed. |
39 * @param roomName room name to be displayed. |
40 */ |
40 */ |
41 void setRoomName(const QString & roomName); |
41 void setRoomName(const QString & roomName); |
42 |
42 |
43 void displayError(const QString & message); |
43 void displayError(const QString & message); |
44 void displayNotice(const QString & message); |
44 void displayNotice(const QString & message); |
45 void displayWarning(const QString & message); |
45 void displayWarning(const QString & message); |
46 |
46 |
47 QPushButton *BtnGo; |
47 QPushButton *BtnGo; |
48 QPushButton *BtnMaster; |
48 QPushButton *BtnMaster; |
49 QPushButton *BtnStart; |
49 QPushButton *BtnStart; |
50 QPushButton *BtnUpdate; |
50 QPushButton *BtnUpdate; |
51 |
51 |
52 QAction * restrictJoins; |
52 QAction * restrictJoins; |
53 QAction * restrictTeamAdds; |
53 QAction * restrictTeamAdds; |
54 |
54 |
55 HWChatWidget* pChatWidget; |
55 HWChatWidget* pChatWidget; |
56 |
56 |
57 TeamSelWidget* pNetTeamsWidget; |
57 TeamSelWidget* pNetTeamsWidget; |
58 GameCFGWidget* pGameCFG; |
58 GameCFGWidget* pGameCFG; |
59 |
59 |
60 public slots: |
60 public slots: |
61 void setReadyStatus(bool isReady); |
61 void setReadyStatus(bool isReady); |
62 void setUser(const QString & nickname); |
62 void setUser(const QString & nickname); |
63 void onUpdateClick(); |
63 void onUpdateClick(); |
64 void setMasterMode(bool isMaster); |
64 void setMasterMode(bool isMaster); |
65 |
65 |
66 signals: |
66 signals: |
67 void SetupClicked(); |
67 void SetupClicked(); |
68 void askForUpdateRoomName(const QString &); |
68 void askForUpdateRoomName(const QString &); |
69 |
69 |
70 private: |
70 private: |
71 QLayout * bodyLayoutDefinition(); |
71 QLayout * bodyLayoutDefinition(); |
72 QLayout * footerLayoutDefinition(); |
72 QLayout * footerLayoutDefinition(); |
73 void connectSignals(); |
73 void connectSignals(); |
74 |
74 |
75 QSettings * m_gameSettings; |
75 QSettings * m_gameSettings; |
76 |
76 |
77 HistoryLineEdit * leRoomName; |
77 HistoryLineEdit * leRoomName; |
78 QPushButton * btnSetup; |
78 QPushButton * btnSetup; |
79 }; |
79 }; |
80 |
80 |
81 #endif |
81 #endif |