QTfrontend/newnetclient.cpp
changeset 1898 f0ab0c77946d
parent 1879 bb114339eb4e
child 1899 5763f46d7486
equal deleted inserted replaced
1897:e9dcb47013c7 1898:f0ab0c77946d
    38   isChief(false),
    38   isChief(false),
    39   m_game_connected(false),
    39   m_game_connected(false),
    40   loginStep(0),
    40   loginStep(0),
    41   netClientState(0)
    41   netClientState(0)
    42 {
    42 {
       
    43 // socket stuff
    43 	connect(&NetSocket, SIGNAL(readyRead()), this, SLOT(ClientRead()));
    44 	connect(&NetSocket, SIGNAL(readyRead()), this, SLOT(ClientRead()));
    44 	connect(&NetSocket, SIGNAL(connected()), this, SLOT(OnConnect()));
    45 	connect(&NetSocket, SIGNAL(connected()), this, SLOT(OnConnect()));
    45 	connect(&NetSocket, SIGNAL(disconnected()), this, SLOT(OnDisconnect()));
    46 	connect(&NetSocket, SIGNAL(disconnected()), this, SLOT(OnDisconnect()));
    46 	connect(&NetSocket, SIGNAL(error(QAbstractSocket::SocketError)), this,
    47 	connect(&NetSocket, SIGNAL(error(QAbstractSocket::SocketError)), this,
    47 			SLOT(displayError(QAbstractSocket::SocketError)));
    48 			SLOT(displayError(QAbstractSocket::SocketError)));
       
    49 
       
    50 // config stuff
       
    51 	connect(this, SIGNAL(paramChanged(const QString &, const QStringList &)), pGameCFGWidget, SLOT(setParam(const QString &, const QStringList &)));
       
    52 	connect(pGameCFGWidget, SIGNAL(paramChanged(const QString &, const QStringList &)), this, SLOT(onParamChanged(const QString &, const QStringList &)));
       
    53 	connect(this, SIGNAL(configAsked()), pGameCFGWidget, SLOT(fullNetConfig()));
    48 }
    54 }
    49 
    55 
    50 HWNewNet::~HWNewNet()
    56 HWNewNet::~HWNewNet()
    51 {
    57 {
    52 	if (m_game_connected)
    58 	if (m_game_connected)