Wireshark  4.3.0
The Wireshark network protocol analyzer
packet_dialog.h
Go to the documentation of this file.
1 
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 
21 class ByteViewTab;
22 class ProtoTree;
23 
24 namespace Ui {
25 class PacketDialog;
26 }
27 
29 {
30  Q_OBJECT
31 
32 public:
33  explicit PacketDialog(QWidget &parent, CaptureFile &cf, frame_data *fdata);
34  ~PacketDialog();
35 
36 protected:
37  void captureFileClosing();
38 
39 signals:
40  void showProtocolPreferences(const QString module_name);
41  void editProtocolPreference(struct preference *pref, struct pref_module *module);
42 
43 private slots:
44  void on_buttonBox_helpRequested();
45  void viewVisibilityStateChanged(int);
46  void layoutChanged(int);
47 
48  void setHintText(FieldInformation *);
49  void setHintTextSelected(FieldInformation*);
50 
51 private:
52  Ui::PacketDialog *ui;
53 
54  pref_t *pref_packet_dialog_layout_;
55  QString col_info_;
56  ProtoTree *proto_tree_;
57  ByteViewTab *byte_view_tab_;
58  wtap_rec rec_;
59  Buffer buf_;
60  epan_dissect_t edt_;
61 };
62 
63 #endif // PACKET_DIALOG_H
Definition: byte_view_tab.h:29
Definition: capture_file.h:21
Definition: field_information.h:23
Definition: packet_dialog.h:29
void captureFileClosing()
Called when the capture file is about to close. This can be used to disconnect taps and similar actio...
Definition: packet_dialog.cpp:175
Definition: proto_tree.h:29
Definition: wireshark_dialog.h:35
Definition: buffer.h:22
Definition: epan_dissect.h:28
Definition: prefs-int.h:27
Definition: prefs.c:225
Definition: wtap.h:1395