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

Public Slots

void loadQmlGame (const QString &gameId)
 
void updateGamesList (const QJsonArray &newGamesList)
 
void receivedGameIndexChange (int newIndex)
 
void receivedGameIndexChangeInList (int newIndex)
 
void gotIndexToDownload (int index)
 
void gotGameIdToDownload (const QString &gameId)
 

Signals

void startQmlApplication (CavokeQmlGameModel *)
 
void gamesListUpdated (const std::vector< GameInfo > &newGamesList)
 
void updateSelectedGame (const GameInfo &gameInfo)
 
void updateSelectedGameInList (const GameInfo &gameInfo)
 
void downloadGame (const QString &gameId)
 

Public Member Functions

 CavokeClientModel (QObject *parent=nullptr)
 
GameInfo getGameByIndex (int index)
 

Detailed Description

Definition at line 8 of file cavokeclientmodel.h.

Constructor & Destructor Documentation

◆ CavokeClientModel()

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

Definition at line 4 of file cavokeclientmodel.cpp.

Member Function Documentation

◆ getGameByIndex()

GameInfo CavokeClientModel::getGameByIndex ( int  index)

Definition at line 44 of file cavokeclientmodel.cpp.

◆ gotGameIdToDownload

void CavokeClientModel::gotGameIdToDownload ( const QString &  gameId)
slot

Definition at line 48 of file cavokeclientmodel.cpp.

◆ gotIndexToDownload

void CavokeClientModel::gotIndexToDownload ( int  index)
slot

Definition at line 40 of file cavokeclientmodel.cpp.

◆ loadQmlGame

void CavokeClientModel::loadQmlGame ( const QString &  gameId)
slot

Definition at line 7 of file cavokeclientmodel.cpp.

◆ receivedGameIndexChange

void CavokeClientModel::receivedGameIndexChange ( int  newIndex)
slot

Definition at line 32 of file cavokeclientmodel.cpp.

◆ receivedGameIndexChangeInList

void CavokeClientModel::receivedGameIndexChangeInList ( int  newIndex)
slot

Definition at line 36 of file cavokeclientmodel.cpp.

◆ updateGamesList

void CavokeClientModel::updateGamesList ( const QJsonArray &  newGamesList)
slot

Definition at line 17 of file cavokeclientmodel.cpp.


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