3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
10 #ifndef FUNNEL_STRING_DIALOG_H
11 #define FUNNEL_STRING_DIALOG_H
13 #include "epan/funnel.h"
20 class FunnelStringDialog
;
21 class FunnelStringDialogHelper
;
24 class FunnelStringDialog
: public QDialog
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
);
30 ~FunnelStringDialog();
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
);
39 void on_buttonBox_accepted();
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_
;
49 class FunnelStringDialogHelper
: public QObject
54 void emitCloseDialogs();
61 void string_dialogs_close(void);
64 #endif // FUNNEL_STRING_DIALOG_H