| 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"
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
27 class ProtocolHierarchyDialog : public WiresharkDialog
28{
29 Q_OBJECT
30
31 public:
32 explicit ProtocolHierarchyDialog(QWidget &parent, CaptureFile &cf);
33 ~ProtocolHierarchyDialog();
34
35signals:
36 void filterAction(QString filter, FilterAction::Action action, FilterAction::ActionType type);
37
38 private slots:
39 void showProtoHierMenu(QPoint pos);
40 void filterActionTriggered();
41 void on_actionCopyAsCsv_triggered();
42 void on_actionCopyAsYaml_triggered();
43 void on_actionCopyProtoList_triggered();
44 void on_actionDisableProtos_triggered();
45 void on_actionRevertProtos_triggered();
46 void on_buttonBox_helpRequested();
47
48 private:
49 Ui::ProtocolHierarchyDialog *ui;
50 QAction *proto_disable_;
51 QAction *proto_revert_;
52 QMenu ctx_menu_;
53 PercentBarDelegate percent_bar_delegate_;
54 QString display_filter_;
55 QSet<QString> used_protos_;
56
57 // Callback for g_node_children_foreach
58 static void addTreeNode(GNode *node, void *data);
59 void updateWidgets();
60 QList<QVariant> protoHierRowData(QTreeWidgetItem *item) const;
61};
62
63#endif // PROTOCOL_HIERARCHY_DIALOG_H
CaptureFile
Definition capture_file.h:21
PercentBarDelegate
Definition percent_bar_delegate.h:37
ProtocolHierarchyDialog
Definition protocol_hierarchy_dialog.h:28
WiresharkDialog
Definition wireshark_dialog.h:35
filter_action.h
percent_bar_delegate.h
wireshark_dialog.h