diff options
| author | 2014-01-04 16:24:54 +0100 | |
|---|---|---|
| committer | 2014-01-04 16:24:54 +0100 | |
| commit | 4de8cf5796446b7f8b09d776e4a6a6d6b8e95cb6 (patch) | |
| tree | d0553a394e50d1de1a5185a7006fe3cb66cbfa3b /booleancondition.h | |
| parent | 4114232457cbc5739872f479ef5d7772e6b5f42f (diff) | |
| download | OneRoll-4de8cf5796446b7f8b09d776e4a6a6d6b8e95cb6.tar.gz OneRoll-4de8cf5796446b7f8b09d776e4a6a6d6b8e95cb6.zip | |
-Adding range, booleancondition and countexecutenode.
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 |