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
21class PacketFormatGroupBox : public QGroupBox
22{
23 Q_OBJECT
24
25public:
30 explicit PacketFormatGroupBox(QWidget *parent = 0);
31
36 virtual bool isValid() const;
37
42 virtual void updatePrintArgs(print_args_t& print_args) = 0;
43
44signals:
49
50};
51
56{
57 Q_OBJECT
58
59public:
64 explicit PacketFormatBlankGroupBox(QWidget *parent = 0);
65
70 void updatePrintArgs(print_args_t& print_args) override;
71};
72
73namespace Ui {
75}
76
81{
82 Q_OBJECT
83
84public:
89 explicit PacketFormatTextGroupBox(QWidget *parent = 0);
90
95
100 bool isValid() const override;
101
106 void updatePrintArgs(print_args_t& print_args) override;
107
112 bool summaryEnabled() const;
113
118 bool detailsEnabled() const;
119
124 bool bytesEnabled() const;
125
130 bool includeColumnHeadingsEnabled() const;
131
136 bool allCollapsedEnabled() const;
137
142 bool asDisplayedEnabled() const;
143
148 bool allExpandedEnabled() const;
149
154 uint getHexdumpOptions() const;
155
156private slots:
161 void on_summaryCheckBox_toggled(bool checked);
162
167 void on_detailsCheckBox_toggled(bool checked);
168
173 void on_bytesCheckBox_toggled(bool checked);
174
179 void on_includeColumnHeadingsCheckBox_toggled(bool checked);
180
185 void on_allCollapsedButton_toggled(bool checked);
186
191 void on_asDisplayedButton_toggled(bool checked);
192
197 void on_allExpandedButton_toggled(bool checked);
198
203 void on_includeDataSourcesCheckBox_toggled(bool checked);
204
209 void on_timestampCheckBox_toggled(bool checked);
210
211private:
212 Ui::PacketFormatTextGroupBox *pf_ui_;
213};
214
215namespace Ui {
217}
218
223{
224 Q_OBJECT
225
226public:
231 explicit PacketFormatJSONGroupBox(QWidget *parent = 0);
232
237
242 bool isValid() const override;
243
248 void updatePrintArgs(print_args_t& print_args) override;
249
254 bool noDuplicateKeys();
255
256private:
261 bool valuesEnabled() const;
262
267 bool bytesEnabled() const;
268
269 Ui::PacketFormatJSONGroupBox *pf_ui_;
270};
271
272#endif // PACKET_FORMAT_GROUP_BOX_H
A blank packet format group box that provides default or empty formatting.
Definition packet_format_group_box.h:56
void updatePrintArgs(print_args_t &print_args) override
Updates the print arguments with the blank format settings.
Definition packet_format_group_box.cpp:42
Base group box for configuring packet export and print formats.
Definition packet_format_group_box.h:22
void formatChanged()
Signal emitted when the format configuration changes.
virtual void updatePrintArgs(print_args_t &print_args)=0
Updates the print arguments with the current format settings.
virtual bool isValid() const
Checks if the current format configuration is valid.
Definition packet_format_group_box.cpp:26
Group box for configuring JSON packet formatting options.
Definition packet_format_group_box.h:223
bool noDuplicateKeys()
Checks if duplicate keys are excluded from the JSON output.
Definition packet_format_group_box.cpp:232
~PacketFormatJSONGroupBox()
Destroys the PacketFormatJSONGroupBox.
Definition packet_format_group_box.cpp:227
bool isValid() const override
Checks if the JSON format configuration is valid.
Definition packet_format_group_box.cpp:247
void updatePrintArgs(print_args_t &print_args) override
Updates the print arguments with the JSON format settings.
Definition packet_format_group_box.cpp:255
Group box for configuring plain text packet formatting options.
Definition packet_format_group_box.h:81
bool bytesEnabled() const
Checks if the packet bytes option is enabled.
Definition packet_format_group_box.cpp:108
~PacketFormatTextGroupBox()
Destroys the PacketFormatTextGroupBox.
Definition packet_format_group_box.cpp:93
bool summaryEnabled() const
Checks if the packet summary option is enabled.
Definition packet_format_group_box.cpp:98
bool isValid() const override
Checks if the text format configuration is valid.
Definition packet_format_group_box.cpp:138
bool allCollapsedEnabled() const
Checks if the 'all collapsed' detail state is enabled.
Definition packet_format_group_box.cpp:118
void updatePrintArgs(print_args_t &print_args) override
Updates the print arguments with the text format settings.
Definition packet_format_group_box.cpp:146
bool includeColumnHeadingsEnabled() const
Checks if the column headings option is enabled.
Definition packet_format_group_box.cpp:113
bool asDisplayedEnabled() const
Checks if the 'as displayed' detail state is enabled.
Definition packet_format_group_box.cpp:123
bool allExpandedEnabled() const
Checks if the 'all expanded' detail state is enabled.
Definition packet_format_group_box.cpp:128
uint getHexdumpOptions() const
Retrieves the current hexdump formatting options.
Definition packet_format_group_box.cpp:133
bool detailsEnabled() const
Checks if the packet details option is enabled.
Definition packet_format_group_box.cpp:103
Aggregates all options controlling a single print or export operation.
Definition file.h:476