Describes the time elements of a time based Rule. More...
Header: | #include <TimeDescriptor> |
TimeDescriptor() | |
QList<CalendarItem> | calendarItems() const |
bool | evaluate(const QDateTime & lastEvaluationTime, const QDateTime & dateTime) const |
bool | isEmpty() const |
bool | isValid() const |
void | setCalendarItems(const QList<CalendarItem> & calendarItems) |
void | setTimeEventItems(const QList<TimeEventItem> & timeEventItems) |
QList<TimeEventItem> | timeEventItems() const |
Describes the time elements of a time based Rule.
A time based rule can be described with a TimeDescriptor. The TimeDescriptor can have either a list of TimeEventItems or a list of CalendarItems, never both.
See also Rule, TimeEventItem, and CalendarItem.
Constructs an invalid TimeDescriptor.
Returns the list of CalendarItems of this TimeDescriptor.
See also setCalendarItems().
Returns true if this TimeDescriptor is valid for the given dateTime. A TimeDescriptor is valid if the TimeEventItems or CalendarItems match the given dateTime since the lastEvaluationTime.
Returns true if the calendarItems list and the timeEventItems list is empty.
Returns true if either the calendarItems list is not empty or the timeEventItems list.
Set the list of CalendarItems of this TimeDescriptor to the given calendarItems.
See also calendarItems().
Set the list of TimeEventItems of this TimeDescriptor to the given timeEventItems.
See also timeEventItems().
Returns the list of TimeEventItems of this TimeDescriptor.
See also setTimeEventItems().