blob: e757a2e8eb9cb23e1ecc5356d346928e8581ce19 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
|