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

Issues a notification if a reference is set. More...

#include <radiolimits.hh>

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

Public Member Functions

 RadioLimitObjRefIgnored (ConfigObject *defObj=nullptr, RadioLimitIssue::Severity notify=RadioLimitIssue::Hint, QObject *parent=nullptr)
 Constructor. More...
 
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 RadioLimitObjRef
 RadioLimitObjRef (const QMetaObject &type, bool allowNull=true, QObject *parent=nullptr)
 Constructor. More...
 
- Public Member Functions inherited from RadioLimitElement
virtual ~RadioLimitElement ()
 Destructor.
 

Protected Attributes

RadioLimitIssue::Severity _severity
 The severity of the issue.
 
ConfigObject_default
 A weak reference to a default value, that gets silently ignored.
 
- Protected Attributes inherited from RadioLimitObjRef
bool _allowNull
 If true, a null reference is allowed.
 
QSet< QString > _types
 Possible classes of instances, the reference may point to.
 

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 RadioLimitObjRef
bool validType (const QMetaObject *type) const
 Checks if the given type is one of the valid ones in _types.
 
- Protected Member Functions inherited from RadioLimitElement
 RadioLimitElement (QObject *parent=nullptr)
 Hidden constructor.
 

Detailed Description

Issues a notification if a reference is set.

Constructor & Destructor Documentation

◆ RadioLimitObjRefIgnored()

RadioLimitObjRefIgnored::RadioLimitObjRefIgnored ( ConfigObject defObj = nullptr,
RadioLimitIssue::Severity  notify = RadioLimitIssue::Hint,
QObject *  parent = nullptr 
)

Constructor.

Parameters
defObjSpecifies a weak reference to a default object that gets silently ignored.
notifySpecifies the issue severity.
parentSpecifies the QObject parent.

Member Function Documentation

◆ verify()

bool RadioLimitObjRefIgnored::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 RadioLimitObjRef.


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