Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
protocol_hierarchy_dialog.h
Go to the documentation of this file.
1
10#ifndef PROTOCOL_HIERARCHY_DIALOG_H
11#define PROTOCOL_HIERARCHY_DIALOG_H
12
13#include <QMenu>
14#include <QSet>
15
16#include "filter_action.h"
18#include "wireshark_dialog.h"
19
20class QPushButton;
21class QTreeWidgetItem;
22
23namespace Ui {
25}
26
31{
32 Q_OBJECT
33
34public:
40 explicit ProtocolHierarchyDialog(QWidget &parent, CaptureFile &cf);
41
46
47signals:
55
56private slots:
61 void showProtoHierMenu(QPoint pos);
62
66 void filterActionTriggered();
67
71 void on_actionCopyAsCsv_triggered();
72
76 void on_actionCopyAsYaml_triggered();
77
81 void on_actionCopyProtoList_triggered();
82
86 void on_actionDisableProtos_triggered();
87
91 void on_actionRevertProtos_triggered();
92
96 void on_buttonBox_helpRequested();
97
98private:
99 Ui::ProtocolHierarchyDialog *ui;
100 QAction *proto_disable_;
101 QAction *proto_revert_;
102 QMenu ctx_menu_;
103 PercentBarDelegate percent_bar_delegate_;
104 QString display_filter_;
105 QSet<QString> used_protos_;
112 static void addTreeNode(GNode *node, void *data);
113
117 void updateWidgets();
118
124 QList<QVariant> protoHierRowData(QTreeWidgetItem *item) const;
125};
126
127#endif // PROTOCOL_HIERARCHY_DIALOG_H
Manages a capture file and its associated state and operations.
Definition capture_file.h:27
Action
Defines an action to be taken with a filter.
Definition filter_action.h:30
ActionType
Defines how the new filter should be combined with the existing one.
Definition filter_action.h:43
Delegate for drawing a percentage bar in an item view.
Definition percent_bar_delegate.h:40
Dialog for displaying protocol hierarchy statistics.
Definition protocol_hierarchy_dialog.h:31
void filterAction(QString filter, FilterAction::Action action, FilterAction::ActionType type)
Signal emitted to apply a filter action based on the selected protocol.
~ProtocolHierarchyDialog()
Destroys the ProtocolHierarchyDialog.
Definition protocol_hierarchy_dialog.cpp:275
Base class for Wireshark specific dialogs that require interaction with a CaptureFile.
Definition wireshark_dialog.h:38