|
libdrmconf
0.10.4
A library to program DMR radios.
|
Verifies that a string matches a regular expression. More...
#include <radiolimits.hh>


Public Member Functions | |
| RadioLimitStringRegEx (const QString &pattern, 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 RadioLimitElement | |
| virtual | ~RadioLimitElement () |
| Destructor. | |
Protected Attributes | |
| QRegExp | _pattern |
| Holds the regular expression pattern. | |
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 (QObject *parent=nullptr) | |
| Hidden constructor. | |
Protected Member Functions inherited from RadioLimitElement | |
| RadioLimitElement (QObject *parent=nullptr) | |
| Hidden constructor. | |
Verifies that a string matches a regular expression.
| RadioLimitStringRegEx::RadioLimitStringRegEx | ( | const QString & | pattern, |
| QObject * | parent = nullptr |
||
| ) |
Constructor.
| pattern | Specifies the regular expression pattern, the string must match. |
| parent | Specifies the QObject parent. |
|
virtual |
Verifies the given property of the specified item.
This method gets implemented by the specialized classes to implement the actual verification.
Implements RadioLimitElement.