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
8namespace Ui {
9class GamesListView;
10}
11
12class GamesListView : public QMainWindow {
13 Q_OBJECT
14public:
15 explicit GamesListView(QWidget *parent = nullptr);
17
18public 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
24signals:
25 void shownStartView();
26 void currentIndexChanged(int index);
27 void requestGameStatistics(const QString &gameId);
28 void requestedDownloadGame(int index);
29
30private slots:
31 void on_backButton_clicked();
32 void on_downloadQmlButton_clicked();
33 void repeaterCurrentIndexChanged(int index);
34
35private:
36 Ui::GamesListView *ui;
37};
38
39#endif // CAVOKE_GAMESLISTVIEW_H