mirror of https://github.com/nymea/nymea.git
28 lines
485 B
C++
28 lines
485 B
C++
#ifndef RULE_H
|
|
#define RULE_H
|
|
|
|
#include "state.h"
|
|
#include "action.h"
|
|
#include "trigger.h"
|
|
|
|
#include <QUuid>
|
|
|
|
class Rule
|
|
{
|
|
public:
|
|
Rule(const QUuid &id, const Trigger &trigger, const QList<State> states, const QList<Action> &actions);
|
|
|
|
QUuid id() const;
|
|
Trigger trigger() const;
|
|
QList<State> states() const;
|
|
QList<Action> actions() const;
|
|
|
|
private:
|
|
QUuid m_id;
|
|
Trigger m_trigger;
|
|
QList<State> m_states;
|
|
QList<Action> m_actions;
|
|
};
|
|
|
|
#endif // RULE_H
|