2018-09-16 20:05:51 +02:00
|
|
|
// Copyright 2017 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include <QFutureWatcher>
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ConfigureWeb;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ConfigureWeb : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit ConfigureWeb(QWidget* parent = nullptr);
|
2018-12-02 20:10:28 +01:00
|
|
|
~ConfigureWeb() override;
|
2018-09-16 20:05:51 +02:00
|
|
|
|
2019-05-26 06:39:23 +02:00
|
|
|
void ApplyConfiguration();
|
2018-09-16 20:05:51 +02:00
|
|
|
|
2018-12-02 20:14:32 +01:00
|
|
|
private:
|
2019-06-06 00:39:46 +02:00
|
|
|
void changeEvent(QEvent* event) override;
|
|
|
|
void RetranslateUI();
|
|
|
|
|
2018-09-16 20:05:51 +02:00
|
|
|
void RefreshTelemetryID();
|
|
|
|
void OnLoginChanged();
|
|
|
|
void VerifyLogin();
|
|
|
|
void OnLoginVerified();
|
|
|
|
|
2019-05-26 06:39:23 +02:00
|
|
|
void SetConfiguration();
|
2018-09-16 20:05:51 +02:00
|
|
|
|
|
|
|
bool user_verified = true;
|
|
|
|
QFutureWatcher<bool> verify_watcher;
|
|
|
|
|
|
|
|
std::unique_ptr<Ui::ConfigureWeb> ui;
|
|
|
|
};
|