Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Classes | Macros
preference_manager.h File Reference
#include <config.h>
#include <QObject>
#include <QMetaObject>
#include <QHash>
#include <QActionGroup>
#include <ui/qt/models/pref_models.h>
#include <ui/qt/capture_file.h>

Go to the source code of this file.

Classes

class  PreferenceManager
 
class  PreferenceFactory
 

Macros

#define REGISTER_PREFERENCE_TYPE(pref_id, preference_class)
 

Detailed Description

Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs

SPDX-License-Identifier: GPL-2.0-or-later

Macro Definition Documentation

◆ REGISTER_PREFERENCE_TYPE

#define REGISTER_PREFERENCE_TYPE (   pref_id,
  preference_class 
)
Value:
class preference_class##pref_id##Factory : public PreferenceFactory { \
public: \
preference_class##pref_id##Factory() \
{ \
PreferenceManager::instance()->registerType(pref_id, this); \
} \
virtual WiresharkPreference *create(QObject * parent) { \
WiresharkPreference * newPrefHandler = new preference_class(parent); \
return newPrefHandler; \
} \
}; \
static preference_class##pref_id##Factory global_##preference_class##pref_id##Factory;
Definition preference_manager.h:44
Definition wireshark_preference.h:20