nexmon – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 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 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 */
21  
22 #ifndef FUNNEL_STRING_DIALOG_H
23 #define FUNNEL_STRING_DIALOG_H
24  
25 #include <glib.h>
26  
27 #include "epan/funnel.h"
28  
29 #include <QDialog>
30  
31 class QLineEdit;
32  
33 namespace Ui {
34 class FunnelStringDialog;
35 class FunnelStringDialogHelper;
36 }
37  
38 class FunnelStringDialog : public QDialog
39 {
40 Q_OBJECT
41  
42 public:
43 explicit FunnelStringDialog(const QString title, const QStringList field_name_list, funnel_dlg_cb_t dialog_cb, void *dialog_cb_data);
44 ~FunnelStringDialog();
45  
46 // Funnel ops
47 static void stringDialogNew(const QString title, const QStringList field_name_list, funnel_dlg_cb_t dialog_cb, void* dialog_cb_data);
48  
49 void accept();
50 void reject();
51  
52 private slots:
53 void on_buttonBox_accepted();
54  
55 private:
56 Ui::FunnelStringDialog *ui;
57 funnel_dlg_cb_t dialog_cb_;
58 void *dialog_cb_data_;
59 QList<QLineEdit *> field_edits_;
60 };
61  
62 class FunnelStringDialogHelper : public QObject
63 {
64 Q_OBJECT
65  
66 public slots:
67 void emitCloseDialogs();
68  
69 signals:
70 void closeDialogs();
71 };
72  
73 extern "C" {
74 void string_dialog_new(const gchar* title, const gchar** fieldnames, funnel_dlg_cb_t dialog_cb, void* dialog_cb_data);
75 void string_dialogs_close(void);
76 }
77  
78 #endif // FUNNEL_STRING_DIALOG_H
79  
80 /*
81 * Editor modelines
82 *
83 * Local Variables:
84 * c-basic-offset: 4
85 * tab-width: 8
86 * indent-tabs-mode: nil
87 * End:
88 *
89 * ex: set shiftwidth=4 tabstop=8 expandtab:
90 * :indentSize=4:tabSize=8:noTabs=true:
91 */