diff options
Diffstat (limited to 'booleancondition.h')
| -rw-r--r-- | booleancondition.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/booleancondition.h b/booleancondition.h new file mode 100644 index 0000000..e757a2e --- /dev/null +++ b/booleancondition.h @@ -0,0 +1,23 @@ +#ifndef BOOLEANCONDITION_H +#define BOOLEANCONDITION_H + +#include <Qt> +#include "validator.h" + +class BooleanCondition : public Validator +{ +public: + enum LogicOperator { Equal, GreaterThan, LesserThan, GreaterOrEqual, LesserOrEqual}; + BooleanCondition(); + + virtual bool isValid(qint64 b) const; + + void setOperator(LogicOperator m); + void setValue(qint64); + +private: + LogicOperator m_operator; + qint64 m_value; +}; + +#endif // BOOLEANCONDITION_H |