3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
10 #ifndef EXPORT_OBJECT_DIALOG_H
11 #define EXPORT_OBJECT_DIALOG_H
17 #include <ui/qt/models/export_objects_model.h>
18 #include <ui/qt/widgets/export_objects_view.h>
20 #include "wireshark_dialog.h"
24 class QTreeWidgetItem
;
25 class QAbstractButton
;
28 class ExportObjectDialog
;
31 class ExportObjectDialog
: public WiresharkDialog
36 explicit ExportObjectDialog(QWidget
&parent
, CaptureFile
&cf
, register_eo_t
* eo
);
37 ~ExportObjectDialog();
43 virtual void keyPressEvent(QKeyEvent
*evt
);
47 void captureEvent(CaptureEvent e
);
48 void on_buttonBox_helpRequested();
49 void on_buttonBox_clicked(QAbstractButton
*button
);
50 void on_cmbContentType_currentIndexChanged(int index
);
52 void modelDataChanged(const QModelIndex
&topLeft
, int from
, int to
);
53 void modelRowsReset();
55 void currentHasChanged(QModelIndex current
);
58 bool mimeTypeIsPreviewable(QString mime_type
);
59 void saveCurrentEntry(QString
*tempFile
= Q_NULLPTR
);
60 void saveAllEntries();
62 Ui::ExportObjectDialog
*eo_ui_
;
64 QPushButton
*save_bt_
;
65 QPushButton
*save_all_bt_
;
66 ExportObjectModel model_
;
67 ExportObjectProxyModel proxyModel_
;
69 QStringList contentTypes
;
71 void updateContentTypes();
74 #endif // EXPORT_OBJECT_DIALOG_H