Wireshark  4.3.0
The Wireshark network protocol analyzer
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 struct _protocol;
16 struct pref_module;
17 struct preference;
18 
19 class ProtocolPreferencesMenu : public QMenu
20 {
21  Q_OBJECT
22 
23 public:
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 
30 signals:
31  void showProtocolPreferences(const QString module_name);
32  void editProtocolPreference(struct preference *pref, struct pref_module *module);
33 
34 private:
35  QString module_name_;
36  struct pref_module *module_;
37  struct _protocol *protocol_;
38 
39 private 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:372
Definition: prefs-int.h:27
Definition: prefs.c:225