Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
packet_dialog.h
1 /* packet_dialog.h
2  *
3  * Wireshark - Network traffic analyzer
4  * By Gerald Combs <gerald@wireshark.org>
5  * Copyright 1998 Gerald Combs
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  */
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 
18 #include <ui/qt/utils/field_information.h>
19 
20 class ByteViewTab;
21 class ProtoTree;
22 
23 namespace Ui {
24 class PacketDialog;
25 }
26 
28 {
29  Q_OBJECT
30 
31 public:
32  explicit PacketDialog(QWidget &parent, CaptureFile &cf, frame_data *fdata);
33  ~PacketDialog();
34 
35 private slots:
36  void on_buttonBox_helpRequested();
37 
38  void captureFileClosing();
39  void setHintText(FieldInformation *);
40 
41 private:
42  Ui::PacketDialog *ui;
43 
44  QString col_info_;
45  ProtoTree *proto_tree_;
46  ByteViewTab *byte_view_tab_;
47  epan_dissect_t edt_;
48  wtap_rec rec_;
49  guint8 *packet_data_;
50 };
51 
52 #endif // PACKET_DIALOG_H
53 
54 /*
55  * Editor modelines
56  *
57  * Local Variables:
58  * c-basic-offset: 4
59  * tab-width: 8
60  * indent-tabs-mode: nil
61  * End:
62  *
63  * ex: set shiftwidth=4 tabstop=8 expandtab:
64  * :indentSize=4:tabSize=8:noTabs=true:
65  */
Definition: field_information.h:21
Definition: ui_packet_dialog.h:78
Definition: ui_about_dialog.h:291
Definition: proto_tree.h:28
Definition: packet_dialog.h:27
Definition: frame_data.h:53
Definition: epan_dissect.h:28
Definition: wireshark_dialog.h:32
Definition: wtap.h:1274
Definition: capture_file.h:22
Definition: byte_view_tab.h:28