| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
io_console_dialog.h
Go to the documentation of this file.
1
10#ifndef IO_CONSOLE_DIALOG_H
11#define IO_CONSOLE_DIALOG_H
12
13#include <wireshark.h>
14
15#include <QTextEdit>
16#include <QSplitter>
17#include <QKeySequence>
18#include <QPushButton>
19#include <QSizePolicy>
20
21#include "geometry_state_dialog.h"
22#include <epan/funnel.h>
23
24 namespace Ui {
25 class IOConsoleDialog;
26}
27
28 class IOConsoleDialog : public GeometryStateDialog
29{
30 Q_OBJECT
31
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();
43
44 private slots:
45 void acceptInput();
46 void on_clearActivated(void);
47 void clearSuccessHint(void);
48
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_;
55};
56
57#endif // IO_CONSOLE_DIALOG_H
GeometryStateDialog
Definition geometry_state_dialog.h:17
IOConsoleDialog
Definition io_console_dialog.h:29
funnel.h
funnel_console_open_cb_t
void(* funnel_console_open_cb_t)(void(*print_func)(const char *, void *), void *print_data, void *callback_data)
Definition funnel.h:177
funnel_console_eval_cb_t
int(* funnel_console_eval_cb_t)(const char *console_input, char **error_ptr, char **error_hint, void *callback_data)
Definition funnel.h:169
funnel_console_close_cb_t
void(* funnel_console_close_cb_t)(void *callback_data)
Definition funnel.h:182
geometry_state_dialog.h