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 
47  void setHintText(FieldInformation *);
48  void setHintTextSelected(FieldInformation*);
49 
50 private:
51  Ui::PacketDialog *ui;
52 
53  QString col_info_;
54  ProtoTree *proto_tree_;
55  ByteViewTab *byte_view_tab_;
56  wtap_rec rec_;
57  Buffer buf_;
58  epan_dissect_t edt_;
59 };
60 
61 #endif // PACKET_DIALOG_H
Definition: byte_view_tab.h:29
Definition: capture_file.h:23
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:131
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:200
Definition: wtap.h:1394