Wireshark 4.5.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;
26
27namespace Ui {
29}
30
32{
33 Q_OBJECT
34
35public:
36 explicit ExportObjectDialog(QWidget &parent, CaptureFile &cf, register_eo_t* eo);
38
39public slots:
40 void show();
41
42protected:
43 virtual void keyPressEvent(QKeyEvent *evt);
44
45private slots:
46 void accept();
47 void captureEvent(CaptureEvent e);
48 void on_buttonBox_helpRequested();
49 void on_buttonBox_clicked(QAbstractButton *button);
50 void on_cmbContentType_currentIndexChanged(int index);
51
52 void modelDataChanged(const QModelIndex &topLeft, int from, int to);
53 void modelRowsReset();
54
55 void currentHasChanged(QModelIndex current);
56
57private:
58 bool mimeTypeIsPreviewable(QString mime_type);
59 void saveCurrentEntry(QString *tempFile = Q_NULLPTR);
60 void saveAllEntries();
61
62 Ui::ExportObjectDialog *eo_ui_;
63
64 QPushButton *save_bt_;
65 QPushButton *save_all_bt_;
66 ExportObjectModel model_;
67 ExportObjectProxyModel proxyModel_;
68
69 QStringList contentTypes;
70
71 void updateContentTypes();
72};
73
74#endif // EXPORT_OBJECT_DIALOG_H
Definition capture_event.h:21
Definition capture_file.h:21
Definition export_object_dialog.h:32
Definition export_objects_model.h:29
Definition export_objects_model.h:73
Definition wireshark_dialog.h:35
Definition export_object.c:19