Wireshark 4.7.3
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
packet_format_group_box.h
Go to the documentation of this file.
1
9
10
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
260 bool jsonCompact();
261
262private:
267 bool valuesEnabled() const;
268
273 bool bytesEnabled() const;
274
275 Ui::PacketFormatJSONGroupBox *pf_ui_;
276};
277
278namespace Ui {
280}
281
286{
287 Q_OBJECT
288
289public:
294 explicit PacketFormatCSVGroupBox(QWidget *parent = 0);
295
300
305 bool isValid() const override;
306
311 void updatePrintArgs(print_args_t& print_args) override;
312
313protected slots:
314 void utf8Toggled(bool checked);
315
316private:
321 bool UTF8Enabled() const;
322
327 bool escapeWSP() const;
328
333 bool printBOM() const;
334
335 Ui::PacketFormatCSVGroupBox *pf_ui_;
336};
337
338namespace Ui {
340}
341
346{
347 Q_OBJECT
348
349public:
354 explicit PacketFormatCArraysGroupBox(QWidget *parent = 0);
355
360
365 bool isValid() const override;
366
371 void updatePrintArgs(print_args_t& print_args) override;
372
373private:
378 bool printSecondaryDataSources() const;
379
384 bool printIndex() const;
385
386 Ui::PacketFormatCArraysGroupBox *pf_ui_;
387};
388
389#endif // PACKET_FORMAT_GROUP_BOX_H
void updatePrintArgs(print_args_t &print_args) override
Updates the print arguments with the blank format settings.
Definition packet_format_group_box.cpp:44
PacketFormatBlankGroupBox(QWidget *parent=0)
Constructs a PacketFormatBlankGroupBox.
Definition packet_format_group_box.cpp:33
Group box for configuring CSV packet formatting options.
Definition packet_format_group_box.h:346
PacketFormatCArraysGroupBox(QWidget *parent=0)
Constructs a PacketFormatCArraysGroupBox.
Definition packet_format_group_box.cpp:340
bool isValid() const override
Checks if the C Arrays format configuration is valid.
Definition packet_format_group_box.cpp:365
~PacketFormatCArraysGroupBox()
Destroys the PacketFormatCArraysGroupBox.
Definition packet_format_group_box.cpp:350
void updatePrintArgs(print_args_t &print_args) override
Updates the print arguments with the C Arrays format settings.
Definition packet_format_group_box.cpp:370
Group box for configuring CSV packet formatting options.
Definition packet_format_group_box.h:286
~PacketFormatCSVGroupBox()
Destroys the PacketFormatCSVGroupBox.
Definition packet_format_group_box.cpp:302
void updatePrintArgs(print_args_t &print_args) override
Updates the print arguments with the CSV format settings.
Definition packet_format_group_box.cpp:333
PacketFormatCSVGroupBox(QWidget *parent=0)
Constructs a PacketFormatCSVGroupBox.
Definition packet_format_group_box.cpp:272
bool isValid() const override
Checks if the CSV format configuration is valid.
Definition packet_format_group_box.cpp:328
PacketFormatGroupBox(QWidget *parent=0)
Constructs a PacketFormatGroupBox.
Definition packet_format_group_box.cpp: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:28
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:235
~PacketFormatJSONGroupBox()
Destroys the PacketFormatJSONGroupBox.
Definition packet_format_group_box.cpp:230
bool jsonCompact()
Checks if compact JSON output is enabled.
Definition packet_format_group_box.cpp:240
bool isValid() const override
Checks if the JSON format configuration is valid.
Definition packet_format_group_box.cpp:255
PacketFormatJSONGroupBox(QWidget *parent=0)
Constructs a PacketFormatJSONGroupBox.
Definition packet_format_group_box.cpp:218
void updatePrintArgs(print_args_t &print_args) override
Updates the print arguments with the JSON format settings.
Definition packet_format_group_box.cpp:263
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:110
PacketFormatTextGroupBox(QWidget *parent=0)
Constructs a PacketFormatTextGroupBox.
Definition packet_format_group_box.cpp:48
~PacketFormatTextGroupBox()
Destroys the PacketFormatTextGroupBox.
Definition packet_format_group_box.cpp:95
bool summaryEnabled() const
Checks if the packet summary option is enabled.
Definition packet_format_group_box.cpp:100
bool isValid() const override
Checks if the text format configuration is valid.
Definition packet_format_group_box.cpp:140
bool allCollapsedEnabled() const
Checks if the 'all collapsed' detail state is enabled.
Definition packet_format_group_box.cpp:120
void updatePrintArgs(print_args_t &print_args) override
Updates the print arguments with the text format settings.
Definition packet_format_group_box.cpp:148
bool includeColumnHeadingsEnabled() const
Checks if the column headings option is enabled.
Definition packet_format_group_box.cpp:115
bool asDisplayedEnabled() const
Checks if the 'as displayed' detail state is enabled.
Definition packet_format_group_box.cpp:125
bool allExpandedEnabled() const
Checks if the 'all expanded' detail state is enabled.
Definition packet_format_group_box.cpp:130
uint getHexdumpOptions() const
Retrieves the current hexdump formatting options.
Definition packet_format_group_box.cpp:135
bool detailsEnabled() const
Checks if the packet details option is enabled.
Definition packet_format_group_box.cpp:105
Aggregates all options controlling a single print or export operation.
Definition file.h:476