Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
export_object_dialog.h
Go to the documentation of this file.
1
10#ifndef EXPORT_OBJECT_DIALOG_H
11#define EXPORT_OBJECT_DIALOG_H
12
13#include <config.h>
14
15#include <file.h>
16
19
20#include "wireshark_dialog.h"
21
22#include <QKeyEvent>
23
24class QTreeWidgetItem;
25class QAbstractButton;
26class QToolButton;
27
28namespace Ui {
30}
31
36{
37 Q_OBJECT
38
39public:
46 explicit ExportObjectDialog(QWidget &parent, CaptureFile &cf, register_eo_t* eo);
47
52
53public slots:
57 void show();
58
59protected:
63 void beginRetapPackets() override;
64
68 void endRetapPackets() override;
69
74 virtual void keyPressEvent(QKeyEvent *evt) override;
75
76private slots:
80 void accept() override;
81
86 void captureEvent(CaptureEvent e);
87
91 void on_buttonBox_helpRequested();
92
97 void on_buttonBox_clicked(QAbstractButton *button);
98
103 void on_cmbContentType_currentIndexChanged(int index);
104
109 void uniqueToggled(bool checked);
110
117 void modelDataChanged(const QModelIndex &topLeft, int from, int to);
118
122 void modelRowsReset();
123
128 void currentHasChanged(const QModelIndex &current);
129
133 void selectionHasChanged(const QItemSelection&);
134
135private:
141 bool mimeTypeIsPreviewable(QString mime_type);
142
148 void saveEntry(const QModelIndex &proxyIndex, QString *tempFile = nullptr);
149
154 void saveEntries(const QModelIndexList &proxyIndices);
155
160 void saveCurrentEntry(QString *tempFile = Q_NULLPTR);
161
165 void saveSelectedEntries();
166
170 void saveDisplayedEntries();
171
175 void saveAllEntries();
176
178 Ui::ExportObjectDialog *eo_ui_;
179
181 QPushButton *save_bt_;
182
184 QToolButton *save_all_bt_;
185
187 ExportObjectModel model_;
188
190 ExportObjectProxyModel proxyModel_;
191
193 QStringList contentTypes;
194
198 void updateContentTypes();
199};
200
201#endif // EXPORT_OBJECT_DIALOG_H
Represents an event occurring during a capture or file operation.
Definition capture_event.h:24
Manages a capture file and its associated state and operations.
Definition capture_file.h:27
A dialog window for exporting specific types of objects from a capture file.
Definition export_object_dialog.h:36
virtual void keyPressEvent(QKeyEvent *evt) override
Handles key press events for the dialog.
Definition export_object_dialog.cpp:216
void endRetapPackets() override
Finishes retap by cleaning up resources.
Definition export_object_dialog.cpp:206
void beginRetapPackets() override
Marks the beginning of a retap operation for packets.
Definition export_object_dialog.cpp:200
void show()
Displays the export object dialog.
Definition export_object_dialog.cpp:186
~ExportObjectDialog()
Destroys the ExportObjectDialog.
Definition export_object_dialog.cpp:101
A table model managing a list of exportable objects extracted from network traffic.
Definition export_objects_model.h:89
A proxy model used for sorting and filtering export objects.
Definition export_objects_model.h:238
Base class for Wireshark specific dialogs that require interaction with a CaptureFile.
Definition wireshark_dialog.h:38
Definition export_object.c:19