Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
frame_information.h
Go to the documentation of this file.
1
10#ifndef FRAME_INFORMATION_H_
11#define FRAME_INFORMATION_H_
12
13#include <config.h>
14
15#include <epan/proto.h>
16#include <epan/epan_dissect.h>
17#include "epan/epan.h"
18#include "epan/column.h"
19#include "epan/ftypes/ftypes.h"
20
21#include <ui/qt/capture_file.h>
22
23#include "data_printer.h"
24
25#include <QObject>
26
30class FrameInformation : public QObject, public IDataPrintable
31{
32 Q_OBJECT
33 Q_INTERFACES(IDataPrintable)
34
35public:
36
43 explicit FrameInformation(CaptureFile * cfile, frame_data * fi, QObject * parent = Q_NULLPTR);
44
48 virtual ~FrameInformation();
49
54 bool isValid();
55
60 frame_data * frameData() const;
61
66 int frameNum() const;
67
72 const QByteArray printableData();
73
74private:
75
77 frame_data * fi_;
78
80 CaptureFile * cap_file_;
81
83 epan_dissect_t * edt_;
84
86 wtap_rec rec_;
87
91 void loadFrameTree();
92
93};
94
95
96#endif // FRAME_INFORMATION_H_
Manages a capture file and its associated state and operations.
Definition capture_file.h:27
Provides printable data and dissection information for a single frame.
Definition frame_information.h:31
int frameNum() const
Retrieves the packet or frame number.
Definition frame_information.cpp:82
bool isValid()
Checks if the frame information is valid and fully loaded.
Definition frame_information.cpp:65
virtual ~FrameInformation()
Destroys the FrameInformation object.
Definition frame_information.cpp:56
frame_data * frameData() const
Retrieves the underlying frame data structure.
Definition frame_information.cpp:77
const QByteArray printableData()
Generates the printable data representation of the frame.
Definition frame_information.cpp:89
An interface for objects that can provide a printable data representation.
Definition idata_printable.h:26
DIAG_OFF_PEDANTIC struct _frame_data frame_data
Frame data structure.
Holds all state for the dissection of a single byte array, including session, buffer,...
Definition epan_dissect.h:28
Definition wtap.h:1540