diff options
author | bunnei <bunneidev@gmail.com> | 2018-10-06 02:43:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-06 02:43:09 -0400 |
commit | b8b90ce6e61329ebda226b9917ed961be3b80d1f (patch) | |
tree | 8e6b82419db7fb24eb5d8f06346a0a1228f9513c /src/yuzu/configuration/configure_web.h | |
parent | 095c8d999b27bcd412ab91da27c56d014d8ddeb9 (diff) | |
parent | e4daf4bee522c046e5e01eeed2c5b12bd91f489e (diff) |
Merge pull request #1332 from FearlessTobi/port-web-backend
Port web_service from Citra
Diffstat (limited to 'src/yuzu/configuration/configure_web.h')
-rw-r--r-- | src/yuzu/configuration/configure_web.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/yuzu/configuration/configure_web.h b/src/yuzu/configuration/configure_web.h new file mode 100644 index 000000000..7741ab95d --- /dev/null +++ b/src/yuzu/configuration/configure_web.h @@ -0,0 +1,38 @@ +// 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); + ~ConfigureWeb(); + + void applyConfiguration(); + void retranslateUi(); + +public slots: + void RefreshTelemetryID(); + void OnLoginChanged(); + void VerifyLogin(); + void OnLoginVerified(); + +private: + void setConfiguration(); + + bool user_verified = true; + QFutureWatcher<bool> verify_watcher; + + std::unique_ptr<Ui::ConfigureWeb> ui; +}; |