| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
packet_format_stack.h
Go to the documentation of this file.
1
9
10
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
23 class PacketFormatStack : public QStackedWidget
24{
25 Q_OBJECT
26
27 public:
32 explicit PacketFormatStack(QWidget *parent = 0);
33
37 ~PacketFormatStack();
38
43 void setExportType(export_type_e type);
44
49 bool isValid() const;
50
55 void updatePrintArgs(print_args_t& print_args);
56
57signals:
61 void formatChanged();
62
63 private:
65 QMap<export_type_e, int> export_type_map_;
66
68 int blank_idx_;
69};
70
71#endif // PACKET_FORMAT_STACK_H
PacketFormatStack::formatChanged
void formatChanged()
Signal emitted when the formatting configuration changes.
PacketFormatStack::isValid
bool isValid() const
Checks if the currently selected packet format configuration is valid.
Definition packet_format_stack.cpp:41
PacketFormatStack::setExportType
void setExportType(export_type_e type)
Sets the current export type, updating the displayed stack widget accordingly.
Definition packet_format_stack.cpp:49
PacketFormatStack::~PacketFormatStack
~PacketFormatStack()
Destroys the PacketFormatStack.
Definition packet_format_stack.cpp:37
PacketFormatStack::updatePrintArgs
void updatePrintArgs(print_args_t &print_args)
Updates the provided print arguments with the user's formatting selections.
Definition packet_format_stack.cpp:54
PacketFormatStack::PacketFormatStack
PacketFormatStack(QWidget *parent=0)
Constructs a new PacketFormatStack.
Definition packet_format_stack.cpp:15
file.h
file_dialog.h
export_type_e
export_type_e
Output format for packet data export operations.
Definition file_dialog.h:32
print_args_t
Aggregates all options controlling a single print or export operation.
Definition file.h:476