|
libdrmconf
0.10.4
A library to program DMR radios.
|
Limits the possible classes a ConfigObjectReference may refer to.
More...
#include <radiolimits.hh>


Public Member Functions | |
| RadioLimitObjRef (const QMetaObject &type, bool allowNull=true, QObject *parent=nullptr) | |
| Constructor. More... | |
| bool | verify (const ConfigItem *item, const QMetaProperty &prop, RadioLimitContext &context) const |
| Verifies the given property of the specified item. More... | |
Public Member Functions inherited from RadioLimitElement | |
| virtual | ~RadioLimitElement () |
| Destructor. | |
Protected Member Functions | |
| bool | validType (const QMetaObject *type) const |
Checks if the given type is one of the valid ones in _types. | |
Protected Member Functions inherited from RadioLimitElement | |
| RadioLimitElement (QObject *parent=nullptr) | |
| Hidden constructor. | |
Protected Attributes | |
| bool | _allowNull |
If true, a null reference is allowed. | |
| QSet< QString > | _types |
| Possible classes of instances, the reference may point to. | |
Additional Inherited Members | |
Public Types inherited from RadioLimitElement | |
| typedef std::initializer_list< std::pair< QString, RadioLimitElement * > > | PropList |
| Initializer lists of ConfigItem properties. | |
Limits the possible classes a ConfigObjectReference may refer to.
| RadioLimitObjRef::RadioLimitObjRef | ( | const QMetaObject & | type, |
| bool | allowNull = true, |
||
| QObject * | parent = nullptr |
||
| ) |
Constructor.
| type | Specifies the type that might be referenced. |
| allowNull | If true, the reference may be a nullptr. |
| parent | Specifies the QObject parent. |
|
virtual |
Verifies the given property of the specified item.
This method gets implemented by the specialized classes to implement the actual verification.
Implements RadioLimitElement.
Reimplemented in RadioLimitObjRefIgnored.