2015-02-11 23:00:27 +00:00
|
|
|
/* packet_dialog.h
|
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
2018-04-30 07:47:58 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
2015-02-11 23:00:27 +00:00
|
|
|
|
|
|
|
#ifndef PACKET_DIALOG_H
|
|
|
|
#define PACKET_DIALOG_H
|
|
|
|
|
|
|
|
#include "wireshark_dialog.h"
|
|
|
|
|
|
|
|
#include "epan/epan_dissect.h"
|
|
|
|
#include "wiretap/wtap.h"
|
2019-04-11 22:08:23 +00:00
|
|
|
#include "wsutil/buffer.h"
|
2015-02-11 23:00:27 +00:00
|
|
|
|
2017-10-30 12:58:28 +00:00
|
|
|
#include <ui/qt/utils/field_information.h>
|
|
|
|
|
2015-02-11 23:00:27 +00:00
|
|
|
class ByteViewTab;
|
|
|
|
class ProtoTree;
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class PacketDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class PacketDialog : public WiresharkDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2015-03-02 04:01:17 +00:00
|
|
|
explicit PacketDialog(QWidget &parent, CaptureFile &cf, frame_data *fdata);
|
2015-02-11 23:00:27 +00:00
|
|
|
~PacketDialog();
|
|
|
|
|
2021-01-10 20:57:47 +00:00
|
|
|
protected:
|
|
|
|
void captureFileClosing();
|
|
|
|
|
2019-07-28 19:24:24 +00:00
|
|
|
signals:
|
|
|
|
void showProtocolPreferences(const QString module_name);
|
|
|
|
void editProtocolPreference(struct preference *pref, struct pref_module *module);
|
|
|
|
|
2015-02-11 23:00:27 +00:00
|
|
|
private slots:
|
|
|
|
void on_buttonBox_helpRequested();
|
|
|
|
|
2017-10-30 12:58:28 +00:00
|
|
|
void setHintText(FieldInformation *);
|
|
|
|
|
2015-02-11 23:00:27 +00:00
|
|
|
private:
|
|
|
|
Ui::PacketDialog *ui;
|
|
|
|
|
|
|
|
QString col_info_;
|
|
|
|
ProtoTree *proto_tree_;
|
|
|
|
ByteViewTab *byte_view_tab_;
|
2018-02-09 00:19:12 +00:00
|
|
|
wtap_rec rec_;
|
2019-04-11 22:08:23 +00:00
|
|
|
Buffer buf_;
|
|
|
|
epan_dissect_t edt_;
|
2015-02-11 23:00:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PACKET_DIALOG_H
|