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

Represents an ignored element in the codeplug. More...

#include <radiolimits.hh>

Inheritance diagram for RadioLimitIgnored:
Collaboration diagram for RadioLimitIgnored:

Public Member Functions

 RadioLimitIgnored (RadioLimitIssue::Severity notify=RadioLimitIssue::Hint, QObject *parent=nullptr)
 Constructor for a ignored setting verification element.
 
bool verify (const ConfigItem *item, const QMetaProperty &prop, RadioLimitContext &context) const
 Verifies the given property of the specified item.
 
bool verifyObject (const ConfigObject *item, RadioLimitContext &context) const
 Verifies the properties of the given object.
 
- Public Member Functions inherited from RadioLimitObject
 RadioLimitObject (QObject *parent=nullptr)
 Empty constructor.
 
 RadioLimitObject (const PropList &list, QObject *parent=nullptr)
 Constructor from initializer list.
 
- 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 verifyItem (const ConfigItem *item, RadioLimitContext &context) const
 Verifies the properties of the given item.
 
- Public Member Functions inherited from RadioLimitElement
virtual ~RadioLimitElement ()
 Destructor.
 

Protected Attributes

RadioLimitIssue::Severity _notification
 Holds the level of the notification.
 
- Protected Attributes inherited from RadioLimitItem
QHash< QString, RadioLimitElement * > _elements
 Holds the property <-> limits map.
 

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.
 

Detailed Description

Represents an ignored element in the codeplug.

Instances of this class might be used to inform the user about a configured feature not present in the particular radio.

Member Function Documentation

◆ verify()

bool RadioLimitIgnored::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.

Reimplemented from RadioLimitItem.

◆ verifyObject()

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

Verifies the properties of the given object.

Reimplemented from RadioLimitObject.


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