mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Qt/NetPlay: Integrate NetPlayIndex
This commit is contained in:
52
Source/Core/DolphinQt/NetPlay/NetPlayBrowser.h
Normal file
52
Source/Core/DolphinQt/NetPlay/NetPlayBrowser.h
Normal file
@ -0,0 +1,52 @@
|
||||
// Copyright 2019 Dolphin Emulator Project
|
||||
// Licensed under GPLv2+
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
#include "UICommon/NetPlayIndex.h"
|
||||
|
||||
class QComboBox;
|
||||
class QDialogButtonBox;
|
||||
class QLabel;
|
||||
class QLineEdit;
|
||||
class QPushButton;
|
||||
class QRadioButton;
|
||||
class QTableWidget;
|
||||
|
||||
class NetPlayBrowser : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit NetPlayBrowser(QWidget* parent = nullptr);
|
||||
|
||||
void accept() override;
|
||||
signals:
|
||||
void Join();
|
||||
|
||||
private:
|
||||
void CreateWidgets();
|
||||
void ConnectWidgets();
|
||||
|
||||
void Refresh();
|
||||
|
||||
void OnSelectionChanged();
|
||||
|
||||
QComboBox* m_region_combo;
|
||||
QLabel* m_status_label;
|
||||
QPushButton* m_button_refresh;
|
||||
QTableWidget* m_table_widget;
|
||||
QDialogButtonBox* m_button_box;
|
||||
QLineEdit* m_edit_name;
|
||||
QLineEdit* m_edit_game_id;
|
||||
|
||||
QRadioButton* m_radio_all;
|
||||
QRadioButton* m_radio_private;
|
||||
QRadioButton* m_radio_public;
|
||||
|
||||
std::vector<NetPlaySession> m_sessions;
|
||||
};
|
Reference in New Issue
Block a user