2019-10-22 23:49:48 +00:00
|
|
|
// Copyright 2019 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2019-10-22 23:49:48 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2020-05-09 20:44:45 +00:00
|
|
|
#include <QStringList>
|
2019-10-22 23:49:48 +00:00
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
class QCheckBox;
|
2020-05-09 20:44:45 +00:00
|
|
|
class QListWidget;
|
|
|
|
class QPushButton;
|
2019-10-22 23:49:48 +00:00
|
|
|
|
2019-10-26 16:05:16 +00:00
|
|
|
class DualShockUDPClientWidget final : public QWidget
|
2019-10-22 23:49:48 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2019-10-26 16:05:16 +00:00
|
|
|
explicit DualShockUDPClientWidget();
|
2019-10-22 23:49:48 +00:00
|
|
|
|
2020-05-09 20:44:45 +00:00
|
|
|
signals:
|
|
|
|
// Emitted when config has changed so widgets can update to reflect the change.
|
|
|
|
void ConfigChanged();
|
|
|
|
|
2019-10-22 23:49:48 +00:00
|
|
|
private:
|
|
|
|
void CreateWidgets();
|
|
|
|
void ConnectWidgets();
|
|
|
|
|
2020-05-09 20:44:45 +00:00
|
|
|
void RefreshServerList();
|
|
|
|
|
|
|
|
void OnServerAdded();
|
|
|
|
void OnServerRemoved();
|
|
|
|
void OnServersToggled();
|
|
|
|
|
|
|
|
QCheckBox* m_servers_enabled;
|
|
|
|
QListWidget* m_server_list;
|
|
|
|
QPushButton* m_add_server;
|
|
|
|
QPushButton* m_remove_server;
|
2019-10-22 23:49:48 +00:00
|
|
|
};
|