QTfrontend/net/newnetclient.h
changeset 6732 c906dc78091f
parent 6700 e04da46ee43c
child 6952 7f70f37bbf08
equal deleted inserted replaced
6731:ddd391083f50 6732:c906dc78091f
    29 #include "game.h" // for GameState
    29 #include "game.h" // for GameState
    30 
    30 
    31 class GameUIConfig;
    31 class GameUIConfig;
    32 class GameCFGWidget;
    32 class GameCFGWidget;
    33 class TeamSelWidget;
    33 class TeamSelWidget;
       
    34 class RoomsListModel;
    34 
    35 
    35 extern char delimeter;
    36 extern char delimeter;
    36 
    37 
    37 class HWNewNet : public QObject
    38 class HWNewNet : public QObject
    38 {
    39 {
    51         bool isInRoom();
    52         bool isInRoom();
    52         ClientState clientState();
    53         ClientState clientState();
    53         QString getNick();
    54         QString getNick();
    54         QString getRoom();
    55         QString getRoom();
    55         QString getHost();
    56         QString getHost();
       
    57         RoomsListModel * roomsListModel();
    56 
    58 
    57     private:
    59     private:
    58         bool isChief;
    60         bool isChief;
    59         QString mynick;
    61         QString mynick;
    60         QString myroom;
    62         QString myroom;
    61         QString myhost;
    63         QString myhost;
    62         QTcpSocket NetSocket;
    64         QTcpSocket NetSocket;
    63         QString seed;
    65         QString seed;
    64         bool m_game_connected;
    66         bool m_game_connected;
       
    67         RoomsListModel * m_roomsListModel;
    65 
    68 
    66         template <typename T>
    69         template <typename T>
    67         void SendCfgStrNet(T a)
    70         void SendCfgStrNet(T a)
    68         {
    71         {
    69             QByteArray strmsg;
    72             QByteArray strmsg;