Limits the possible classes a ConfigObjectReference may refer to.
More...
#include <radiolimits.hh>
|
|
typedef std::initializer_list< QMetaObject > | MetaObjectList |
| | Initializer lists of allowed classes.
|
| |
|
typedef std::initializer_list< std::pair< QString, RadioLimitElement * > > | PropList |
| | Initializer lists of ConfigItem properties.
|
| |
|
| | RadioLimitObjRef (const QMetaObject &type, bool allowNull=true, QObject *parent=nullptr) |
| | Constructor.
|
| |
| | RadioLimitObjRef (const MetaObjectList &types, bool allowNull=true, QObject *parent=nullptr) |
| | Constructor.
|
| |
| bool | verify (const ConfigItem *item, const QMetaProperty &prop, RadioLimitContext &context) const |
| | Verifies the given property of the specified item.
|
| |
|
virtual | ~RadioLimitElement () |
| | Destructor.
|
| |
|
|
bool | validType (const QMetaObject *type) const |
| | Checks if the given type is one of the valid ones in _types.
|
| |
|
| RadioLimitElement (QObject *parent=nullptr) |
| | Hidden constructor.
|
| |
|
|
bool | _allowNull |
| | If true, a null reference is allowed.
|
| |
|
QSet< QString > | _types |
| | Possible classes of instances, the reference may point to.
|
| |
Limits the possible classes a ConfigObjectReference may refer to.
◆ RadioLimitObjRef() [1/2]
| RadioLimitObjRef::RadioLimitObjRef |
( |
const QMetaObject & | type, |
|
|
bool | allowNull = true, |
|
|
QObject * | parent = nullptr ) |
Constructor.
- Parameters
-
| type | Specifies the type that might be referenced. |
| allowNull | If true, the reference may be a nullptr. |
| parent | Specifies the QObject parent. |
◆ RadioLimitObjRef() [2/2]
| RadioLimitObjRef::RadioLimitObjRef |
( |
const MetaObjectList & | types, |
|
|
bool | allowNull = true, |
|
|
QObject * | parent = nullptr ) |
Constructor.
- Parameters
-
| types | Specifies the types that might be referenced. |
| allowNull | If true, the reference may be a nullptr. |
| parent | Specifies the QObject parent. |
◆ verify()
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.
The documentation for this class was generated from the following files:
- /builddir/build/BUILD/qdmr-0.12.3-build/qdmr-0.12.3/lib/radiolimits.hh
- /builddir/build/BUILD/qdmr-0.12.3-build/qdmr-0.12.3/lib/radiolimits.cc