libdrmconf
0.11.0
A library to program DMR radios.
|
Represents a reference to a DMR contact. More...
#include <configreference.hh>
Public Member Functions | |
DMRContactReference (QObject *parent=nullptr) | |
Constructor. | |
Public Member Functions inherited from ContactReference | |
ContactReference (QObject *parent=nullptr) | |
Constructor. | |
Public Member Functions inherited from ConfigObjectReference | |
bool | isNull () const |
Returns true if the reference is null. More... | |
virtual void | clear () |
Resets the reference. More... | |
virtual bool | set (ConfigObject *object) |
Sets the reference. More... | |
virtual bool | copy (const ConfigObjectReference *ref) |
Copies the reference from another reference. | |
virtual bool | allow (const QMetaObject *elementType) |
Adds a possible type to this reference. | |
const QStringList & | elementTypeNames () const |
Returns the type names of allowed objects. | |
template<class Type > | |
Type * | as () const |
Returns the reference as the specified type. | |
template<class Type > | |
bool | is () const |
Returns true if the reference is of the specified type. | |
int | compare (const ConfigObjectReference &other) const |
Compares the references. | |
Additional Inherited Members | |
Signals inherited from ConfigObjectReference | |
void | modified () |
Gets emitted if the reference is changed. More... | |
Protected Slots inherited from ConfigObjectReference | |
void | onReferenceDeleted (QObject *obj) |
Internal call back whenever the referenced object gets deleted. | |
Protected Member Functions inherited from ContactReference | |
ContactReference (const QMetaObject &elementType, QObject *parent=nullptr) | |
Constructor. | |
Protected Member Functions inherited from ConfigObjectReference | |
ConfigObjectReference (const QMetaObject &elementType=ConfigObject::staticMetaObject, QObject *parent=nullptr) | |
Hidden constructor. | |
Protected Attributes inherited from ConfigObjectReference | |
QStringList | _elementTypes |
Holds the static QMetaObject of the possible element types. | |
ConfigObject * | _object |
The reference to the object. | |
Represents a reference to a DMR contact.