|
libdrmconf
0.11.0
A library to program DMR radios.
|
Represents a limit for an unsigned integer value. More...
#include <radiolimits.hh>


Public Member Functions | |
| RadioLimitUInt (qint64 minValue=-1, qint64 maxValue=-1, qint64 defValue=-1, 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 Attributes | |
| qint64 | _minValue |
| Holds the minimum value. More... | |
| qint64 | _maxValue |
| Holds the maximum value. More... | |
| qint64 | _defValue |
| Holds the default value. More... | |
Additional Inherited Members | |
Public Types inherited from RadioLimitElement | |
| typedef std::initializer_list< std::pair< QString, RadioLimitElement * > > | PropList |
| Initializer lists of ConfigItem properties. | |
Protected Member Functions inherited from RadioLimitValue | |
| RadioLimitValue (QObject *parent=nullptr) | |
| Hidden constructor. | |
Protected Member Functions inherited from RadioLimitElement | |
| RadioLimitElement (QObject *parent=nullptr) | |
| Hidden constructor. | |
Represents a limit for an unsigned integer value.
| RadioLimitUInt::RadioLimitUInt | ( | qint64 | minValue = -1, |
| qint64 | maxValue = -1, |
||
| qint64 | defValue = -1, |
||
| QObject * | parent = nullptr |
||
| ) |
Constructor.
| minValue | Specifies the minimum value. If -1, no check is performed. |
| maxValue | Specifies the maximum value. If -1, no check is performed. |
| defValue | Specifies the default value. If -1, no default value is set. |
| 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.
|
protected |
Holds the default value.
If -1, no default value is set.
|
protected |
Holds the maximum value.
If -1, the check is disabled.
|
protected |
Holds the minimum value.
If -1, the check is disabled.