1#ifndef CAVOKE_CLIENT_SESSIONVIEW_H
2#define CAVOKE_CLIENT_SESSIONVIEW_H
5#include "entities/role.h"
6#include "entities/sessioninfo.h"
7#include "entities/validationresult.h"
16 enum class CreatingGameStatus { UNKNOWN, DOWNLOAD, REQUESTED, DONE };
21 void updateStatus(CreatingGameStatus newStatus);
22 void updateSessionInfo(
const SessionInfo &sessionInfo);
25 void updateGameName(
const QString &gameName);
26 void gotRolesListUpdate(
const std::vector<Role> &newRolesList);
30 void joinedCreatedGame();
33 void newRoleChosen(
int roleId);
36 void on_startGameButton_clicked();
37 void on_backButton_clicked();
38 void repeaterCurrentIndexChanged(
int index);
44 const std::map<CreatingGameStatus, QString> STATUS = {
45 {CreatingGameStatus::UNKNOWN,
"Unknown"},
46 {CreatingGameStatus::DOWNLOAD,
"Downloading"},
47 {CreatingGameStatus::REQUESTED,
"Sending request"},
48 {CreatingGameStatus::DONE,
"Ready"},