// SPDX-FileCopyrightText: 2002-2023 PCSX2 Dev Team // SPDX-License-Identifier: LGPL-3.0+ #pragma once #include #include #include #include "ui_DEV9DnsHostDialog.h" #include "DEV9UiCommon.h" class SettingsWindow; class DEV9DnsHostDialog : public QDialog { Q_OBJECT private Q_SLOTS: void onOK(); void onCancel(); public: DEV9DnsHostDialog(std::vector hosts, QWidget* parent); ~DEV9DnsHostDialog(); std::optional> PromptList(); protected: bool eventFilter(QObject* object, QEvent* event); private: Ui::DEV9DnsHostDialog m_ui; std::vector m_hosts; QStandardItemModel* m_ethHost_model; QSortFilterProxyModel* m_ethHosts_proxy; };