#ifndef RULEENGINE_H #define RULEENGINE_H #include "rule.h" #include "trigger.h" #include #include #include class RuleEngine : public QObject { Q_OBJECT public: enum RuleError { RuleErrorNoError, RuleErrorDeviceNotFound, RuleErrorTriggerTypeNotFound }; explicit RuleEngine(QObject *parent = 0); QList evaluateTrigger(const Trigger &trigger); RuleError addRule(const Trigger &trigger, const Action &action); QList rules() const; private: QList m_rules; }; #endif // RULEENGINE_H