Describes the repeating option of a time item. More...
Header: | #include <RepeatingOption> |
enum | RepeatingMode { RepeatingModeNone, RepeatingModeHourly, RepeatingModeDaily, RepeatingModeWeekly, RepeatingModeMonthly, RepeatingModeYearly } |
RepeatingOption() | |
RepeatingOption(const RepeatingMode & mode, const QList<int> & weekDays = QList<int> (), const QList<int> & monthDays = QList<int> ()) | |
bool | evaluateMonthDay(const QDateTime & dateTime) const |
bool | evaluateWeekDay(const QDateTime & dateTime) const |
bool | isEmtpy() const |
bool | isValid() const |
RepeatingMode | mode() const |
QList<int> | monthDays() const |
QList<int> | weekDays() const |
Describes the repeating option of a time item.
The list of weekDays() can contain following values:
Weekday | int |
---|---|
Monday | 1 |
Tuesday | 2 |
Wednesday | 3 |
Thursday | 4 |
Friday | 5 |
Saturday | 6 |
Sunday | 7 |
See also Rule and TimeDescriptor.
This enum type specifies the mode of a RepeatingOption.
Constant | Value | Description |
---|---|---|
nymeaserver::RepeatingOption::RepeatingModeNone | 0 | There is no special repeating mode. The RuleEngine will assume a daily repeating. |
nymeaserver::RepeatingOption::RepeatingModeHourly | 1 | The time item should be repeated hourly. The monthDays() and weekDays() list has to be empty. |
nymeaserver::RepeatingOption::RepeatingModeDaily | 2 | The time item should be repeated daily. The monthDays() and weekDays() list has to be empty. |
nymeaserver::RepeatingOption::RepeatingModeWeekly | 3 | The time item should be repeated weekly. A week starts at Monday. This mode needs a list of weekDays(). The monthDays() list has to empty. |
nymeaserver::RepeatingOption::RepeatingModeMonthly | 4 | The time item should be repeated every month. This mode needs a list of monthDays(). The monthDays() list has to be empty. |
nymeaserver::RepeatingOption::RepeatingModeYearly | 5 | The time item should be repeated every year. The monthDays() and weekDays() list has to be empty. |
Constructs an empty RepeatingOption.
Constructs a RepeatingOption with the given mode, weekDays list and monthDays list.
Returns true if the month day of the given dateTime matches this RepeatingOption.
Returns true if the week day of the given dateTime matches this RepeatingOption.
Returns true if this RepeatingOption is empty.
Returns true if this RepeatingOption is valid.
Returns the mode of this RepeatingOption.
Returns the list of month days on which this RepeatingOption should be valid.
Returns the list of week days on which this RepeatingOption should be valid.