204 hwnet = new HWNet(config); |
204 hwnet = new HWNet(config); |
205 connect(hwnet, SIGNAL(Connected()), this, SLOT(GoToNetChat())); |
205 connect(hwnet, SIGNAL(Connected()), this, SLOT(GoToNetChat())); |
206 connect(hwnet, SIGNAL(AddGame(const QString &)), this, SLOT(AddGame(const QString &))); |
206 connect(hwnet, SIGNAL(AddGame(const QString &)), this, SLOT(AddGame(const QString &))); |
207 connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter())); |
207 connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter())); |
208 connect(hwnet, SIGNAL(ChangeInTeams(const QStringList &)), this, SLOT(ChangeInNetTeams(const QStringList &))); |
208 connect(hwnet, SIGNAL(ChangeInTeams(const QStringList &)), this, SLOT(ChangeInNetTeams(const QStringList &))); |
209 hwnet->Connect("172.19.5.168", 6667, ui.pageOptions->editNetNick->text()); |
209 hwnet->Connect(ui.pageNet->editIP->text(), 6667, ui.pageNet->editNetNick->text()); |
|
210 config->SaveOptions(); |
210 } |
211 } |
211 |
212 |
212 void HWForm::NetDisconnect() |
213 void HWForm::NetDisconnect() |
213 { |
214 { |
214 hwnet->Disconnect(); |
215 hwnet->Disconnect(); |