Kerberos: add kerberos_inject_longterm_key() helper function
[wireshark-sm.git] / ui / qt / funnel_string_dialog.h
blob2ac277aa8aa296e1acd8541872d582fc489ff7ee
1 /** @file
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
8 */
10 #ifndef FUNNEL_STRING_DIALOG_H
11 #define FUNNEL_STRING_DIALOG_H
13 #include "epan/funnel.h"
15 #include <QDialog>
17 class QLineEdit;
19 namespace Ui {
20 class FunnelStringDialog;
21 class FunnelStringDialogHelper;
24 class FunnelStringDialog : public QDialog
26 Q_OBJECT
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);
30 ~FunnelStringDialog();
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);
35 void accept();
36 void reject();
38 private slots:
39 void on_buttonBox_accepted();
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_;
49 class FunnelStringDialogHelper : public QObject
51 Q_OBJECT
53 public slots:
54 void emitCloseDialogs();
56 signals:
57 void closeDialogs();
60 extern "C" {
61 void string_dialogs_close(void);
64 #endif // FUNNEL_STRING_DIALOG_H