2017-08-23 09:06:57 +05:30
|
|
|
// 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 21:52:48 +05:30
|
|
|
#include <QFutureWatcher>
|
2017-08-23 09:06:57 +05:30
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ConfigureWeb;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ConfigureWeb : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit ConfigureWeb(QWidget* parent = nullptr);
|
2018-12-07 21:14:37 +05:30
|
|
|
~ConfigureWeb() override;
|
2017-08-23 09:06:57 +05:30
|
|
|
|
|
|
|
void applyConfiguration();
|
2017-09-23 18:43:59 +05:30
|
|
|
void retranslateUi();
|
2018-11-02 20:10:58 +05:30
|
|
|
void setConfiguration();
|
2017-08-23 09:06:57 +05:30
|
|
|
|
2018-12-03 00:44:32 +05:30
|
|
|
private:
|
2017-09-19 06:48:26 +05:30
|
|
|
void RefreshTelemetryID();
|
|
|
|
void OnLoginChanged();
|
|
|
|
void VerifyLogin();
|
|
|
|
void OnLoginVerified();
|
|
|
|
|
|
|
|
bool user_verified = true;
|
2018-09-12 21:52:48 +05:30
|
|
|
QFutureWatcher<bool> verify_watcher;
|
2017-09-19 06:48:26 +05:30
|
|
|
|
2017-08-23 09:06:57 +05:30
|
|
|
std::unique_ptr<Ui::ConfigureWeb> ui;
|
|
|
|
};
|