TODO netlogon_user_flags_ntlmv2_enabled
[wireshark-sm.git] / ui / qt / export_object_dialog.h
blob1dc12644fbc7e6753b520c207d8617b39782cd69
1 /** @file
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
8 */
10 #ifndef EXPORT_OBJECT_DIALOG_H
11 #define EXPORT_OBJECT_DIALOG_H
13 #include <config.h>
15 #include <file.h>
17 #include <ui/qt/models/export_objects_model.h>
18 #include <ui/qt/widgets/export_objects_view.h>
20 #include "wireshark_dialog.h"
22 #include <QKeyEvent>
24 class QTreeWidgetItem;
25 class QAbstractButton;
27 namespace Ui {
28 class ExportObjectDialog;
31 class ExportObjectDialog : public WiresharkDialog
33 Q_OBJECT
35 public:
36 explicit ExportObjectDialog(QWidget &parent, CaptureFile &cf, register_eo_t* eo);
37 ~ExportObjectDialog();
39 public slots:
40 void show();
42 protected:
43 virtual void keyPressEvent(QKeyEvent *evt);
45 private 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);
52 void modelDataChanged(const QModelIndex &topLeft, int from, int to);
53 void modelRowsReset();
55 void currentHasChanged(QModelIndex current);
57 private:
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