This commit is contained in:
Simon Stürz 2016-04-07 09:59:43 +02:00 committed by Michael Zanetti
parent eceb277f02
commit 5237ba09c1
3 changed files with 6 additions and 4 deletions

View File

@ -74,11 +74,7 @@ public:
QList<Rule> evaluateTime(const QDateTime &dateTime);
RuleError addRule(const Rule &rule, bool fromEdit = false);
// RuleError addRule(const RuleId &ruleId, const QString &name, const QList<EventDescriptor> &eventDescriptorList, const QList<RuleAction> &actions, bool enabled = true);
// RuleError addRule(const RuleId &ruleId, const QString &name, const QList<EventDescriptor> &eventDescriptorList, const StateEvaluator &stateEvaluator, const QList<RuleAction> &actions, const QList<RuleAction> &exitActions, bool enabled = true, bool executable = true, bool fromEdit = false);
RuleError editRule(const Rule &rule);
// RuleError editRule(const RuleId &ruleId, const QString &name, const QList<EventDescriptor> &eventDescriptorList, const StateEvaluator &stateEvaluator, const QList<RuleAction> &actions, const QList<RuleAction> &exitActions, bool enabled = true, bool executable = true);
QList<Rule> rules() const;
QList<RuleId> ruleIds() const;

View File

@ -59,6 +59,7 @@ private:
bool evaluateDaily(const QDateTime &dateTime) const;
bool evaluateWeekly(const QDateTime &dateTime) const;
bool evaluateMonthly(const QDateTime &dateTime) const;
};
}

View File

@ -23,6 +23,7 @@
#include "timeeventitem.h"
#include "calendaritem.h"
#include "guhsettings.h"
namespace guhserver {
@ -42,6 +43,10 @@ public:
bool evaluate(const QDateTime &dateTime) const;
// void dumpToSettings(GuhSettings &settings, const QString &groupName) const;
// static TimeDescriptor loadFromSettings(GuhSettings &settings, const QString &groupPrefix);
private:
QList<TimeEventItem> m_timeEventItems;
QList<CalendarItem> m_calendarItems;