mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-27 09:23:01 +00:00
94c66f98bf
- Automatic verification based on regex - Token generation button - Removed unneeded links - public lobby creation [android] Signed-off-by: crueter <swurl@swurl.xyz> Co-authored-by: Aleksandr Popovich <alekpopo@pm.me> Co-authored-by: Aleksandr Popovich <alekpopo@proton.me> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/221 Co-authored-by: crueter <swurl@swurl.xyz> Co-committed-by: crueter <swurl@swurl.xyz>
41 lines
810 B
C++
41 lines
810 B
C++
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
// SPDX-FileCopyrightText: 2017 Citra Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <QRandomGenerator>
|
|
|
|
#include <QWidget>
|
|
#include <memory>
|
|
|
|
namespace Ui {
|
|
class ConfigureWeb;
|
|
}
|
|
|
|
class ConfigureWeb : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ConfigureWeb(QWidget* parent = nullptr);
|
|
~ConfigureWeb() override;
|
|
|
|
void ApplyConfiguration();
|
|
void SetWebServiceConfigEnabled(bool enabled);
|
|
|
|
private:
|
|
void changeEvent(QEvent* event) override;
|
|
void RetranslateUI();
|
|
|
|
void SetConfiguration();
|
|
|
|
std::unique_ptr<Ui::ConfigureWeb> ui;
|
|
QRandomGenerator *m_rng;
|
|
|
|
private slots:
|
|
void GenerateToken();
|
|
void VerifyLogin();
|
|
};
|