Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
frame_information.h
1 /* frame_information.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 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 
27 class FrameInformation : public QObject, public IDataPrintable
28 {
29  Q_OBJECT
30  Q_INTERFACES(IDataPrintable)
31 
32 public:
33 
34  explicit FrameInformation(CaptureFile * cfile, frame_data * fi, QObject * parent = Q_NULLPTR);
35  virtual ~FrameInformation();
36 
37  bool isValid();
38 
39  frame_data * frameData() const;
40  int frameNum() const;
41 
42  const QByteArray printableData();
43 
44 private:
45 
46  frame_data * fi_;
47  CaptureFile * cap_file_;
48  guint8 *packet_data_;
49  epan_dissect_t edt_;
50 
51  void loadFrameTree();
52 
53 };
54 
55 
56 #endif // FRAME_INFORMATION_H_
57 
58 /*
59  * Editor modelines
60  *
61  * Local Variables:
62  * c-basic-offset: 4
63  * tab-width: 8
64  * indent-tabs-mode: nil
65  * End:
66  *
67  * ex: set shiftwidth=4 tabstop=8 expandtab:
68  * :indentSize=4:tabSize=8:noTabs=true:
69  */
Definition: idata_printable.h:22
Definition: frame_data.h:53
Definition: epan_dissect.h:28
Definition: capture_file.h:22
Definition: frame_information.h:27