Kerberos: add kerberos_inject_longterm_key() helper function
[wireshark-sm.git] / ui / qt / protocol_preferences_menu.h
blob0b86890c1031c2f2af4e0cd00213916fecfde507
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 __PROTOCOL_PREFERENCES_MENU_H__
11 #define __PROTOCOL_PREFERENCES_MENU_H__
13 #include <QMenu>
15 struct _protocol;
16 struct pref_module;
17 struct preference;
19 class ProtocolPreferencesMenu : public QMenu
21 Q_OBJECT
23 public:
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);
30 signals:
31 void showProtocolPreferences(const QString module_name);
32 void editProtocolPreference(struct preference *pref, struct pref_module *module);
34 private:
35 QString module_name_;
36 struct pref_module *module_;
37 struct _protocol *protocol_;
39 private slots:
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__