libdrmconf 0.15.0
A library to program DMR radios.
Loading...
Searching...
No Matches
RadioLimitPin Class Reference

Verifies string values containing only numbers. More...

#include <radiolimits.hh>

Inheritance diagram for RadioLimitPin:
Collaboration diagram for RadioLimitPin:

Public Member Functions

 RadioLimitPin (int length=-1, RadioLimitIssue::Severity severity=RadioLimitIssue::Severity::Warning, QObject *parent=nullptr)
 Constructor.
Public Member Functions inherited from RadioLimitStringRegEx
 RadioLimitStringRegEx (const QString &pattern, RadioLimitIssue::Severity severity=RadioLimitIssue::Severity::Warning, QObject *parent=nullptr)
 Constructor.
bool verify (const ConfigItem *item, const QMetaProperty &prop, RadioLimitContext &context) const
 Verifies the given property of the specified 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 RadioLimitValue
 RadioLimitValue (RadioLimitIssue::Severity severity=RadioLimitIssue::Severity::Hint, QObject *parent=nullptr)
 Hidden constructor.
Protected Member Functions inherited from RadioLimitElement
 RadioLimitElement (QObject *parent=nullptr)
 Hidden constructor.
Protected Attributes inherited from RadioLimitStringRegEx
QRegularExpression _pattern
 Holds the regular expression pattern.
Protected Attributes inherited from RadioLimitValue
RadioLimitIssue::Severity _severity
 The severity of the issue, if the test fails.

Detailed Description

Verifies string values containing only numbers.

Constructor & Destructor Documentation

◆ RadioLimitPin()

RadioLimitPin::RadioLimitPin ( int length = -1,
RadioLimitIssue::Severity severity = RadioLimitIssue::Severity::Warning,
QObject * parent = nullptr )

Constructor.

Parameters
lengthSpecifies the maximum length of the pin. If -1, length is not limited.
severitySpecifies the severity of the issue.
parentSpecifies the QObject parent.

The documentation for this class was generated from the following files:
  • /builddir/build/BUILD/qdmr-0.15.0-build/qdmr-0.15.0/lib/radiolimits.hh
  • /builddir/build/BUILD/qdmr-0.15.0-build/qdmr-0.15.0/lib/radiolimits.cc