kexi
dbobjectnamevalidator.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KEXIDBOBJECTNAMEVALIDATOR_H
00021 #define KEXIDBOBJECTNAMEVALIDATOR_H
00022
00023 #include <kexiutils/validator.h>
00024 #include <qstring.h>
00025 #include <qguardedptr.h>
00026
00027 namespace KexiDB {
00028
00029 class Driver;
00030
00033 class KEXI_DB_EXPORT ObjectNameValidator : public KexiUtils::Validator
00034 {
00035 public:
00039 ObjectNameValidator(KexiDB::Driver *drv, QObject * parent = 0, const char * name = 0);
00040 virtual ~ObjectNameValidator();
00041
00042 protected:
00043 virtual KexiUtils::Validator::Result internalCheck(const QString &valueName, const QVariant& v,
00044 QString &message, QString &details);
00045 QGuardedPtr<KexiDB::Driver> m_drv;
00046 };
00047 }
00048
00049 #endif
|