aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/booleancondition.h
blob: ba3dafd44bde4813c4f5b29a75e282c6f58652e6 (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 qint64 hasValid(Die* b,bool recursive) const;

    void setOperator(LogicOperator m);
    void setValue(qint64);

private:
    LogicOperator m_operator;
    qint64 m_value;
};

#endif // BOOLEANCONDITION_H