#include "booleancondition.h" BooleanCondition::BooleanCondition() { } bool BooleanCondition::isValid(qint64 b) const { switch(m_operator) { case Equal: return (b==m_value); case GreaterThan: return (b>m_value); case LesserThan: return (b=m_value); case LesserOrEqual: return (b<=m_value); } return false; } void BooleanCondition::setOperator(LogicOperator m) { m_operator = m; } void BooleanCondition::setValue(qint64 v) { m_value=v; }