Wireshark  4.3.0
The Wireshark network protocol analyzer
export_object_dialog.h
Go to the documentation of this file.
1 
10 #ifndef EXPORT_OBJECT_DIALOG_H
11 #define EXPORT_OBJECT_DIALOG_H
12 
13 #include <config.h>
14 
15 #include <file.h>
16 
19 
20 #include "wireshark_dialog.h"
21 
22 #include <QKeyEvent>
23 
24 class QTreeWidgetItem;
25 class QAbstractButton;
26 
27 namespace Ui {
28 class ExportObjectDialog;
29 }
30 
32 {
33  Q_OBJECT
34 
35 public:
36  explicit ExportObjectDialog(QWidget &parent, CaptureFile &cf, register_eo_t* eo);
38 
39 public slots:
40  void show();
41 
42 protected:
43  virtual void keyPressEvent(QKeyEvent *evt);
44 
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);
51 
52  void modelDataChanged(const QModelIndex &topLeft, int from, int to);
53  void modelRowsReset();
54 
55  void currentHasChanged(QModelIndex current);
56 
57 private:
58  bool mimeTypeIsPreviewable(QString mime_type);
59  void saveCurrentEntry(QString *tempFile = Q_NULLPTR);
60  void saveAllEntries();
61 
62  Ui::ExportObjectDialog *eo_ui_;
63 
64  QPushButton *save_bt_;
65  QPushButton *save_all_bt_;
66  ExportObjectModel model_;
67  ExportObjectProxyModel proxyModel_;
68 
69  QStringList contentTypes;
70 
71  void updateContentTypes();
72 };
73 
74 #endif // EXPORT_OBJECT_DIALOG_H
Definition: capture_event.h:21
Definition: capture_file.h:21
Definition: export_object_dialog.h:32
Definition: export_objects_model.h:29
Definition: export_objects_model.h:73
Definition: wireshark_dialog.h:35
Definition: export_object.c:19