aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/configuration/configure_service.h
blob: f5c1b703a82f66d3fc5b578f8d51c112ce89c36d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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};
};