| 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
21 class PacketFormatGroupBox : public QGroupBox
22{
23 Q_OBJECT
24
25 public:
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:
48 void formatChanged();
49
50};
51
55 class PacketFormatBlankGroupBox : public PacketFormatGroupBox
56{
57 Q_OBJECT
58
59 public:
64 explicit PacketFormatBlankGroupBox(QWidget *parent = 0);
65
70 void updatePrintArgs(print_args_t& print_args) override;
71};
72
73 namespace Ui {
74 class PacketFormatTextGroupBox;
75}
76
80 class PacketFormatTextGroupBox : public PacketFormatGroupBox
81{
82 Q_OBJECT
83
84 public:
89 explicit PacketFormatTextGroupBox(QWidget *parent = 0);
90
94 ~PacketFormatTextGroupBox();
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
156 private 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
211 private:
212 Ui::PacketFormatTextGroupBox *pf_ui_;
213};
214
215 namespace Ui {
216 class PacketFormatJSONGroupBox;
217}
218
222 class PacketFormatJSONGroupBox : public PacketFormatGroupBox
223{
224 Q_OBJECT
225
226 public:
231 explicit PacketFormatJSONGroupBox(QWidget *parent = 0);
232
236 ~PacketFormatJSONGroupBox();
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
262 private:
267 bool valuesEnabled() const;
268
273 bool bytesEnabled() const;
274
275 Ui::PacketFormatJSONGroupBox *pf_ui_;
276};
277
278 namespace Ui {
279 class PacketFormatCSVGroupBox;
280}
281
285 class PacketFormatCSVGroupBox : public PacketFormatGroupBox
286{
287 Q_OBJECT
288
289 public:
294 explicit PacketFormatCSVGroupBox(QWidget *parent = 0);
295
299 ~PacketFormatCSVGroupBox();
300
305 bool isValid() const override;
306
311 void updatePrintArgs(print_args_t& print_args) override;
312
313 protected slots:
314 void utf8Toggled(bool checked);
315
316 private:
321 bool UTF8Enabled() const;
322
327 bool escapeWSP() const;
328
333 bool printBOM() const;
334
335 Ui::PacketFormatCSVGroupBox *pf_ui_;
336};
337
338 namespace Ui {
339 class PacketFormatCArraysGroupBox;
340}
341
345 class PacketFormatCArraysGroupBox : public PacketFormatGroupBox
346{
347 Q_OBJECT
348
349 public:
354 explicit PacketFormatCArraysGroupBox(QWidget *parent = 0);
355
359 ~PacketFormatCArraysGroupBox();
360
365 bool isValid() const override;
366
371 void updatePrintArgs(print_args_t& print_args) override;
372
373 private:
378 bool printSecondaryDataSources() const;
379
384 bool printIndex() const;
385
386 Ui::PacketFormatCArraysGroupBox *pf_ui_;
387};
388
389#endif // PACKET_FORMAT_GROUP_BOX_H
PacketFormatBlankGroupBox::updatePrintArgs
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::PacketFormatBlankGroupBox
PacketFormatBlankGroupBox(QWidget *parent=0)
Constructs a PacketFormatBlankGroupBox.
Definition packet_format_group_box.cpp:33
PacketFormatCArraysGroupBox
Group box for configuring CSV packet formatting options.
Definition packet_format_group_box.h:346
PacketFormatCArraysGroupBox::PacketFormatCArraysGroupBox
PacketFormatCArraysGroupBox(QWidget *parent=0)
Constructs a PacketFormatCArraysGroupBox.
Definition packet_format_group_box.cpp:340
PacketFormatCArraysGroupBox::isValid
bool isValid() const override
Checks if the C Arrays format configuration is valid.
Definition packet_format_group_box.cpp:365
PacketFormatCArraysGroupBox::~PacketFormatCArraysGroupBox
~PacketFormatCArraysGroupBox()
Destroys the PacketFormatCArraysGroupBox.
Definition packet_format_group_box.cpp:350
PacketFormatCArraysGroupBox::updatePrintArgs
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
PacketFormatCSVGroupBox
Group box for configuring CSV packet formatting options.
Definition packet_format_group_box.h:286
PacketFormatCSVGroupBox::~PacketFormatCSVGroupBox
~PacketFormatCSVGroupBox()
Destroys the PacketFormatCSVGroupBox.
Definition packet_format_group_box.cpp:302
PacketFormatCSVGroupBox::updatePrintArgs
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::PacketFormatCSVGroupBox
PacketFormatCSVGroupBox(QWidget *parent=0)
Constructs a PacketFormatCSVGroupBox.
Definition packet_format_group_box.cpp:272
PacketFormatCSVGroupBox::isValid
bool isValid() const override
Checks if the CSV format configuration is valid.
Definition packet_format_group_box.cpp:328
PacketFormatGroupBox::PacketFormatGroupBox
PacketFormatGroupBox(QWidget *parent=0)
Constructs a PacketFormatGroupBox.
Definition packet_format_group_box.cpp:22
PacketFormatGroupBox::formatChanged
void formatChanged()
Signal emitted when the format configuration changes.
PacketFormatGroupBox::updatePrintArgs
virtual void updatePrintArgs(print_args_t &print_args)=0
Updates the print arguments with the current format settings.
PacketFormatGroupBox::isValid
virtual bool isValid() const
Checks if the current format configuration is valid.
Definition packet_format_group_box.cpp:28
PacketFormatJSONGroupBox
Group box for configuring JSON packet formatting options.
Definition packet_format_group_box.h:223
PacketFormatJSONGroupBox::noDuplicateKeys
bool noDuplicateKeys()
Checks if duplicate keys are excluded from the JSON output.
Definition packet_format_group_box.cpp:235
PacketFormatJSONGroupBox::~PacketFormatJSONGroupBox
~PacketFormatJSONGroupBox()
Destroys the PacketFormatJSONGroupBox.
Definition packet_format_group_box.cpp:230
PacketFormatJSONGroupBox::jsonCompact
bool jsonCompact()
Checks if compact JSON output is enabled.
Definition packet_format_group_box.cpp:240
PacketFormatJSONGroupBox::isValid
bool isValid() const override
Checks if the JSON format configuration is valid.
Definition packet_format_group_box.cpp:255
PacketFormatJSONGroupBox::PacketFormatJSONGroupBox
PacketFormatJSONGroupBox(QWidget *parent=0)
Constructs a PacketFormatJSONGroupBox.
Definition packet_format_group_box.cpp:218
PacketFormatJSONGroupBox::updatePrintArgs
void updatePrintArgs(print_args_t &print_args) override
Updates the print arguments with the JSON format settings.
Definition packet_format_group_box.cpp:263
PacketFormatTextGroupBox
Group box for configuring plain text packet formatting options.
Definition packet_format_group_box.h:81
PacketFormatTextGroupBox::bytesEnabled
bool bytesEnabled() const
Checks if the packet bytes option is enabled.
Definition packet_format_group_box.cpp:110
PacketFormatTextGroupBox::PacketFormatTextGroupBox
PacketFormatTextGroupBox(QWidget *parent=0)
Constructs a PacketFormatTextGroupBox.
Definition packet_format_group_box.cpp:48
PacketFormatTextGroupBox::~PacketFormatTextGroupBox
~PacketFormatTextGroupBox()
Destroys the PacketFormatTextGroupBox.
Definition packet_format_group_box.cpp:95
PacketFormatTextGroupBox::summaryEnabled
bool summaryEnabled() const
Checks if the packet summary option is enabled.
Definition packet_format_group_box.cpp:100
PacketFormatTextGroupBox::isValid
bool isValid() const override
Checks if the text format configuration is valid.
Definition packet_format_group_box.cpp:140
PacketFormatTextGroupBox::allCollapsedEnabled
bool allCollapsedEnabled() const
Checks if the 'all collapsed' detail state is enabled.
Definition packet_format_group_box.cpp:120
PacketFormatTextGroupBox::updatePrintArgs
void updatePrintArgs(print_args_t &print_args) override
Updates the print arguments with the text format settings.
Definition packet_format_group_box.cpp:148
PacketFormatTextGroupBox::includeColumnHeadingsEnabled
bool includeColumnHeadingsEnabled() const
Checks if the column headings option is enabled.
Definition packet_format_group_box.cpp:115
PacketFormatTextGroupBox::asDisplayedEnabled
bool asDisplayedEnabled() const
Checks if the 'as displayed' detail state is enabled.
Definition packet_format_group_box.cpp:125
PacketFormatTextGroupBox::allExpandedEnabled
bool allExpandedEnabled() const
Checks if the 'all expanded' detail state is enabled.
Definition packet_format_group_box.cpp:130
PacketFormatTextGroupBox::getHexdumpOptions
uint getHexdumpOptions() const
Retrieves the current hexdump formatting options.
Definition packet_format_group_box.cpp:135
PacketFormatTextGroupBox::detailsEnabled
bool detailsEnabled() const
Checks if the packet details option is enabled.
Definition packet_format_group_box.cpp:105
file.h
print_args_t
Aggregates all options controlling a single print or export operation.
Definition file.h:476