|
libdrmconf 0.13.3
A library to program DMR radios.
|
Implements the limits for reference lists. More...
#include <radiolimits.hh>


Public Member Functions | |
| RadioLimitRefList (int minSize, int maxSize, const QMetaObject &type, QObject *parent=nullptr) | |
| Constructor. | |
| bool | verify (const ConfigItem *item, const QMetaProperty &prop, RadioLimitContext &context) const |
| Verifies the given property of the specified item. | |
| 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. | |
Additional Inherited Members | |
| Public Types inherited from RadioLimitElement | |
| typedef std::initializer_list< std::pair< QString, RadioLimitElement * > > | PropList |
| Initializer lists of ConfigItem properties. | |
Implements the limits for reference lists.
| RadioLimitRefList::RadioLimitRefList | ( | int | minSize, |
| int | maxSize, | ||
| const QMetaObject & | type, | ||
| QObject * | parent = nullptr ) |
Constructor.
| minSize | Specifies the minimum size of the list. If -1, no check is performed. |
| maxSize | Specifies the maximum size of the list. If -1, no check is performed. |
| type | Specifies the type, the references must be instances of. |
| 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.