Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
packet_format_stack.h
Go to the documentation of this file.
1
11#ifndef PACKET_FORMAT_STACK_H
12#define PACKET_FORMAT_STACK_H
13
14#include "file.h"
15#include "ui/file_dialog.h"
16
17#include <QStackedWidget>
18#include <QMap>
19
23class PacketFormatStack : public QStackedWidget
24{
25 Q_OBJECT
26
27public:
32 explicit PacketFormatStack(QWidget *parent = 0);
33
38
44
49 bool isValid() const;
50
55 void updatePrintArgs(print_args_t& print_args);
56
57signals:
62
63private:
65 QMap<export_type_e, int> export_type_map_;
66
68 int blank_idx_;
69};
70
71#endif // PACKET_FORMAT_STACK_H
A stacked widget that manages and displays different packet formatting UI elements based on export ty...
Definition packet_format_stack.h:24
void formatChanged()
Signal emitted when the formatting configuration changes.
bool isValid() const
Checks if the currently selected packet format configuration is valid.
Definition packet_format_stack.cpp:35
void setExportType(export_type_e type)
Sets the current export type, updating the displayed stack widget accordingly.
Definition packet_format_stack.cpp:43
~PacketFormatStack()
Destroys the PacketFormatStack.
Definition packet_format_stack.cpp:31
void updatePrintArgs(print_args_t &print_args)
Updates the provided print arguments with the user's formatting selections.
Definition packet_format_stack.cpp:48
export_type_e
Output format for packet data export operations.
Definition file_dialog.h:32
Aggregates all options controlling a single print or export operation.
Definition file.h:476