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
15#include <epan/proto.h>
16#include <epan/prefs.h>
17
18class ProtocolPreferencesMenu : public QMenu
19{
20 Q_OBJECT
21
22public:
23 ProtocolPreferencesMenu(QWidget *parent = nullptr);
24 ProtocolPreferencesMenu(const QString &title, const QString &module_name, QWidget *parent = nullptr);
25
26 void setModule(const QString module_name);
27 void addMenuItem(pref_t *pref);
28
29signals:
30 void showProtocolPreferences(const QString module_name);
31 void editProtocolPreference(pref_t *pref, module_t *module);
32
33private:
34 QString module_name_;
35 module_t *module_;
36 protocol_t *protocol_;
37
38private slots:
39 void disableProtocolTriggered();
40 void modulePreferencesTriggered();
41 void editorPreferenceTriggered();
42 void boolPreferenceTriggered();
43 void enumPreferenceTriggered();
44 void uatPreferenceTriggered();
45 void enumCustomTCPOverridePreferenceTriggered();
46};
47
48#endif // __PROTOCOL_PREFERENCES_MENU_H__
Definition protocol_preferences_menu.h:19
Definition proto.c:382
Definition prefs-int.h:27
Definition prefs.c:249