libdrmconf
0.12.0
A library to program DMR radios.
|
Represents a limit on frequencies in MHz. More...
#include <radiolimits.hh>
Public Types | |
typedef std::initializer_list< std::pair< Frequency, Frequency > > | RangeList |
Typedef for the initializer list. | |
Public Types inherited from RadioLimitElement | |
typedef std::initializer_list< std::pair< QString, RadioLimitElement * > > | PropList |
Initializer lists of ConfigItem properties. | |
Public Member Functions | |
RadioLimitFrequencies (QObject *parent=nullptr) | |
Empty constructor. | |
RadioLimitFrequencies (const RangeList &ranges, bool warnOnly=false, QObject *parent=nullptr) | |
Constructor from initializer list. | |
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 | |
QList< FrequencyRange > | _frequencyRanges |
Holds the frequency ranges for the device. | |
bool | _warnOnly |
If true , throw only a warning. | |
Additional Inherited Members | |
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 on frequencies in MHz.
|
virtual |
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 RadioLimitTransmitFrequencies.