libdrmconf 0.12.1
A library to program DMR radios.
Loading...
Searching...
No Matches
RadioLimitObject Class Reference

Represents the limits for all properties of a ConfigObject instance. More...

#include <radiolimits.hh>

Inheritance diagram for RadioLimitObject:
Collaboration diagram for RadioLimitObject:

Public Member Functions

 RadioLimitObject (QObject *parent=nullptr)
 Empty constructor.
 
 RadioLimitObject (const PropList &list, QObject *parent=nullptr)
 Constructor from initializer list.
 
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.
 
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.
 
- 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

Represents the limits for all properties of a ConfigObject instance.

Constructor & Destructor Documentation

◆ RadioLimitObject()

RadioLimitObject::RadioLimitObject ( const PropList & list,
QObject * parent = nullptr )

Constructor from initializer list.

The ownership of all passed elements are taken.

Member Function Documentation

◆ verifyObject()

bool RadioLimitObject::verifyObject ( const ConfigObject * item,
RadioLimitContext & context ) const
virtual

Verifies the properties of the given object.

Reimplemented in RadioLimitIgnored.


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