libdrmconf  0.10.4
A library to program DMR radios.
Public Member Functions | List of all members
RadioLimitSingleZone Class Reference

Specialized RadioLimitObject handling a zone for radio supporting only a single channel list per zone. More...

#include <radiolimits.hh>

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

Public Member Functions

 RadioLimitSingleZone (qint64 maxSize, const PropList &list, QObject *parent=nullptr)
 Constructor. More...
 
bool verifyItem (const ConfigItem *item, RadioLimitContext &context) const
 Verifies the properties of the given item.
 
- Public Member Functions inherited from RadioLimitObject
 RadioLimitObject (QObject *parent=nullptr)
 Empty constructor.
 
 RadioLimitObject (const PropList &list, QObject *parent=nullptr)
 Constructor from initializer list. More...
 
virtual bool verifyObject (const ConfigObject *item, RadioLimitContext &context) const
 Verifies the properties of the given object.
 
- Public Member Functions inherited from RadioLimitItem
 RadioLimitItem (QObject *parent=nullptr)
 Empty constructor.
 
 RadioLimitItem (const PropList &list, QObject *parent=nullptr)
 Constructor from initializer list. More...
 
bool add (const QString &prop, RadioLimitElement *structure)
 Adds a property declaration. More...
 
virtual 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.
 

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 RadioLimitElement
 RadioLimitElement (QObject *parent=nullptr)
 Hidden constructor.
 
- Protected Attributes inherited from RadioLimitItem
QHash< QString, RadioLimitElement * > _elements
 Holds the property <-> limits map.
 

Detailed Description

Specialized RadioLimitObject handling a zone for radio supporting only a single channel list per zone.

Checks if a zone contains two sets of channel lists and notifies the user that the zone gets split.

Constructor & Destructor Documentation

◆ RadioLimitSingleZone()

RadioLimitSingleZone::RadioLimitSingleZone ( qint64  maxSize,
const PropList list,
QObject *  parent = nullptr 
)

Constructor.

Parameters
maxSizeSpecifies the maximum size of the zone. If -1, no check is performed.
listInitializer list for further zone properties.
parentSpecifies the QObject parent.

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