Cavoke  1.1.0
A Platform for creating and hosting multiplayer turn-based board games
Loading...
Searching...
No Matches
statisticsview.h
1#ifndef CAVOKE_CLIENT_STATISTICSVIEW_H
2#define CAVOKE_CLIENT_STATISTICSVIEW_H
3
4#include <QMainWindow>
5#include "entities/gameinfo.h"
6#include "entities/usergamestatistics.h"
7#include "entities/userstatistics.h"
8
9namespace Ui {
10class StatisticsView;
11}
12
13class StatisticsView : public QMainWindow {
14 Q_OBJECT
15public:
16 explicit StatisticsView(QWidget *parent = nullptr);
18
19public slots:
20 void gotGamesListUpdate(const std::vector<GameInfo> &newGamesList);
21 void gotUserStatisticsUpdate(const UserStatistics &userStatistics);
22 void gotUserGameStatisticsUpdate(
23 const UserGameStatistics &userGameStatistics);
24 void requestUpdates();
25
26signals:
27 void shownStartView();
28 void requestedRefresh();
29 void statisticsGameChanged(const QString &gameId);
30
31private slots:
32 void on_backButton_clicked();
33 void on_refreshButton_clicked();
34 void displayEmpty();
35 void repeaterCurrentIndexChanged(int index);
36
37private:
38 Ui::StatisticsView *ui;
39};
40
41#endif // CAVOKE_CLIENT_STATISTICSVIEW_H