configure_service.h 769 B

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright 2019 yuzu Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <memory>
  6. #include <QFutureWatcher>
  7. #include <QWidget>
  8. namespace Ui {
  9. class ConfigureService;
  10. }
  11. class ConfigureService : public QWidget {
  12. Q_OBJECT
  13. public:
  14. explicit ConfigureService(QWidget* parent = nullptr);
  15. ~ConfigureService() override;
  16. void ApplyConfiguration();
  17. void RetranslateUi();
  18. private:
  19. void SetConfiguration();
  20. std::pair<QString, QString> BCATDownloadEvents();
  21. void OnBCATImplChanged();
  22. void OnUpdateBCATEmptyLabel(std::pair<QString, QString> string);
  23. std::unique_ptr<Ui::ConfigureService> ui;
  24. QFutureWatcher<std::pair<QString, QString>> watcher{this};
  25. };