QTfrontend/ui/page/pagenetgame.h
changeset 6151 9fd5b70acb1a
parent 6060 fdfc01419815
child 6158 cf034cc88e39
equal deleted inserted replaced
6150:1d98752c1fba 6151:9fd5b70acb1a
    17  */
    17  */
    18 
    18 
    19 #ifndef PAGE_NETGAME_H
    19 #ifndef PAGE_NETGAME_H
    20 #define PAGE_NETGAME_H
    20 #define PAGE_NETGAME_H
    21 
    21 
       
    22 #include "HistoryLineEdit.h"
       
    23 
    22 #include "AbstractPage.h"
    24 #include "AbstractPage.h"
    23 #include "SDLs.h"
    25 #include "SDLs.h"
    24 
    26 
    25 class HWChatWidget;
    27 class HWChatWidget;
    26 class TeamSelWidget;
    28 class TeamSelWidget;
    31     Q_OBJECT
    33     Q_OBJECT
    32 
    34 
    33 public:
    35 public:
    34     PageNetGame(QWidget* parent, QSettings * gameSettings, SDLInteraction * sdli);
    36     PageNetGame(QWidget* parent, QSettings * gameSettings, SDLInteraction * sdli);
    35 
    37 
       
    38     /**
       
    39      * Sets the room name to display.
       
    40      * @roomName room name to be displayed.
       
    41      */
       
    42     void setRoomName(const QString & roomName);
       
    43 
    36     QPushButton *BtnGo;
    44     QPushButton *BtnGo;
    37     QPushButton *BtnMaster;
    45     QPushButton *BtnMaster;
    38     QPushButton *BtnStart;
    46     QPushButton *BtnStart;
    39     QPushButton *BtnUpdate;
    47     QPushButton *BtnUpdate;
    40 
       
    41     QLineEdit * leRoomName;
       
    42 
    48 
    43     QAction * restrictJoins;
    49     QAction * restrictJoins;
    44     QAction * restrictTeamAdds;
    50     QAction * restrictTeamAdds;
    45 
    51 
    46     HWChatWidget* pChatWidget;
    52     HWChatWidget* pChatWidget;
    63     void connectSignals();
    69     void connectSignals();
    64 
    70 
    65     QSettings * m_gameSettings;
    71     QSettings * m_gameSettings;
    66     SDLInteraction * m_sdli;
    72     SDLInteraction * m_sdli;
    67 
    73 
       
    74     HistoryLineEdit * leRoomName;
    68     QPushButton * btnSetup;
    75     QPushButton * btnSetup;
    69 };
    76 };
    70 
    77 
    71 #endif
    78 #endif