2024-07-30 11:42:36 +00:00
|
|
|
// SPDX-FileCopyrightText: 2002-2024 PCSX2 Dev Team
|
|
|
|
// SPDX-License-Identifier: GPL-3.0+
|
2022-05-22 12:49:40 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2022-08-22 22:17:01 +00:00
|
|
|
#include <QtCore/QSortFilterProxyModel>
|
2022-05-22 12:49:40 +00:00
|
|
|
#include <QtGui/QStandardItemModel>
|
2022-08-22 22:17:01 +00:00
|
|
|
#include <QtWidgets/QDialog>
|
2022-05-22 12:49:40 +00:00
|
|
|
|
|
|
|
#include "ui_DEV9DnsHostDialog.h"
|
|
|
|
|
|
|
|
#include "DEV9UiCommon.h"
|
|
|
|
|
2023-10-14 08:45:09 +00:00
|
|
|
class SettingsWindow;
|
2022-05-22 12:49:40 +00:00
|
|
|
|
|
|
|
class DEV9DnsHostDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
void onOK();
|
|
|
|
void onCancel();
|
|
|
|
|
|
|
|
public:
|
|
|
|
DEV9DnsHostDialog(std::vector<HostEntryUi> hosts, QWidget* parent);
|
|
|
|
~DEV9DnsHostDialog();
|
|
|
|
|
|
|
|
std::optional<std::vector<HostEntryUi>> PromptList();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
bool eventFilter(QObject* object, QEvent* event);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::DEV9DnsHostDialog m_ui;
|
|
|
|
|
|
|
|
std::vector<HostEntryUi> m_hosts;
|
|
|
|
|
|
|
|
QStandardItemModel* m_ethHost_model;
|
|
|
|
QSortFilterProxyModel* m_ethHosts_proxy;
|
|
|
|
};
|