Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
export_object_dialog.h
1 /* export_object_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_OBJECT_DIALOG_H
11 #define EXPORT_OBJECT_DIALOG_H
12 
13 #include <config.h>
14 
15 #include <file.h>
16 
17 #include <ui/qt/models/export_objects_model.h>
18 #include <ui/qt/widgets/export_objects_view.h>
19 
20 #include "wireshark_dialog.h"
21 
22 class QTreeWidgetItem;
23 class QAbstractButton;
24 
25 namespace Ui {
26 class ExportObjectDialog;
27 }
28 
30 {
31  Q_OBJECT
32 
33 public:
34  explicit ExportObjectDialog(QWidget &parent, CaptureFile &cf, register_eo_t* eo);
36 
37  ExportObjectsTreeView* getExportObjectView();
38 
39 public slots:
40  void show();
41 
42 private slots:
43  void accept();
44  void captureEvent(CaptureEvent e);
45  void on_buttonBox_helpRequested();
46  void on_buttonBox_clicked(QAbstractButton *button);
47 
48 private slots:
49  void modelDataChanged(const QModelIndex &topLeft);
50  void modelRowsReset();
51 
52 private:
53  void saveCurrentEntry();
54  void saveAllEntries();
55 
56  Ui::ExportObjectDialog *eo_ui_;
57 
58  QPushButton *save_bt_;
59  QPushButton *save_all_bt_;
60  ExportObjectModel model_;
61  ExportObjectProxyModel proxyModel_;
62 };
63 
64 #endif // EXPORT_OBJECT_DIALOG_H
65 
66 /*
67  * Editor modelines
68  *
69  * Local Variables:
70  * c-basic-offset: 4
71  * tab-width: 8
72  * indent-tabs-mode: nil
73  * End:
74  *
75  * ex: set shiftwidth=4 tabstop=8 expandtab:
76  * :indentSize=4:tabSize=8:noTabs=true:
77  */
Definition: export_object.c:19
Definition: export_objects_model.h:70
Definition: ui_about_dialog.h:291
Definition: ui_export_object_dialog.h:114
Definition: capture_event.h:19
Definition: export_object_dialog.h:29
Definition: wireshark_dialog.h:32
Definition: export_objects_view.h:17
Definition: capture_file.h:22
Definition: export_objects_model.h:27