| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
protocol_hierarchy_dialog.h
Go to the documentation of this file.
1
9
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"
17#include <ui/qt/models/percent_bar_delegate.h>
18#include "wireshark_dialog.h"
19
20 class QPushButton;
21 class QTreeWidgetItem;
22
23 namespace Ui {
24 class ProtocolHierarchyDialog;
25}
26
30 class ProtocolHierarchyDialog : public WiresharkDialog
31{
32 Q_OBJECT
33
34 public:
40 explicit ProtocolHierarchyDialog(QWidget &parent, CaptureFile &cf);
41
45 ~ProtocolHierarchyDialog();
46
47signals:
54 void filterAction(QString filter, FilterAction::Action action, FilterAction::ActionType type);
55
56 private 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
98 private:
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_;
106
112 static void addTreeNode(GNode *node, void *data);
113
117 void updateWidgets() override;
118
124 QList<QVariant> protoHierRowData(QTreeWidgetItem *item) const;
125};
126
127#endif // PROTOCOL_HIERARCHY_DIALOG_H
CaptureFile
Manages a capture file and its associated state and operations.
Definition capture_file.h:27
FilterAction::Action
Action
Defines an action to be taken with a filter.
Definition filter_action.h:30
FilterAction::ActionType
ActionType
Defines how the new filter should be combined with the existing one.
Definition filter_action.h:43
PercentBarDelegate
Delegate for drawing a percentage bar in an item view.
Definition percent_bar_delegate.h:40
ProtocolHierarchyDialog::filterAction
void filterAction(QString filter, FilterAction::Action action, FilterAction::ActionType type)
Signal emitted to apply a filter action based on the selected protocol.
ProtocolHierarchyDialog::~ProtocolHierarchyDialog
~ProtocolHierarchyDialog()
Destroys the ProtocolHierarchyDialog.
Definition protocol_hierarchy_dialog.cpp:275
ProtocolHierarchyDialog::ProtocolHierarchyDialog
ProtocolHierarchyDialog(QWidget &parent, CaptureFile &cf)
Constructs a ProtocolHierarchyDialog.
Definition protocol_hierarchy_dialog.cpp:180
WiresharkDialog::updateWidgets
virtual void updateWidgets()
Updates the state and contents of the dialog's widgets.
Definition wireshark_dialog.cpp:92
WiresharkDialog::WiresharkDialog
WiresharkDialog(QWidget &parent, CaptureFile &capture_file)
Constructs a new WiresharkDialog object.
Definition wireshark_dialog.cpp:30
filter_action.h
percent_bar_delegate.h
wireshark_dialog.h