Kerberos: add kerberos_inject_longterm_key() helper function
[wireshark-sm.git] / ui / qt / io_console_dialog.h
blob8a685d36596fde780059f1829dd2275182073bb1
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 IO_CONSOLE_DIALOG_H
11 #define IO_CONSOLE_DIALOG_H
13 #include <wireshark.h>
15 #include <QTextEdit>
16 #include <QSplitter>
17 #include <QKeySequence>
18 #include <QPushButton>
19 #include <QSizePolicy>
21 #include "geometry_state_dialog.h"
22 #include <epan/funnel.h>
24 namespace Ui {
25 class IOConsoleDialog;
28 class IOConsoleDialog : public GeometryStateDialog
30 Q_OBJECT
32 public:
33 explicit IOConsoleDialog(QWidget &parent,
34 QString title,
35 funnel_console_eval_cb_t eval_cb,
36 funnel_console_open_cb_t open_cb,
37 funnel_console_close_cb_t close_cb,
38 void *callback_data);
39 ~IOConsoleDialog();
40 void appendOutputText(const QString &text);
41 void setHintText(const QString &text);
42 void clearHintText();
44 private slots:
45 void acceptInput();
46 void on_clearActivated(void);
47 void clearSuccessHint(void);
49 private:
50 Ui::IOConsoleDialog *ui;
51 funnel_console_eval_cb_t eval_cb_;
52 funnel_console_open_cb_t open_cb_;
53 funnel_console_close_cb_t close_cb_;
54 void *callback_data_;
57 #endif // IO_CONSOLE_DIALOG_H