2017-08-22 22:36:57 -05: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 11:22:48 -05:00
|
|
|
#include <QFutureWatcher>
|
2017-08-22 22:36:57 -05:00
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ConfigureWeb;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ConfigureWeb : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit ConfigureWeb(QWidget* parent = nullptr);
|
2018-12-07 09:44:37 -06:00
|
|
|
~ConfigureWeb() override;
|
2017-08-22 22:36:57 -05:00
|
|
|
|
2019-05-25 23:39:23 -05:00
|
|
|
void ApplyConfiguration();
|
|
|
|
void RetranslateUI();
|
|
|
|
void SetConfiguration();
|
2019-04-19 21:42:20 -05:00
|
|
|
void SetWebServiceConfigEnabled(bool enabled);
|
2017-08-22 22:36:57 -05:00
|
|
|
|
2018-12-02 13:14:32 -06:00
|
|
|
private:
|
2017-09-18 20:18:26 -05:00
|
|
|
void RefreshTelemetryID();
|
|
|
|
void OnLoginChanged();
|
|
|
|
void VerifyLogin();
|
|
|
|
void OnLoginVerified();
|
|
|
|
|
|
|
|
bool user_verified = true;
|
2018-09-12 11:22:48 -05:00
|
|
|
QFutureWatcher<bool> verify_watcher;
|
2017-09-18 20:18:26 -05:00
|
|
|
|
2017-08-22 22:36:57 -05:00
|
|
|
std::unique_ptr<Ui::ConfigureWeb> ui;
|
|
|
|
};
|