1#include "settingsview.h"
2#include "AuthenticationManager.h"
3#include "ui_settingsview.h"
5SettingsView::SettingsView(QWidget *parent)
10SettingsView::~SettingsView() {
14void SettingsView::initStartValues(
const QString &displayName,
15 const QString &host) {
16 ui->nicknameInput->setText(displayName);
17 oldDisplayName = displayName;
18 ui->serverAddressInput->setText(host);
21void SettingsView::updateDisplayName(
const QString &displayName) {
22 ui->nicknameInput->setText(displayName);
23 oldDisplayName = displayName;
26void SettingsView::on_backButton_clicked() {
28 emit shownStartView();
30void SettingsView::on_updateSettingsButton_clicked() {
31 if (ui->nicknameInput->text() != oldDisplayName) {
36 emit updatedSettings(ui->nicknameInput->text(),
37 ui->serverAddressInput->text());
39 emit shownStartView();
41void SettingsView::on_reloginButton_clicked() {
static bool verifyAuth(QWidget *parent=nullptr)
static AuthenticationManager & getInstance()
Singleton wrapper.