KexiDB::ObjectNameValidator Class Reference
#include <dbobjectnamevalidator.h>
Inheritance diagram for KexiDB::ObjectNameValidator:
Public Member Functions | |
| ObjectNameValidator (KexiDB::Driver *drv, TQObject *parent=0, const char *name=0) | |
Public Member Functions inherited from KexiUtils::Validator | |
| Validator (TQObject *parent=0, const char *name=0) | |
| void | setAcceptsEmptyValue (bool set) |
| bool | acceptsEmptyValue () const |
| Result | check (const TQString &valueName, const TQVariant &v, TQString &message, TQString &details) |
| virtual TQValidator::State | validate (TQString &input, int &pos) const |
| void | addChildValidator (Validator *v) |
Protected Member Functions | |
| virtual KexiUtils::Validator::Result | internalCheck (const TQString &valueName, const TQVariant &v, TQString &message, TQString &details) |
Protected Attributes | |
| TQGuardedPtr< KexiDB::Driver > | m_drv |
Protected Attributes inherited from KexiUtils::Validator | |
| bool | m_acceptsEmptyValue: 1 |
Additional Inherited Members | |
Public Types inherited from KexiUtils::Validator | |
| enum | Result { Error = 0 , Ok = 1 , Warning = 2 } |
Static Public Member Functions inherited from KexiUtils::Validator | |
| static const TQString | msgColumnNotEmpty () |
Detailed Description
Validates input: accepts if the name is not reserved for internal kexi objects.
Definition at line 33 of file dbobjectnamevalidator.h.
Constructor & Destructor Documentation
◆ ObjectNameValidator()
| ObjectNameValidator::ObjectNameValidator | ( | KexiDB::Driver * | drv, |
| TQObject * | parent = 0, |
||
| const char * | name = 0 |
||
| ) |
drv is a KexiDB driver on which isSystemObjectName() will be called inside check(). If drv is 0, KexiDB::Driver::isKexiDBSystemObjectName() static function is called instead.
Definition at line 27 of file dbobjectnamevalidator.cpp.
◆ ~ObjectNameValidator()
|
virtual |
Definition at line 34 of file dbobjectnamevalidator.cpp.
Member Function Documentation
◆ internalCheck()
|
protectedvirtual |
Reimplemented from KexiUtils::Validator.
Definition at line 38 of file dbobjectnamevalidator.cpp.
Member Data Documentation
◆ m_drv
|
protected |
Definition at line 45 of file dbobjectnamevalidator.h.
The documentation for this class was generated from the following files:

Public Member Functions inherited from