| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
packet_format_group_box.h
Go to the documentation of this file.
1
11#ifndef PACKET_FORMAT_GROUP_BOX_H
12#define PACKET_FORMAT_GROUP_BOX_H
13
14#include "file.h"
15
16#include <QGroupBox>
17
18 class PacketFormatGroupBox : public QGroupBox
19{
20 Q_OBJECT
21
22 public:
23 explicit PacketFormatGroupBox(QWidget *parent = 0);
24
25 virtual bool isValid() const;
26 virtual void updatePrintArgs(print_args_t& print_args) = 0;
27
28signals:
29 void formatChanged();
30
31};
32
33 class PacketFormatBlankGroupBox : public PacketFormatGroupBox
34{
35 Q_OBJECT
36
37 public:
38 explicit PacketFormatBlankGroupBox(QWidget *parent = 0);
39
40 void updatePrintArgs(print_args_t& print_args) override;
41};
42
43 namespace Ui {
44 class PacketFormatTextGroupBox;
45}
46
47 class PacketFormatTextGroupBox : public PacketFormatGroupBox
48{
49 Q_OBJECT
50
51 public:
52 explicit PacketFormatTextGroupBox(QWidget *parent = 0);
53 ~PacketFormatTextGroupBox();
54
55 bool isValid() const override;
56 void updatePrintArgs(print_args_t& print_args) override;
57
58 bool summaryEnabled() const;
59 bool detailsEnabled() const;
60 bool bytesEnabled() const;
61
62 bool includeColumnHeadingsEnabled() const;
63
64 bool allCollapsedEnabled() const;
65 bool asDisplayedEnabled() const;
66 bool allExpandedEnabled() const;
67
68 uint getHexdumpOptions() const;
69
70 private slots:
71 void on_summaryCheckBox_toggled(bool checked);
72 void on_detailsCheckBox_toggled(bool checked);
73 void on_bytesCheckBox_toggled(bool checked);
74
75 void on_includeColumnHeadingsCheckBox_toggled(bool checked);
76
77 void on_allCollapsedButton_toggled(bool checked);
78 void on_asDisplayedButton_toggled(bool checked);
79 void on_allExpandedButton_toggled(bool checked);
80
81 void on_includeDataSourcesCheckBox_toggled(bool checked);
82 void on_timestampCheckBox_toggled(bool checked);
83
84 private:
85 Ui::PacketFormatTextGroupBox *pf_ui_;
86};
87
88 namespace Ui {
89 class PacketFormatJSONGroupBox;
90}
91
92 class PacketFormatJSONGroupBox : public PacketFormatGroupBox
93{
94 Q_OBJECT
95
96 public:
97 explicit PacketFormatJSONGroupBox(QWidget *parent = 0);
98 ~PacketFormatJSONGroupBox();
99
100 bool isValid() const override;
101 void updatePrintArgs(print_args_t& print_args) override;
102 bool noDuplicateKeys();
103
104 private:
105 bool valuesEnabled() const;
106 bool bytesEnabled() const;
107
108 Ui::PacketFormatJSONGroupBox *pf_ui_;
109};
110
111#endif // PACKET_FORMAT_GROUP_BOX_H
PacketFormatBlankGroupBox
Definition packet_format_group_box.h:34
PacketFormatGroupBox
Definition packet_format_group_box.h:19
PacketFormatJSONGroupBox
Definition packet_format_group_box.h:93
PacketFormatTextGroupBox
Definition packet_format_group_box.h:48
file.h
print_args_t
Definition file.h:443