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
10 #ifndef __PROTOCOL_PREFERENCES_MENU_H__
11 #define __PROTOCOL_PREFERENCES_MENU_H__
19 class ProtocolPreferencesMenu
: public QMenu
24 ProtocolPreferencesMenu(QWidget
*parent
= nullptr);
25 ProtocolPreferencesMenu(const QString
&title
, const QString
&module_name
, QWidget
*parent
= nullptr);
27 void setModule(const QString module_name
);
28 void addMenuItem(struct preference
*pref
);
31 void showProtocolPreferences(const QString module_name
);
32 void editProtocolPreference(struct preference
*pref
, struct pref_module
*module
);
36 struct pref_module
*module_
;
37 struct _protocol
*protocol_
;
40 void disableProtocolTriggered();
41 void modulePreferencesTriggered();
42 void editorPreferenceTriggered();
43 void boolPreferenceTriggered();
44 void enumPreferenceTriggered();
45 void uatPreferenceTriggered();
46 void enumCustomTCPOverridePreferenceTriggered();
49 #endif // __PROTOCOL_PREFERENCES_MENU_H__