diff options
author | David <25727384+ogniK5377@users.noreply.github.com> | 2019-10-03 19:06:13 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-03 19:06:13 +1000 |
commit | 9aac7fbc22d07a50e6d71dc17da2d8c2eba63968 (patch) | |
tree | 26f9fdb35b1ddaf2fe28d7a4867c69a9e5ad4b35 /src/yuzu/configuration/configure_service.h | |
parent | 6bfabdedfd636a74335f5b21b15f170f23c8c1a8 (diff) | |
parent | e55d086cc93ea33829e77a2e92be52bcf900767b (diff) |
Merge pull request #2539 from DarkLordZach/bcat
bcat: Implement BCAT service and connect to yuzu Boxcat server
Diffstat (limited to 'src/yuzu/configuration/configure_service.h')
-rw-r--r-- | src/yuzu/configuration/configure_service.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/yuzu/configuration/configure_service.h b/src/yuzu/configuration/configure_service.h new file mode 100644 index 000000000..f5c1b703a --- /dev/null +++ b/src/yuzu/configuration/configure_service.h @@ -0,0 +1,34 @@ +// Copyright 2019 yuzu 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 ConfigureService; +} + +class ConfigureService : public QWidget { + Q_OBJECT + +public: + explicit ConfigureService(QWidget* parent = nullptr); + ~ConfigureService() override; + + void ApplyConfiguration(); + void RetranslateUi(); + +private: + void SetConfiguration(); + + std::pair<QString, QString> BCATDownloadEvents(); + void OnBCATImplChanged(); + void OnUpdateBCATEmptyLabel(std::pair<QString, QString> string); + + std::unique_ptr<Ui::ConfigureService> ui; + QFutureWatcher<std::pair<QString, QString>> watcher{this}; +}; |