Cavoke  1.1.0
A Platform for creating and hosting multiplayer turn-based board games
Loading...
Searching...
No Matches
NetworkManager Struct Reference
Inheritance diagram for NetworkManager:
[legend]

Public Slots

void getHealth ()
 
void getGamesList ()
 
void getGamesConfig (const QString &gameId)
 
void getGamesClient (const QString &gameId)
 
void sendMove (const QString &jsonMove)
 
void getPlayState ()
 
void joinSession (const QString &sessionId)
 
void validateSession ()
 
void getSessionInfo ()
 
void getSessionInfo (const QString &sessionId)
 
void startSession ()
 
void leaveSession ()
 
void changeRoleInSession (int newRole)
 
void getRoomInfo ()
 
void createRoom (const QString &display_name)
 
void joinRoom (const QString &invite_code)
 
void leaveRoom ()
 
void roomCreateSession (const QString &game_id)
 
void getMe ()
 
void changeName (const QString &new_name)
 
void getMyUserStatistics ()
 
void getMyUserGameStatistics (const QString &gameId)
 
void getGameStatistics (const QString &gameId)
 
void startGamePolling ()
 
void stopGamePolling ()
 
void startSessionPolling ()
 
void stopSessionPolling ()
 
void startValidationPolling ()
 
void stopValidationPolling ()
 
void startRoomPolling ()
 
void stopRoomPolling ()
 

Signals

void finalizedGamesList (QJsonArray list)
 
void gotGameUpdate (const QString &jsonField)
 
void downloadedGameFile (QFile *file, const QString &gameId)
 
void gotGameInfo (const GameInfo &gameInfo)
 
void gotSessionInfo (const SessionInfo &sessionInfo)
 
void gotValidationResult (const ValidationResult &validationResult)
 
void gotDisplayName (const QString &displayName)
 
void gotUserStatistics (const UserStatistics &userStatistics)
 
void gotUserGameStatistics (const UserGameStatistics &userGameStatistics)
 
void gotGameStatistics (const GameStatistics &gameStatistics)
 
void gotRoomInfo (const RoomInfo &roomInfo)
 

Public Member Functions

 NetworkManager (QObject *parent=nullptr)
 
void changeHost (const QUrl &newHost)
 
QString getUserId ()
 

Static Public Attributes

static const QUrl DEFAULT_HOST {"https://develop.api.cavoke.wlko.me"}
 

Detailed Description

Definition at line 23 of file network_manager.h.

Constructor & Destructor Documentation

◆ NetworkManager()

NetworkManager::NetworkManager ( QObject *  parent = nullptr)
explicit

Definition at line 3 of file network_manager.cpp.

Member Function Documentation

◆ changeHost()

void NetworkManager::changeHost ( const QUrl &  newHost)

Definition at line 428 of file network_manager.cpp.

◆ changeName

void NetworkManager::changeName ( const QString &  new_name)
slot

Definition at line 328 of file network_manager.cpp.

◆ changeRoleInSession

void NetworkManager::changeRoleInSession ( int  newRole)
slot

Definition at line 236 of file network_manager.cpp.

◆ createRoom

void NetworkManager::createRoom ( const QString &  display_name)
slot

Definition at line 270 of file network_manager.cpp.

◆ getGamesClient

void NetworkManager::getGamesClient ( const QString &  gameId)
slot

Definition at line 75 of file network_manager.cpp.

◆ getGamesConfig

void NetworkManager::getGamesConfig ( const QString &  gameId)
slot

Definition at line 52 of file network_manager.cpp.

◆ getGamesList

void NetworkManager::getGamesList ( )
slot

Definition at line 37 of file network_manager.cpp.

◆ getGameStatistics

void NetworkManager::getGameStatistics ( const QString &  gameId)
slot

Definition at line 379 of file network_manager.cpp.

◆ getHealth

void NetworkManager::getHealth ( )
slot

Definition at line 24 of file network_manager.cpp.

◆ getMe

void NetworkManager::getMe ( )
slot

Definition at line 306 of file network_manager.cpp.

◆ getMyUserGameStatistics

void NetworkManager::getMyUserGameStatistics ( const QString &  gameId)
slot

Definition at line 357 of file network_manager.cpp.

◆ getMyUserStatistics

void NetworkManager::getMyUserStatistics ( )
slot

Definition at line 337 of file network_manager.cpp.

◆ getPlayState

void NetworkManager::getPlayState ( )
slot

Definition at line 121 of file network_manager.cpp.

◆ getRoomInfo

void NetworkManager::getRoomInfo ( )
slot

Definition at line 247 of file network_manager.cpp.

◆ getSessionInfo [1/2]

void NetworkManager::getSessionInfo ( )
slot

Definition at line 195 of file network_manager.cpp.

◆ getSessionInfo [2/2]

void NetworkManager::getSessionInfo ( const QString &  sessionId)
slot

Definition at line 205 of file network_manager.cpp.

◆ getUserId()

QString NetworkManager::getUserId ( )

Definition at line 432 of file network_manager.cpp.

◆ joinRoom

void NetworkManager::joinRoom ( const QString &  invite_code)
slot

Definition at line 279 of file network_manager.cpp.

◆ joinSession

void NetworkManager::joinSession ( const QString &  sessionId)
slot

Definition at line 143 of file network_manager.cpp.

◆ leaveRoom

void NetworkManager::leaveRoom ( )
slot

Definition at line 288 of file network_manager.cpp.

◆ leaveSession

void NetworkManager::leaveSession ( )
slot

Definition at line 226 of file network_manager.cpp.

◆ roomCreateSession

void NetworkManager::roomCreateSession ( const QString &  game_id)
slot

Definition at line 297 of file network_manager.cpp.

◆ sendMove

void NetworkManager::sendMove ( const QString &  jsonMove)
slot

Definition at line 104 of file network_manager.cpp.

◆ startGamePolling

void NetworkManager::startGamePolling ( )
slot

Definition at line 399 of file network_manager.cpp.

◆ startRoomPolling

void NetworkManager::startRoomPolling ( )
slot

Definition at line 421 of file network_manager.cpp.

◆ startSession

void NetworkManager::startSession ( )
slot

Definition at line 216 of file network_manager.cpp.

◆ startSessionPolling

void NetworkManager::startSessionPolling ( )
slot

Definition at line 407 of file network_manager.cpp.

◆ startValidationPolling

void NetworkManager::startValidationPolling ( )
slot

Definition at line 413 of file network_manager.cpp.

◆ stopGamePolling

void NetworkManager::stopGamePolling ( )
slot

Definition at line 403 of file network_manager.cpp.

◆ stopRoomPolling

void NetworkManager::stopRoomPolling ( )
slot

Definition at line 425 of file network_manager.cpp.

◆ stopSessionPolling

void NetworkManager::stopSessionPolling ( )
slot

Definition at line 410 of file network_manager.cpp.

◆ stopValidationPolling

void NetworkManager::stopValidationPolling ( )
slot

Definition at line 417 of file network_manager.cpp.

◆ validateSession

void NetworkManager::validateSession ( )
slot

Definition at line 173 of file network_manager.cpp.

Member Data Documentation

◆ DEFAULT_HOST

const QUrl NetworkManager::DEFAULT_HOST {"https://develop.api.cavoke.wlko.me"}
inlinestatic

Definition at line 26 of file network_manager.h.


The documentation for this struct was generated from the following files: