update epan/dissectors/pidl/drsuapi/drsuapi.idl from samba
[wireshark-sm.git] / ui / qt / export_dissection_dialog.h
blob47cb8ac895d1006fae200e50af091a1b63d602d3
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_DISSECTION_DIALOG_H
11 #define EXPORT_DISSECTION_DIALOG_H
13 #include <config.h>
15 #include "file.h"
16 #include "epan/print.h"
18 #include "ui/file_dialog.h"
19 #include <ui/qt/widgets/wireshark_file_dialog.h>
21 #include "packet_range_group_box.h"
22 #include "packet_format_group_box.h"
24 #include <QMap>
26 class ExportDissectionDialog : public WiresharkFileDialog
28 Q_OBJECT
30 public:
31 explicit ExportDissectionDialog(QWidget *parent, capture_file *cap_file, export_type_e export_type, QString selRange = QString());
32 ~ExportDissectionDialog();
34 public slots:
35 void show();
37 protected:
38 bool eventFilter(QObject *obj, QEvent *event) override;
40 private slots:
41 void dialogAccepted(const QStringList &selected);
42 void exportTypeChanged(QString name_filter);
43 void checkValidity();
44 void on_buttonBox_helpRequested();
46 private:
47 export_type_e export_type_;
48 capture_file *cap_file_;
49 print_args_t print_args_;
51 QMap<QString, export_type_e> export_type_map_;
52 PacketRangeGroupBox packet_range_group_box_;
54 PacketFormatGroupBox packet_format_group_box_;
56 QPushButton *save_bt_;
58 bool isValid();
61 #endif // EXPORT_DISSECTION_DIALOG_H