Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
protocol_preferences_menu.h
1 /* protocol_preferences_menu.h
2  *
3  * Wireshark - Network traffic analyzer
4  * By Gerald Combs <gerald@wireshark.org>
5  * Copyright 1998 Gerald Combs
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  */
9 
10 #ifndef __PROTOCOL_PREFERENCES_MENU_H__
11 #define __PROTOCOL_PREFERENCES_MENU_H__
12 
13 #include <QMenu>
14 
15 struct _protocol;
16 struct pref_module;
17 struct preference;
18 
19 class ProtocolPreferencesMenu : public QMenu
20 {
21  Q_OBJECT
22 
23 public:
25 
26  void setModule(const QString module_name);
27  void addMenuItem(struct preference *pref);
28 
29 signals:
30  void showProtocolPreferences(const QString module_name);
31  void editProtocolPreference(struct preference *pref, struct pref_module *module);
32 
33 private:
34  QString module_name_;
35  struct pref_module *module_;
36  struct _protocol *protocol_;
37 
38 private slots:
39  void disableProtocolTriggered();
40  void modulePreferencesTriggered();
41  void editorPreferenceTriggered();
42  void boolPreferenceTriggered();
43  void enumPreferenceTriggered();
44  void uatPreferenceTriggered();
45 };
46 
47 #endif // __PROTOCOL_PREFERENCES_MENU_H__
48 
49 /*
50  * Editor modelines
51  *
52  * Local Variables:
53  * c-basic-offset: 4
54  * tab-width: 8
55  * indent-tabs-mode: nil
56  * End:
57  *
58  * ex: set shiftwidth=4 tabstop=8 expandtab:
59  * :indentSize=4:tabSize=8:noTabs=true:
60  */
Definition: prefs-int.h:27
Definition: prefs.c:192
Definition: protocol_preferences_menu.h:19
Definition: proto.c:312