|
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
Manages the registration and creation of Wireshark preferences. More...
#include <preference_manager.h>
Public Member Functions | |
| virtual | ~PreferenceManager () |
| Destroys the PreferenceManager. | |
| void | registerType (int pref, PreferenceFactory *factory) |
| Registers a preference factory for a specific preference type. | |
| void | reuseType (int pref, int reuseFor) |
| Maps an existing preference factory to another preference type. | |
| WiresharkPreference * | getPreference (PrefsItem *item) |
| Retrieves a WiresharkPreference instance for the given PrefsItem. | |
Static Public Member Functions | |
| static PreferenceManager * | instance () |
| Retrieves the singleton instance of the PreferenceManager. | |
Protected Member Functions | |
| PreferenceManager (QObject *parent=Q_NULLPTR) | |
| Constructs a new PreferenceManager. | |
Manages the registration and creation of Wireshark preferences.
|
explicitprotected |
Constructs a new PreferenceManager.
| parent | The parent QObject, defaults to Q_NULLPTR. |
| WiresharkPreference * PreferenceManager::getPreference | ( | PrefsItem * | item | ) |
Retrieves a WiresharkPreference instance for the given PrefsItem.
| item | Pointer to the PrefsItem to create a preference for. |
|
static |
Retrieves the singleton instance of the PreferenceManager.
| void PreferenceManager::registerType | ( | int | pref, |
| PreferenceFactory * | factory | ||
| ) |
Registers a preference factory for a specific preference type.
| pref | The preference type identifier. |
| factory | Pointer to the factory to register. |
| void PreferenceManager::reuseType | ( | int | pref, |
| int | reuseFor | ||
| ) |
Maps an existing preference factory to another preference type.
| pref | The preference type identifier of the existing factory. |
| reuseFor | The new preference type identifier to map to the factory. |