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_DISSECTION_DIALOG_H
11 #define EXPORT_DISSECTION_DIALOG_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"
26 class ExportDissectionDialog
: public WiresharkFileDialog
31 explicit ExportDissectionDialog(QWidget
*parent
, capture_file
*cap_file
, export_type_e export_type
, QString selRange
= QString());
32 ~ExportDissectionDialog();
38 bool eventFilter(QObject
*obj
, QEvent
*event
) override
;
41 void dialogAccepted(const QStringList
&selected
);
42 void exportTypeChanged(QString name_filter
);
44 void on_buttonBox_helpRequested();
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_
;
61 #endif // EXPORT_DISSECTION_DIALOG_H