304 } |
304 } |
305 |
305 |
306 void HWForm::NetConnect() |
306 void HWForm::NetConnect() |
307 { |
307 { |
308 hwnet = new HWNet(ui.CBResolution->currentIndex(), ui.CBFullscreen->isChecked()); |
308 hwnet = new HWNet(ui.CBResolution->currentIndex(), ui.CBFullscreen->isChecked()); |
309 hwnet->Connect("172.19.5.168", 6667, ui.editNetNick->text()); |
|
310 connect(hwnet, SIGNAL(Connected()), this, SLOT(GoToNetChat())); |
309 connect(hwnet, SIGNAL(Connected()), this, SLOT(GoToNetChat())); |
311 connect(hwnet, SIGNAL(AddGame(const QString &)), this, SLOT(AddGame(const QString &))); |
310 connect(hwnet, SIGNAL(AddGame(const QString &)), this, SLOT(AddGame(const QString &))); |
312 connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter())); |
311 connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter())); |
313 connect(hwnet, SIGNAL(ChangeInTeams(const QStringList &)), this, SLOT(ChangeInNetTeams(const QStringList &))); |
312 connect(hwnet, SIGNAL(ChangeInTeams(const QStringList &)), this, SLOT(ChangeInNetTeams(const QStringList &))); |
|
313 hwnet->Connect("172.19.5.168", 6667, ui.editNetNick->text()); |
314 } |
314 } |
315 |
315 |
316 void HWForm::NetDisconnect() |
316 void HWForm::NetDisconnect() |
317 { |
317 { |
318 hwnet->Disconnect(); |
318 hwnet->Disconnect(); |