Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
protocol_preferences_menu.h
Go to the documentation of this file.
1
10#ifndef __PROTOCOL_PREFERENCES_MENU_H__
11#define __PROTOCOL_PREFERENCES_MENU_H__
12
13#include <QMenu>
14
15struct _protocol;
16struct pref_module;
17struct preference;
18
19class ProtocolPreferencesMenu : public QMenu
20{
21 Q_OBJECT
22
23public:
24 ProtocolPreferencesMenu(QWidget *parent = nullptr);
25 ProtocolPreferencesMenu(const QString &title, const QString &module_name, QWidget *parent = nullptr);
26
27 void setModule(const QString module_name);
28 void addMenuItem(struct preference *pref);
29
30signals:
31 void showProtocolPreferences(const QString module_name);
32 void editProtocolPreference(struct preference *pref, struct pref_module *module);
33
34private:
35 QString module_name_;
36 struct pref_module *module_;
37 struct _protocol *protocol_;
38
39private slots:
40 void disableProtocolTriggered();
41 void modulePreferencesTriggered();
42 void editorPreferenceTriggered();
43 void boolPreferenceTriggered();
44 void enumPreferenceTriggered();
45 void uatPreferenceTriggered();
46 void enumCustomTCPOverridePreferenceTriggered();
47};
48
49#endif // __PROTOCOL_PREFERENCES_MENU_H__
Definition protocol_preferences_menu.h:20
Definition proto.c:380
Definition prefs-int.h:27
Definition prefs.c:248