Kerberos: add kerberos_inject_longterm_key() helper function
[wireshark-sm.git] / ui / qt / packet_dialog.h
blobf616690e96a3fb73765753f2158158c6d89861d5
1 /** @file
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 */
10 #ifndef PACKET_DIALOG_H
11 #define PACKET_DIALOG_H
13 #include "wireshark_dialog.h"
15 #include "epan/epan_dissect.h"
16 #include "wiretap/wtap.h"
17 #include "wsutil/buffer.h"
19 #include <ui/qt/utils/field_information.h>
21 class ByteViewTab;
22 class ProtoTree;
24 namespace Ui {
25 class PacketDialog;
28 class PacketDialog : public WiresharkDialog
30 Q_OBJECT
32 public:
33 explicit PacketDialog(QWidget &parent, CaptureFile &cf, frame_data *fdata);
34 ~PacketDialog();
36 protected:
37 void captureFileClosing();
39 signals:
40 void showProtocolPreferences(const QString module_name);
41 void editProtocolPreference(struct preference *pref, struct pref_module *module);
43 private slots:
44 void on_buttonBox_helpRequested();
45 #if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
46 void viewVisibilityStateChanged(Qt::CheckState);
47 #else
48 void viewVisibilityStateChanged(int);
49 #endif
50 void layoutChanged(int);
52 void setHintText(FieldInformation *);
53 void setHintTextSelected(FieldInformation*);
55 private:
56 Ui::PacketDialog *ui;
58 pref_t *pref_packet_dialog_layout_;
59 QString col_info_;
60 ProtoTree *proto_tree_;
61 ByteViewTab *byte_view_tab_;
62 wtap_rec rec_;
63 Buffer buf_;
64 epan_dissect_t edt_;
67 #endif // PACKET_DIALOG_H