Detailed Description
The QOrganizerItemOccurrenceFetchRequest class allows a client to asynchronously fetch occurrences generated by a recurring item.
This request will fetch both generated occurrences and persisted occurrences, which match the specified criteria, of the given parent item.
Member Function Documentation
QOrganizerItemOccurrenceFetchRequest::QOrganizerItemOccurrenceFetchRequest(QObject * parent = 0)
Constructs a new organizer item occurrence fetch request whose parent is the specified parent.
QOrganizerItemOccurrenceFetchRequest::~QOrganizerItemOccurrenceFetchRequest()
Frees memory in use by this request.
QDateTime QOrganizerItemOccurrenceFetchRequest::endDate() const
Returns the date-time which is the upper bound for the range in which occurrences will be returned.
See also setEndDate().
QOrganizerItemFetchHint QOrganizerItemOccurrenceFetchRequest::fetchHint() const
Returns the fetch hint which may be used by the backend to optimize item retrieval.
A client should not make changes to a item which has been retrieved using a fetch hint other than the default fetch hint. Doing so will result in information loss when saving the item back to the manager (as the "new" restricted item will replace the previously saved item in the backend).
See also setFetchHint().
QList<QOrganizerItem> QOrganizerItemOccurrenceFetchRequest::itemOccurrences() const
Returns the list of organizer item occurrences retrieved by this request.
int QOrganizerItemOccurrenceFetchRequest::maxOccurrences() const
Returns the maximum number of occurrences to return for the request.
See also setMaxOccurrences().
QOrganizerItem QOrganizerItemOccurrenceFetchRequest::parentItem() const
Returns the parent item, whose occurrences are to be fetched.
See also setParentItem().
void QOrganizerItemOccurrenceFetchRequest::setEndDate(const QDateTime & date)
Sets the end period of the request to date.
A default-constructed (invalid) end date time specifies an open end date time (matches anything which occurs after the start date time).
See also endDate().
void QOrganizerItemOccurrenceFetchRequest::setFetchHint(const QOrganizerItemFetchHint & fetchHint)
Sets the fetch hint which may be used by the backend to optimize item retrieval to fetchHint.
A client should not make changes to a item which has been retrieved using a fetch hint other than the default fetch hint. Doing so will result in information loss when saving the item back to the manager (as the "new" restricted item will replace the previously saved item in the backend).
See also fetchHint().
void QOrganizerItemOccurrenceFetchRequest::setMaxOccurrences(int maxCount)
Sets the maximum number of occurrences to fetch to maxCount.
Note that backends will decide how many items are fetched if maxCount is negative.
See also maxOccurrences().
void QOrganizerItemOccurrenceFetchRequest::setParentItem(const QOrganizerItem & item)
Sets the parent item, whose occurrences are to be fetched to item.
See also parentItem().
void QOrganizerItemOccurrenceFetchRequest::setStartDate(const QDateTime & date)
Sets the start period of the request to date.
A default-constructed (invalid) start date time specifies an open start date time (matches anything which occurs up until the end date time).
See also startDate().
QDateTime QOrganizerItemOccurrenceFetchRequest::startDate() const
Returns the date-time which is the lower bound for the range in which occurrences will be returned.
See also setStartDate().