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
|
|
|
|
|
2017-09-19 01:18:26 +00:00
|
|
|
#include <future>
|
2017-08-23 03:36:57 +00:00
|
|
|
#include <memory>
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ConfigureWeb;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ConfigureWeb : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit ConfigureWeb(QWidget* parent = nullptr);
|
|
|
|
~ConfigureWeb();
|
|
|
|
|
|
|
|
void applyConfiguration();
|
2017-09-23 13:13:59 +00:00
|
|
|
void retranslateUi();
|
2017-08-23 03:36:57 +00:00
|
|
|
|
|
|
|
public slots:
|
2017-09-19 01:18:26 +00:00
|
|
|
void RefreshTelemetryID();
|
|
|
|
void OnLoginChanged();
|
|
|
|
void VerifyLogin();
|
|
|
|
void OnLoginVerified();
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void LoginVerified();
|
2017-08-23 03:36:57 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void setConfiguration();
|
|
|
|
|
2017-09-19 01:18:26 +00:00
|
|
|
bool user_verified = true;
|
|
|
|
std::future<bool> verified;
|
|
|
|
|
2017-08-23 03:36:57 +00:00
|
|
|
std::unique_ptr<Ui::ConfigureWeb> ui;
|
|
|
|
};
|