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 <glib.h>
14 
15 #include "epan/funnel.h"
16 
17 #include <QDialog>
18 
19 class QLineEdit;
20 
21 namespace Ui {
22 class FunnelStringDialog;
24 }
25 
26 class FunnelStringDialog : public QDialog
27 {
28  Q_OBJECT
29 
30 public:
31  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);
33 
34  // Funnel ops
35  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);
36 
37  void accept();
38  void reject();
39 
40 private slots:
41  void on_buttonBox_accepted();
42 
43 private:
44  Ui::FunnelStringDialog *ui;
45  funnel_dlg_cb_t dialog_cb_;
46  void *dialog_cb_data_;
47  funnel_dlg_cb_data_free_t dialog_cb_data_free_;
48  QList<QLineEdit *> field_edits_;
49 };
50 
51 class FunnelStringDialogHelper : public QObject
52 {
53  Q_OBJECT
54 
55 public slots:
56  void emitCloseDialogs();
57 
58 signals:
59  void closeDialogs();
60 };
61 
62 extern "C" {
63  void string_dialogs_close(void);
64 }
65 
66 #endif // FUNNEL_STRING_DIALOG_H
Definition: funnel_string_dialog.h:52
Definition: funnel_string_dialog.h:27