Wireshark 4.7.3
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
packet_dialog.h
Go to the documentation of this file.
1
9
10#ifndef PACKET_DIALOG_H
11#define PACKET_DIALOG_H
12
13#include "wireshark_dialog.h"
14
15#include "epan/epan_dissect.h"
16#include "wiretap/wtap.h"
17#include "wsutil/buffer.h"
18
20
21class DataSourceTab;
22class InPacketFindBar;
23class ProtoTree;
24
25namespace Ui {
26class PacketDialog;
27}
28
33{
34 Q_OBJECT
35
36public:
43 explicit PacketDialog(QWidget &parent, CaptureFile &cf, frame_data *fdata);
44
49
54
55protected:
59 void captureFileClosing() override;
60
61signals:
66 void showProtocolPreferences(const QString module_name);
67
73 void editProtocolPreference(pref_t *pref, module_t *module);
74
75private slots:
76 void findInPacketCheckBoxToggled(bool checked);
77 void syncFindInPacketCheckBox(bool open);
78
82 void on_buttonBox_helpRequested();
83
84#if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
89 void viewVisibilityStateChanged(Qt::CheckState state);
90#else
95 void viewVisibilityStateChanged(int state);
96#endif
97
101 void layoutChanged(int);
102
107 void setHintText(FieldInformation *finfo);
108
113 void setHintTextSelected(FieldInformation *finfo);
114
115private:
116 void setFindInPacketBarOpen(bool open);
117
119 Ui::PacketDialog *ui;
120
122 pref_t *pref_packet_dialog_layout_;
123
125 QString col_info_;
126
128 ProtoTree *proto_tree_;
129
131 InPacketFindBar *in_packet_find_bar_;
132
134 DataSourceTab *data_source_tab_;
135
137 wtap_rec rec_;
138
140 epan_dissect_t edt_;
141};
142
143#endif // PACKET_DIALOG_H
Manages a capture file and its associated state and operations.
Definition capture_file.h:27
A tab widget that manages and displays different data sources for a packet (e.g., Hex,...
Definition data_source_tab.h:36
Represents information about a dissected packet field.
Definition field_information.h:26
Find bar widget for the single-packet dialog only.
Definition in_packet_find_bar.h:32
void captureFileClosing() override
Called when the capture file is closing.
Definition packet_dialog.cpp:218
void showProtocolPreferences(const QString module_name)
Signal emitted to show preferences for a protocol.
void editProtocolPreference(pref_t *pref, module_t *module)
Signal emitted to edit a specific protocol preference.
void toggleFindInPacketBar()
Toggles the in-packet find bar visibility.
Definition packet_dialog.cpp:180
PacketDialog(QWidget &parent, CaptureFile &cf, frame_data *fdata)
Constructs a new PacketDialog object.
Definition packet_dialog.cpp:40
~PacketDialog()
Destroys the PacketDialog object.
Definition packet_dialog.cpp:211
A tree view for displaying protocol dissection details.
Definition proto_tree.h:30
WiresharkDialog(QWidget &parent, CaptureFile &capture_file)
Constructs a new WiresharkDialog object.
Definition wireshark_dialog.cpp:30
struct epan_dissect epan_dissect_t
Opaque type representing a single packet dissection context.
Definition epan.h:62
DIAG_OFF_PEDANTIC struct _frame_data frame_data
Frame data structure.
Represents a single capture record read from or written to a capture file, regardless of record type.
Definition wtap.h:1599