clean up
This commit is contained in:
parent
eceb277f02
commit
5237ba09c1
@ -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;
|
||||
|
||||
@ -59,6 +59,7 @@ private:
|
||||
bool evaluateDaily(const QDateTime &dateTime) const;
|
||||
bool evaluateWeekly(const QDateTime &dateTime) const;
|
||||
bool evaluateMonthly(const QDateTime &dateTime) const;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user