dolphin/Source/Core/DolphinQt/Debugger/NetworkWidget.h
Martino Fontana a14c88ba67 Remove unused imports
Yellow squiggly lines begone!
Done automatically on .cpp files through `run-clang-tidy`, with manual corrections to the mistakes.
If an import is directly used, but is technically unnecessary since it's recursively imported by something else, it is *not* removed.
The tool doesn't touch .h files, so I did some of them by hand while fixing errors due to old recursive imports.
Not everything is removed, but the cleanup should be substantial enough.
Because this done on Linux, code that isn't used on it is mostly untouched.
(Hopefully no open PR is depending on these imports...)
2026-01-25 16:12:15 +01:00

62 lines
1.3 KiB
C++

// Copyright 2020 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include <QDockWidget>
class QCheckBox;
class QCloseEvent;
class QComboBox;
class QGroupBox;
class QPushButton;
class QShowEvent;
class QTableWidget;
class QTableWidgetItem;
class NetworkWidget : public QDockWidget
{
Q_OBJECT
public:
explicit NetworkWidget(QWidget* parent = nullptr);
~NetworkWidget() override;
protected:
void closeEvent(QCloseEvent*) override;
void showEvent(QShowEvent* event) override;
private:
void CreateWidgets();
void ConnectWidgets();
void Update();
QGroupBox* CreateSocketTableGroup();
QGroupBox* CreateSSLContextGroup();
QGroupBox* CreateDumpOptionsGroup();
QGroupBox* CreateSecurityOptionsGroup();
QComboBox* CreateDumpFormatCombo();
void OnDumpFormatComboChanged(int index);
enum class FormatComboId : int
{
None = 0,
PCAP,
BinarySSL,
BinarySSLRead,
BinarySSLWrite,
};
QTableWidget* m_socket_table;
QTableWidget* m_ssl_table;
QComboBox* m_dump_format_combo;
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;
QCheckBox* m_dump_bba_checkbox;
QPushButton* m_open_dump_folder;
};