Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
funnel_string_dialog.h
1 /* funnel_string_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 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(const QString title, const QStringList field_name_list, funnel_dlg_cb_t dialog_cb, void *dialog_cb_data);
33 
34  // Funnel ops
35  static void stringDialogNew(const QString title, const QStringList field_name_list, funnel_dlg_cb_t dialog_cb, void* dialog_cb_data);
36 
37  void accept();
38  void reject();
39 
40 private slots:
41  void on_buttonBox_accepted();
42 
43 private:
45  funnel_dlg_cb_t dialog_cb_;
46  void *dialog_cb_data_;
47  QList<QLineEdit *> field_edits_;
48 };
49 
50 class FunnelStringDialogHelper : public QObject
51 {
52  Q_OBJECT
53 
54 public slots:
55  void emitCloseDialogs();
56 
57 signals:
58  void closeDialogs();
59 };
60 
61 extern "C" {
62 void string_dialog_new(const gchar* title, const gchar** fieldnames, funnel_dlg_cb_t dialog_cb, void* dialog_cb_data);
63 void string_dialogs_close(void);
64 }
65 
66 #endif // FUNNEL_STRING_DIALOG_H
67 
68 /*
69  * Editor modelines
70  *
71  * Local Variables:
72  * c-basic-offset: 4
73  * tab-width: 8
74  * indent-tabs-mode: nil
75  * End:
76  *
77  * ex: set shiftwidth=4 tabstop=8 expandtab:
78  * :indentSize=4:tabSize=8:noTabs=true:
79  */
Definition: ui_about_dialog.h:291
Definition: ui_funnel_string_dialog.h:66
Definition: funnel_string_dialog.h:50
Definition: funnel_string_dialog.h:26