Specifies the limits for a list of ConfigObject
instances.
More...
#include <radiolimits.hh>
|
QString | findClassName (const QMetaObject &type) const |
| Searches for the specified type or one of its super-clsases in the set of allowed types.
|
|
| RadioLimitElement (QObject *parent=nullptr) |
| Hidden constructor.
|
|
|
QHash< QString, RadioLimitObject * > | _elements |
| Maps typename to element definition.
|
|
QHash< QString, qint64 > | _minCount |
| Maps typename to minimum count.
|
|
QHash< QString, qint64 > | _maxCount |
| Maps typename to maximum count.
|
|
Specifies the limits for a list of ConfigObject
instances.
◆ RadioLimitList()
RadioLimitList::RadioLimitList |
( |
const QMetaObject & |
type, |
|
|
int |
minSize, |
|
|
int |
maxSize, |
|
|
RadioLimitObject * |
element, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
Constructor.
- Parameters
-
type | Specifies the type of the elements. |
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. |
element | Specifies the limits for all objects in the list. If the list contains instances of different ConfigObject types, use RadioLimitObjects dispatcher. |
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.
The documentation for this class was generated from the following files:
- /home/hannes/Software/qdmr/lib/radiolimits.hh
- /home/hannes/Software/qdmr/lib/radiolimits.cc