2022-04-23 10:59:50 +02:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2019-04-29 01:01:23 +02:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
namespace Ui {
|
2021-08-12 21:32:53 +02:00
|
|
|
class ConfigureNetwork;
|
2019-04-29 01:01:23 +02:00
|
|
|
}
|
|
|
|
|
2021-08-12 21:32:53 +02:00
|
|
|
class ConfigureNetwork : public QWidget {
|
2019-04-29 01:01:23 +02:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2021-09-03 03:40:55 +02:00
|
|
|
explicit ConfigureNetwork(const Core::System& system_, QWidget* parent = nullptr);
|
2021-08-12 21:32:53 +02:00
|
|
|
~ConfigureNetwork() override;
|
2019-04-29 01:01:23 +02:00
|
|
|
|
2019-06-21 02:31:17 +02:00
|
|
|
void ApplyConfiguration();
|
2019-04-29 01:01:23 +02:00
|
|
|
|
|
|
|
private:
|
2022-05-02 05:36:10 +02:00
|
|
|
void changeEvent(QEvent*) override;
|
|
|
|
void RetranslateUI();
|
2019-06-21 02:31:17 +02:00
|
|
|
void SetConfiguration();
|
2019-04-29 01:01:23 +02:00
|
|
|
|
2021-08-12 21:32:53 +02:00
|
|
|
std::unique_ptr<Ui::ConfigureNetwork> ui;
|
2021-09-03 03:40:55 +02:00
|
|
|
|
|
|
|
const Core::System& system;
|
2019-04-29 01:01:23 +02:00
|
|
|
};
|