Base class of limits for all AnyTone radios.
More...
#include <anytone_limits.hh>
|
| bool | verifyConfig (const Config *config, RadioLimitContext &context) const |
| | Verifies the given configuration.
|
|
| RadioLimits (bool betaWarning, QObject *parent=nullptr) |
| | Empty constructor.
|
|
| RadioLimits (const std::initializer_list< std::pair< QString, RadioLimitElement * > > &list, QObject *parent=nullptr) |
| | Constructor from initializer list.
|
|
bool | hasCallSignDB () const |
| | Returns true if the radio supports a call-sign DB.
|
|
bool | callSignDBImplemented () const |
| | Returns true if the call-sign DB is implemented.
|
|
unsigned | numCallSignDBEntries () const |
| | Returns the maximum number of entries in the call-sign DB.
|
|
bool | hasSatelliteConfig () const |
| | Returns true if the radio supports satellite config.
|
|
bool | satelliteConfigImplemented () const |
| | Returns true if satellite config is implemented.
|
|
unsigned | numSatellites () const |
| | Returns the maximum number of satellites.
|
|
| RadioLimitItem (QObject *parent=nullptr) |
| | Empty constructor.
|
| | RadioLimitItem (const PropList &list, QObject *parent=nullptr) |
| | Constructor from initializer list.
|
| bool | add (const QString &prop, RadioLimitElement *structure) |
| | Adds a property declaration.
|
| virtual bool | verify (const ConfigItem *item, const QMetaProperty &prop, RadioLimitContext &context) const |
| | Verifies the given property of the specified item.
|
| virtual bool | verifyItem (const ConfigItem *item, RadioLimitContext &context) const |
| | Verifies the properties of the given item.
|
|
virtual | ~RadioLimitElement () |
| | Destructor.
|
|
| | AnytoneLimits (const QString &hardwareRevision, const QString &supportedRevision, bool betaWarning, QObject *parent=nullptr) |
| | Constructor.
|
|
| RadioLimitElement (QObject *parent=nullptr) |
| | Hidden constructor.
|
|
|
QString | _hardwareRevision |
| | Holds the hardware revision of the radio.
|
|
QString | _supportedRevision |
| | Holds the supported hardware revision of the radio.
|
|
bool | _betaWarning |
| | If true, a warning is issued that the radio is still under development and not well tested yet.
|
|
bool | _hasCallSignDB |
| | If true, the radio supports a call-sign DB.
|
|
bool | _callSignDBImplemented |
| | If true, the call-sign is implemented.
|
|
unsigned | _numCallSignDBEntries |
| | Holds the number of possible call-sign DB entries.
|
|
bool | _hasSatelliteConfig |
| | If true, the radio supports satellite config.
|
|
bool | _satelliteConfigImplemented |
| | If true, satellite config is implemented.
|
|
unsigned | _numSatellites |
| | Holds the number of possible satellites.
|
|
QHash< QString, RadioLimitElement * > | _elements |
| | Holds the property <-> limits map.
|
Base class of limits for all AnyTone radios.
This class extends RadioLimits and implements the hardware revision check.
◆ AnytoneLimits()
| AnytoneLimits::AnytoneLimits |
( |
const QString & | hardwareRevision, |
|
|
const QString & | supportedRevision, |
|
|
bool | betaWarning, |
|
|
QObject * | parent = nullptr ) |
|
protected |
Constructor.
- Parameters
-
| hardwareRevision | Specifies the hardware revision as reported by the radio. If empty, no check is perfored. |
| supportedRevision | Specifies the supported hardware revision. |
| betaWarning | If true, a warning is issued that the radio is still under development. |
| parent | Specifies the QObject parent. |
◆ verifyConfig()
Verifies the given configuration.
Reimplemented from RadioLimits.
The documentation for this class was generated from the following files:
- /builddir/build/BUILD/qdmr-0.14.1-build/qdmr-0.14.1/lib/anytone_limits.hh
- /builddir/build/BUILD/qdmr-0.14.1-build/qdmr-0.14.1/lib/anytone_limits.cc