2017-08-23 03:36:57 +00:00
|
|
|
// Copyright 2017 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
2018-09-12 16:22:48 +00:00
|
|
|
#include <QFutureWatcher>
|
2017-08-23 03:36:57 +00:00
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ConfigureWeb;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ConfigureWeb : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit ConfigureWeb(QWidget* parent = nullptr);
|
2018-12-07 15:44:37 +00:00
|
|
|
~ConfigureWeb() override;
|
2017-08-23 03:36:57 +00:00
|
|
|
|
|
|
|
void applyConfiguration();
|
2017-09-23 13:13:59 +00:00
|
|
|
void retranslateUi();
|
2018-11-02 14:40:58 +00:00
|
|
|
void setConfiguration();
|
2017-08-23 03:36:57 +00:00
|
|
|
|
2018-12-02 19:14:32 +00:00
|
|
|
private:
|
2017-09-19 01:18:26 +00:00
|
|
|
void RefreshTelemetryID();
|
|
|
|
void OnLoginChanged();
|
|
|
|
void VerifyLogin();
|
|
|
|
void OnLoginVerified();
|
|
|
|
|
|
|
|
bool user_verified = true;
|
2018-09-12 16:22:48 +00:00
|
|
|
QFutureWatcher<bool> verify_watcher;
|
2017-09-19 01:18:26 +00:00
|
|
|
|
2017-08-23 03:36:57 +00:00
|
|
|
std::unique_ptr<Ui::ConfigureWeb> ui;
|
|
|
|
};
|