482 |
482 |
483 connect(hwnet, SIGNAL(roomsList(const QStringList&)), |
483 connect(hwnet, SIGNAL(roomsList(const QStringList&)), |
484 ui.pageRoomsList, SLOT(setRoomsList(const QStringList&))); |
484 ui.pageRoomsList, SLOT(setRoomsList(const QStringList&))); |
485 connect(hwnet, SIGNAL(adminAccess(bool)), |
485 connect(hwnet, SIGNAL(adminAccess(bool)), |
486 ui.pageRoomsList, SLOT(setAdmin(bool))); |
486 ui.pageRoomsList, SLOT(setAdmin(bool))); |
|
487 connect(hwnet, SIGNAL(adminAccess(bool)), |
|
488 ui.pageRoomsList->chatWidget, SLOT(adminAccess(bool))); |
487 |
489 |
488 connect(hwnet, SIGNAL(serverMessage(const QString&)), |
490 connect(hwnet, SIGNAL(serverMessage(const QString&)), |
489 ui.pageRoomsList->chatWidget, SLOT(onServerMessage(const QString&))); |
491 ui.pageRoomsList->chatWidget, SLOT(onServerMessage(const QString&))); |
490 |
492 |
491 connect(ui.pageRoomsList, SIGNAL(askForCreateRoom(const QString &)), |
493 connect(ui.pageRoomsList, SIGNAL(askForCreateRoom(const QString &)), |
503 ui.pageNetGame->pChatWidget, SLOT(onChatString(const QString&))); |
505 ui.pageNetGame->pChatWidget, SLOT(onChatString(const QString&))); |
504 connect(hwnet, SIGNAL(setReadyStatus(const QString &, bool)), |
506 connect(hwnet, SIGNAL(setReadyStatus(const QString &, bool)), |
505 ui.pageNetGame->pChatWidget, SLOT(setReadyStatus(const QString &, bool))); |
507 ui.pageNetGame->pChatWidget, SLOT(setReadyStatus(const QString &, bool))); |
506 connect(hwnet, SIGNAL(chatStringFromMe(const QString&)), |
508 connect(hwnet, SIGNAL(chatStringFromMe(const QString&)), |
507 ui.pageNetGame->pChatWidget, SLOT(onChatString(const QString&))); |
509 ui.pageNetGame->pChatWidget, SLOT(onChatString(const QString&))); |
|
510 connect(hwnet, SIGNAL(roomMaster(bool)), |
|
511 ui.pageNetGame->pChatWidget, SLOT(adminAccess(bool))); |
508 connect(ui.pageNetGame->pChatWidget, SIGNAL(chatLine(const QString&)), |
512 connect(ui.pageNetGame->pChatWidget, SIGNAL(chatLine(const QString&)), |
509 hwnet, SLOT(chatLineToNet(const QString&))); |
513 hwnet, SLOT(chatLineToNet(const QString&))); |
510 connect(ui.pageNetGame->BtnGo, SIGNAL(clicked()), hwnet, SLOT(ToggleReady())); |
514 connect(ui.pageNetGame->BtnGo, SIGNAL(clicked()), hwnet, SLOT(ToggleReady())); |
511 connect(hwnet, SIGNAL(setMyReadyStatus(bool)), |
515 connect(hwnet, SIGNAL(setMyReadyStatus(bool)), |
512 ui.pageNetGame, SLOT(setReadyStatus(bool))); |
516 ui.pageNetGame, SLOT(setReadyStatus(bool))); |
513 |
517 |
514 connect(ui.pageNetGame->pChatWidget, SIGNAL(kick(const QString&)), |
518 connect(ui.pageNetGame->pChatWidget, SIGNAL(kick(const QString&)), |
515 hwnet, SLOT(kickPlayer(const QString&))); |
519 hwnet, SLOT(kickPlayer(const QString&))); |
|
520 connect(ui.pageNetGame->pChatWidget, SIGNAL(ban(const QString&)), |
|
521 hwnet, SLOT(banPlayer(const QString&))); |
516 connect(ui.pageNetGame->pChatWidget, SIGNAL(info(const QString&)), |
522 connect(ui.pageNetGame->pChatWidget, SIGNAL(info(const QString&)), |
517 hwnet, SLOT(infoPlayer(const QString&))); |
523 hwnet, SLOT(infoPlayer(const QString&))); |
|
524 connect(ui.pageRoomsList->chatWidget, SIGNAL(kick(const QString&)), |
|
525 hwnet, SLOT(kickPlayer(const QString&))); |
|
526 connect(ui.pageRoomsList->chatWidget, SIGNAL(ban(const QString&)), |
|
527 hwnet, SLOT(banPlayer(const QString&))); |
518 connect(ui.pageRoomsList->chatWidget, SIGNAL(info(const QString&)), |
528 connect(ui.pageRoomsList->chatWidget, SIGNAL(info(const QString&)), |
519 hwnet, SLOT(infoPlayer(const QString&))); |
529 hwnet, SLOT(infoPlayer(const QString&))); |
520 |
530 |
521 connect(ui.pageRoomsList->chatWidget, SIGNAL(chatLine(const QString&)), |
531 connect(ui.pageRoomsList->chatWidget, SIGNAL(chatLine(const QString&)), |
522 hwnet, SLOT(chatLineToLobby(const QString&))); |
532 hwnet, SLOT(chatLineToLobby(const QString&))); |