Wireshark  4.3.0
The Wireshark network protocol analyzer
funnel_string_dialog.h
Go to the documentation of this file.
1 
10 #ifndef FUNNEL_STRING_DIALOG_H
11 #define FUNNEL_STRING_DIALOG_H
12 
13 #include "epan/funnel.h"
14 
15 #include <QDialog>
16 
17 class QLineEdit;
18 
19 namespace Ui {
20 class FunnelStringDialog;
22 }
23 
24 class FunnelStringDialog : public QDialog
25 {
26  Q_OBJECT
27 
28 public:
29  explicit FunnelStringDialog(QWidget *parent, const QString title, const QList<QPair<QString, QString>> field_list, funnel_dlg_cb_t dialog_cb, void* dialog_cb_data, funnel_dlg_cb_data_free_t dialog_data_free_cb);
31 
32  // Funnel ops
33  static void stringDialogNew(QWidget *parent, const QString title, const QList<QPair<QString, QString>> field_list, funnel_dlg_cb_t dialog_cb, void* dialog_cb_data, funnel_dlg_cb_data_free_t dialog_cb_data_free);
34 
35  void accept();
36  void reject();
37 
38 private slots:
39  void on_buttonBox_accepted();
40 
41 private:
42  Ui::FunnelStringDialog *ui;
43  funnel_dlg_cb_t dialog_cb_;
44  void *dialog_cb_data_;
45  funnel_dlg_cb_data_free_t dialog_cb_data_free_;
46  QList<QLineEdit *> field_edits_;
47 };
48 
49 class FunnelStringDialogHelper : public QObject
50 {
51  Q_OBJECT
52 
53 public slots:
54  void emitCloseDialogs();
55 
56 signals:
57  void closeDialogs();
58 };
59 
60 extern "C" {
61  void string_dialogs_close(void);
62 }
63 
64 #endif // FUNNEL_STRING_DIALOG_H
Definition: funnel_string_dialog.h:50
Definition: funnel_string_dialog.h:25