From 4de8cf5796446b7f8b09d776e4a6a6d6b8e95cb6 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sat, 4 Jan 2014 16:24:54 +0100 Subject: -Adding range, booleancondition and countexecutenode. --- booleancondition.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 booleancondition.h (limited to 'booleancondition.h') 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 +#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 -- cgit v1.2.3-70-g09d2