Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
export_dissection_dialog.h
1 /* export_dissection_dialog.h
2  *
3  * Wireshark - Network traffic analyzer
4  * By Gerald Combs <gerald@wireshark.org>
5  * Copyright 1998 Gerald Combs
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  */
9 
10 #ifndef EXPORT_DISSECTION_DIALOG_H
11 #define EXPORT_DISSECTION_DIALOG_H
12 
13 #include <config.h>
14 
15 #include <glib.h>
16 
17 #include "file.h"
18 #include "epan/print.h"
19 
20 #include "ui/file_dialog.h"
21 
22 #ifndef Q_OS_WIN
23 #include "packet_range_group_box.h"
24 #include "packet_format_group_box.h"
25 #endif // Q_OS_WIN
26 
27 #include <QFileDialog>
28 #include <QMap>
29 
30 class ExportDissectionDialog : public QFileDialog
31 {
32  Q_OBJECT
33 
34 public:
35  explicit ExportDissectionDialog(QWidget *parent, capture_file *cap_file, export_type_e export_type);
37 
38 public slots:
39  int exec();
40 
41 private slots:
42 #ifndef Q_OS_WIN
43  void exportTypeChanged(QString name_filter);
44  void checkValidity();
45  void on_buttonBox_helpRequested();
46 #endif // Q_OS_WIN
47 
48 private:
49  export_type_e export_type_;
50  capture_file *cap_file_;
51 #ifndef Q_OS_WIN
52  print_args_t print_args_;
53 
54  QMap<QString, export_type_e> export_type_map_;
55  PacketRangeGroupBox packet_range_group_box_;
56 
57  PacketFormatGroupBox packet_format_group_box_;
58 
59  QPushButton *save_bt_;
60 #endif // Q_OS_WIN
61 };
62 
63 #endif // EXPORT_DISSECTION_DIALOG_H
64 
65 /*
66  * Editor modelines
67  *
68  * Local Variables:
69  * c-basic-offset: 4
70  * tab-width: 8
71  * indent-tabs-mode: nil
72  * End:
73  *
74  * ex: set shiftwidth=4 tabstop=8 expandtab:
75  * :indentSize=4:tabSize=8:noTabs=true:
76  */
Definition: packet_format_group_box.h:20
Definition: packet_range_group_box.h:26
Definition: cfile.h:58
Definition: file.h:409
Definition: export_dissection_dialog.h:30