2019-04-28 19:01:23 -04:00
|
|
|
// 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>
|
|
|
|
|
2021-08-12 15:32:53 -04:00
|
|
|
#include "core/network/network_interface.h"
|
|
|
|
|
2019-04-28 19:01:23 -04:00
|
|
|
namespace Ui {
|
2021-08-12 15:32:53 -04:00
|
|
|
class ConfigureNetwork;
|
2019-04-28 19:01:23 -04:00
|
|
|
}
|
|
|
|
|
2021-08-12 15:32:53 -04:00
|
|
|
class ConfigureNetwork : public QWidget {
|
2019-04-28 19:01:23 -04:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2021-08-12 15:32:53 -04:00
|
|
|
explicit ConfigureNetwork(QWidget* parent = nullptr);
|
|
|
|
~ConfigureNetwork() override;
|
2019-04-28 19:01:23 -04:00
|
|
|
|
2019-06-20 20:31:17 -04:00
|
|
|
void ApplyConfiguration();
|
|
|
|
void RetranslateUi();
|
2019-04-28 19:01:23 -04:00
|
|
|
|
|
|
|
private:
|
2019-06-20 20:31:17 -04:00
|
|
|
void SetConfiguration();
|
2019-04-28 19:01:23 -04:00
|
|
|
|
|
|
|
std::pair<QString, QString> BCATDownloadEvents();
|
|
|
|
void OnBCATImplChanged();
|
|
|
|
void OnUpdateBCATEmptyLabel(std::pair<QString, QString> string);
|
|
|
|
|
2021-08-12 15:32:53 -04:00
|
|
|
std::unique_ptr<Ui::ConfigureNetwork> ui;
|
2019-10-02 08:35:39 -04:00
|
|
|
QFutureWatcher<std::pair<QString, QString>> watcher{this};
|
2019-04-28 19:01:23 -04:00
|
|
|
};
|