Cavoke
1.1.0
A Platform for creating and hosting multiplayer turn-based board games
Loading...
Searching...
No Matches
gameslistview.h
1
#ifndef CAVOKE_GAMESLISTVIEW_H
2
#define CAVOKE_GAMESLISTVIEW_H
3
4
#include <QMainWindow>
5
#include "entities/gameinfo.h"
6
#include "entities/gamestatistics.h"
7
8
namespace
Ui {
9
class
GamesListView
;
10
}
11
12
class
GamesListView
:
public
QMainWindow {
13
Q_OBJECT
14
public
:
15
explicit
GamesListView
(QWidget *parent =
nullptr
);
16
~GamesListView
();
17
18
public
slots:
19
void
gotGamesListUpdate(
const
std::vector<GameInfo> &newGamesList);
20
void
gotNewSelectedGame(
const
GameInfo
&gameInfo);
21
void
displayEmpty();
22
void
gotNewGameStatistics(
const
GameStatistics
&gameStatistics);
23
24
signals:
25
void
shownStartView();
26
void
currentIndexChanged(
int
index);
27
void
requestGameStatistics(
const
QString &gameId);
28
void
requestedDownloadGame(
int
index);
29
30
private
slots:
31
void
on_backButton_clicked();
32
void
on_downloadQmlButton_clicked();
33
void
repeaterCurrentIndexChanged(
int
index);
34
35
private
:
36
Ui::GamesListView *ui;
37
};
38
39
#endif
// CAVOKE_GAMESLISTVIEW_H
GamesListView
Definition:
gameslistview.h:12
GameInfo
Definition:
gameinfo.h:7
GameStatistics
Definition:
gamestatistics.h:6
client
views
gameslistview.h
Generated by
1.9.6