1#ifndef CONFIGREFERENCE_HH
2#define CONFIGREFERENCE_HH
4#include "configobject.hh"
22 ConfigObjectReference(
const QMetaObject &elementType=ConfigObject::staticMetaObject, QObject *parent =
nullptr);
38 virtual bool allow(
const QMetaObject *elementType);
128 ChannelReference(
const QMetaObject &elementType, QObject *parent =
nullptr);
const QList< QMetaObject > & elementTypes() const
Returns the element type for this list.
Definition configobject.cc:1353
ChannelRefList(const QMetaObject &elementTypes, QObject *parent=nullptr)
Hidden constructor.
Definition configreference.cc:187
ChannelReference(const QMetaObject &elementType, QObject *parent=nullptr)
Hidden constructor.
Definition configreference.cc:151
The base class of all channels (analog and digital) of a codeplug configuration.
Definition channel.hh:34
ConfigObjectRefList(const QMetaObject &elementTypes=ConfigObject::staticMetaObject, QObject *parent=nullptr)
Hidden constructor.
Definition configobject.cc:1539
Implements a reference to a config object.
Definition configreference.hh:17
const QStringList & elementTypeNames() const
Returns the type names of allowed objects.
Definition configreference.cc:97
void onReferenceDeleted(QObject *obj)
Internal call back whenever the referenced object gets deleted.
Definition configreference.cc:102
int compare(const ConfigObjectReference &other) const
Compares the references.
Definition configreference.cc:79
virtual bool copy(const ConfigObjectReference *ref)
Copies the reference from another reference.
Definition configreference.cc:71
QStringList _elementTypes
Holds the static QMetaObject of the possible element types.
Definition configreference.hh:73
ConfigObject * _object
The reference to the object.
Definition configreference.hh:75
virtual bool set(ConfigObject *object)
Sets the reference.
Definition configreference.cc:38
virtual void clear()
Resets the reference.
Definition configreference.cc:29
ConfigObjectReference(const QMetaObject &elementType=ConfigObject::staticMetaObject, QObject *parent=nullptr)
Hidden constructor.
Definition configreference.cc:17
void modified()
Gets emitted if the reference is changed.
virtual bool allow(const QMetaObject *elementType)
Adds a possible type to this reference.
Definition configreference.cc:90
bool is() const
Returns true if the reference is of the specified type.
Definition configreference.hh:53
bool isNull() const
Returns true if the reference is null.
Definition configreference.cc:24
Type * as() const
Returns the reference as the specified type.
Definition configreference.hh:45
Base class of all labeled and named objects.
Definition configobject.hh:199
DMRChannelRefList(QObject *parent=nullptr)
Empty constructor.
Definition configreference.cc:203
DMRChannelReference(QObject *parent=nullptr)
Constructor.
Definition configreference.cc:167
Extension to the DigitalChannel class to implement an DMR channel.
Definition channel.hh:354
DMRRadioIDReference(QObject *parent=nullptr)
Constructor.
Definition configreference.cc:269
EncryptionKeyReference(QObject *parent=nullptr)
Constructor.
Definition configreference.cc:299
Base class of all encryption keys.
Definition encryptionextension.hh:10
FMChannelReference(QObject *parent=nullptr)
Constructor.
Definition configreference.cc:177
Extension to the AnalogChannel class to implement an analog FM channel.
Definition channel.hh:210
GPSSystemReference(QObject *parent=nullptr)
Constructor.
Definition configreference.cc:259
GroupListReference(QObject *parent=nullptr)
Constructor.
Definition configreference.cc:279
PositioningSystemReference(const QMetaObject &elementType, QObject *parent=nullptr)
Hidden constructor.
Definition configreference.cc:233
RoamingChannelRefList(QObject *parent=nullptr)
Empty constructor.
Definition configreference.cc:213
RoamingZoneReference(QObject *parent=nullptr)
Constructor.
Definition configreference.cc:289
ScanListReference(QObject *parent=nullptr)
Constructor.
Definition configreference.cc:223
Generic representation of a scan list.
Definition scanlist.hh:15
ZoneReference(QObject *parent=nullptr)
Constructor.
Definition configreference.cc:309