libdrmconf  0.11.0
A library to program DMR radios.
Public Member Functions | Protected Attributes | List of all members
RadioLimitUInt Class Reference

Represents a limit for an unsigned integer value. More...

#include <radiolimits.hh>

Inheritance diagram for RadioLimitUInt:
Inheritance graph
[legend]
Collaboration diagram for RadioLimitUInt:
Collaboration graph
[legend]

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.
 

Detailed Description

Represents a limit for an unsigned integer value.

Constructor & Destructor Documentation

◆ RadioLimitUInt()

RadioLimitUInt::RadioLimitUInt ( qint64  minValue = -1,
qint64  maxValue = -1,
qint64  defValue = -1,
QObject *  parent = nullptr 
)

Constructor.

Parameters
minValueSpecifies the minimum value. If -1, no check is performed.
maxValueSpecifies the maximum value. If -1, no check is performed.
defValueSpecifies the default value. If -1, no default value is set.
parentSpecifies the QObject parent.

Member Function Documentation

◆ verify()

bool RadioLimitUInt::verify ( const ConfigItem item,
const QMetaProperty &  prop,
RadioLimitContext context 
) const
virtual

Verifies the given property of the specified item.

This method gets implemented by the specialized classes to implement the actual verification.

Implements RadioLimitElement.

Member Data Documentation

◆ _defValue

qint64 RadioLimitUInt::_defValue
protected

Holds the default value.

If -1, no default value is set.

◆ _maxValue

qint64 RadioLimitUInt::_maxValue
protected

Holds the maximum value.

If -1, the check is disabled.

◆ _minValue

qint64 RadioLimitUInt::_minValue
protected

Holds the minimum value.

If -1, the check is disabled.


The documentation for this class was generated from the following files: