Documents > BPS V2 C++ API
bpsmaskvalidator.h
Go to the documentation of this file.
00001 
00004 #ifndef BPSMASKVALIDATOR_H
00005 #define BPSMASKVALIDATOR_H
00006 
00007 #include "bpsgui_global.h"
00008 #include <QValidator>
00009 
00015 class BPSGUI_EXPORT BpsMaskValidator : public QValidator
00016 {
00017     Q_OBJECT
00018     BPS_PRIVATE(BpsMaskValidator)
00019 
00020 public:
00024     BpsMaskValidator(QObject* aParent);
00025 
00030     BpsMaskValidator(const QString& aMask, QObject* aParent);
00031 
00033     virtual ~BpsMaskValidator();
00034     virtual State validate(QString& aInput, int& aPos) const;
00035     virtual void fixup(QString& aInput) const;
00037 
00041     QString mask() const;
00042 
00047     void setMask(const QString& aMask);
00048 
00052     int maxLength() const;
00053 
00057     int minLength() const;
00058 };
00059 
00060 #endif // BPSMASKVALIDATOR_H