2020-04-19 13:30:50 -06:00
|
|
|
// Copyright 2020 Dolphin Emulator Project
|
2021-07-04 19:22:19 -06:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2020-04-19 13:30:50 -06:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QDockWidget>
|
|
|
|
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
|
|
|
|
class QCheckBox;
|
|
|
|
class QCloseEvent;
|
2020-04-29 02:10:24 -06:00
|
|
|
class QComboBox;
|
2020-04-19 13:30:50 -06:00
|
|
|
class QGroupBox;
|
2020-04-29 02:10:24 -06:00
|
|
|
class QPushButton;
|
2020-04-19 13:30:50 -06:00
|
|
|
class QShowEvent;
|
|
|
|
class QTableWidget;
|
|
|
|
class QTableWidgetItem;
|
|
|
|
|
|
|
|
class NetworkWidget : public QDockWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit NetworkWidget(QWidget* parent = nullptr);
|
|
|
|
~NetworkWidget();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void closeEvent(QCloseEvent*) override;
|
|
|
|
void showEvent(QShowEvent* event) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void CreateWidgets();
|
|
|
|
void ConnectWidgets();
|
|
|
|
|
|
|
|
void Update();
|
|
|
|
|
|
|
|
QGroupBox* CreateSocketTableGroup();
|
|
|
|
QGroupBox* CreateSSLContextGroup();
|
2020-04-29 02:10:24 -06:00
|
|
|
QGroupBox* CreateDumpOptionsGroup();
|
|
|
|
QGroupBox* CreateSecurityOptionsGroup();
|
|
|
|
QComboBox* CreateDumpFormatCombo();
|
|
|
|
|
|
|
|
void OnDumpFormatComboChanged(int index);
|
|
|
|
|
|
|
|
enum class FormatComboId : int
|
|
|
|
{
|
|
|
|
None = 0,
|
|
|
|
PCAP,
|
|
|
|
BinarySSL,
|
|
|
|
BinarySSLRead,
|
|
|
|
BinarySSLWrite,
|
|
|
|
};
|
2020-04-19 13:30:50 -06:00
|
|
|
|
|
|
|
QTableWidget* m_socket_table;
|
|
|
|
QTableWidget* m_ssl_table;
|
2020-04-29 02:10:24 -06:00
|
|
|
QComboBox* m_dump_format_combo;
|
2020-04-19 13:30:50 -06:00
|
|
|
QCheckBox* m_dump_ssl_read_checkbox;
|
|
|
|
QCheckBox* m_dump_ssl_write_checkbox;
|
|
|
|
QCheckBox* m_dump_root_ca_checkbox;
|
|
|
|
QCheckBox* m_dump_peer_cert_checkbox;
|
|
|
|
QCheckBox* m_verify_certificates_checkbox;
|
2020-04-29 02:10:24 -06:00
|
|
|
QPushButton* m_open_dump_folder;
|
2020-04-19 13:30:50 -06:00
|
|
|
};
|