Cavoke  1.1.0
A Platform for creating and hosting multiplayer turn-based board games
Loading...
Searching...
No Matches
settingsview.h
1#ifndef CAVOKE_CLIENT_SETTINGSVIEW_H
2#define CAVOKE_CLIENT_SETTINGSVIEW_H
3
4#include <QMainWindow>
5#include "authdialog.h"
6
7namespace Ui {
8class SettingsView;
9}
10
11class SettingsView : public QMainWindow {
12 Q_OBJECT
13public:
14 explicit SettingsView(QWidget *parent = nullptr);
16
17public slots:
18 void initStartValues(const QString &displayName, const QString &host);
19 void updateDisplayName(const QString &displayName);
20
21signals:
22 void shownStartView();
23 void updatedSettings(const QString &displayName, const QString &host);
24
25private slots:
26 void on_backButton_clicked();
27 void on_updateSettingsButton_clicked();
28 void on_reloginButton_clicked();
29
30private:
31 Ui::SettingsView *ui;
32 QString oldDisplayName{};
33};
34
35#endif // CAVOKE_CLIENT_SETTINGSVIEW_H