| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
uihandler.h
1/* uihandler.h
2 * Author: Roland Knall <rknall@gmail.com>
3 *
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
7 *
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
10
11#ifndef PLUGINIFDEMO_UI_UIHANDLER_H_
12#define PLUGINIFDEMO_UI_UIHANDLER_H_
13
14#ifdef __cplusplus
15
16#include <QObject>
17#include <QDialog>
18#include <QMutex>
19
20#include <ui/plugins/include/plugin_if.h>
21
22#include "ws_symbol_export.h"
23
24 class GuiHandler : public QObject
25{
26 Q_OBJECT
27
28 public:
29
30 static GuiHandler * getInstance();
31
32 void showAboutDialog(ext_menubar_gui_type gui_type, void *gui_data);
33 void showMainDialog(ext_menubar_gui_type gui_type, void *gui_data);
34
35 void doReset();
36
37 void addLogMessage(QString message);
38
39 void setToolbar(ext_toolbar_t * toolbar);
40 ext_toolbar_t * toolBar();
41
42signals:
43 void reset();
44 void logChanged(QString newEntry);
45
46 protected:
47
48 GuiHandler();
49
50 // Stop the compiler generating methods of "copy the object"
51 GuiHandler(GuiHandler const& copy); // Not implemented
52 GuiHandler& operator=(GuiHandler const& copy); // Not implemented
53
54 private:
55
56 static QMutex * singletonMutex;
57
58 ext_toolbar_t * _toolbar;
59
60 void executeDialog(QDialog * object);
61};
62
63 extern "C" {
64#endif
65
72 extern void pluginifdemo_ui_about(ext_menubar_gui_type gui_type, void *gui_data);
73
81 extern void pluginifdemo_ui_main(ext_menubar_gui_type gui_type, void *gui_data);
82
88 extern void pluginifdemo_toolbar_log(const char * message);
89
97 extern void pluginifdemo_toolbar_register(ext_toolbar_t * toolbar);
98
99#ifdef __cplusplus
100}
101#endif
102
103#endif /* BURANALYZER_UI_UIHANDLER_H_ */
104
105/*
106 * Editor modelines
107 *
108 * Local Variables:
109 * c-basic-offset: 4
110 * tab-width: 8
111 * indent-tabs-mode: nil
112 * End:
113 *
114 * ex: set shiftwidth=4 tabstop=8 expandtab:
115 * :indentSize=4:tabSize=8:noTabs=true:
116 */
plugin_if.h
ext_toolbar_t
struct _ext_toolbar_t ext_toolbar_t
Represents a node in the plugin-registered toolbar tree (bar or item).
ext_menubar_gui_type
ext_menubar_gui_type
Identifies the GUI toolkit hosting the menubar, passed to action callbacks.
Definition plugin_if.h:36