Wireshark 4.7.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
15#include <epan/proto.h>
16#include <epan/prefs.h>
17
21class ProtocolPreferencesMenu : public QMenu
22{
23 Q_OBJECT
24
25public:
30 ProtocolPreferencesMenu(QWidget *parent = nullptr);
31
38 ProtocolPreferencesMenu(const QString &title, const QString &module_name, QWidget *parent = nullptr);
39
44 void setModule(const QString module_name);
45
50 void addMenuItem(pref_t *pref);
51
52signals:
57 void showProtocolPreferences(const QString module_name);
58
65
66private:
68 QString module_name_;
69
71 module_t *module_;
72
74 protocol_t *protocol_;
75
76private slots:
80 void disableProtocolTriggered();
81
85 void modulePreferencesTriggered();
86
90 void editorPreferenceTriggered();
91
95 void boolPreferenceTriggered();
96
100 void enumPreferenceTriggered();
101
105 void uatPreferenceTriggered();
106
110 void enumCustomTCPOverridePreferenceTriggered();
111};
112
113#endif // __PROTOCOL_PREFERENCES_MENU_H__
A menu for displaying and modifying protocol-specific preferences.
Definition protocol_preferences_menu.h:22
void showProtocolPreferences(const QString module_name)
Signal emitted to show preferences for a specific protocol.
void editProtocolPreference(pref_t *pref, module_t *module)
Signal emitted to edit a specific protocol preference.
void setModule(const QString module_name)
Sets the protocol module for this menu.
Definition protocol_preferences_menu.cpp:181
void addMenuItem(pref_t *pref)
Adds a menu item for a specific preference.
Definition protocol_preferences_menu.cpp:235
Definition proto.c:385
Represents a preference module grouping related preferences under a named, hierarchical entry in the ...
Definition prefs-int.h:27
Definition prefs.c:207