aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/configuration/configure_network.h
blob: 442b68e6bd2214569bb0ae6ad8d74e4fdb937871 (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 ConfigureNetwork;
}

class ConfigureNetwork : public QWidget {
    Q_OBJECT

public:
    explicit ConfigureNetwork(QWidget* parent = nullptr);
    ~ConfigureNetwork() 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::ConfigureNetwork> ui;
    QFutureWatcher<std::pair<QString, QString>> watcher{this};
};