Qt Mobility Reference Documentation

QML OrganizerModel Element

The OrganizerModel element provides access to organizer items from the organizer store. More...

Properties

Methods

Detailed Description

This element is part of the QtMobility.organizer 1.1 module.

OrganizerModel provides a model of organizer items from the organizer store. The contents of the model can be specified with filter, sortOrders and fetchHint properties. Whether the model is automatically updated when the store or organizer item changes, can be controlled with OrganizerModel::autoUpdate property.

There are two ways of accessing the organizer item data: via model by using views and delegates, or alternatively via items list property. Of the two, the model access is preferred. Direct list access (i.e. non-model) is not guaranteed to be in order set by sortOrder.

At the moment the model roles provided by OrganizerModel are display and item. Through the item role can access any data provided by the OrganizerItem element.

See also OrganizerItem and QOrganizerManager.


Property Documentation

autoUpdate : bool

This property indicates whether or not the organizer model should be updated automatically, default value is true.

See also OrganizerModel::update().


read-onlyavailableManagers : list<string>

This property holds the list of available manager names. This property is read only.


endPeriod : date

This property holds the end date and time period used by the organizer model to fetch organizer items.


read-onlyerror : string

This property holds the latest error code returned by the organizer manager.

This property is read only.


eventOccurrences : QDeclarativeListProperty

This property holds a list of event occurrences in the organizer model.

See also EventOccurrence.


read-onlyevents : QDeclarativeListProperty

This property holds a list of events in the organizer model.

See also Event.


fetchHint : FetchHint

This property holds the fetch hint instance used by the organizer model.

See also FetchHint.


filter : Filter

This property holds the filter instance used by the organizer model.

See also Filter.


read-onlyitems : QDeclarativeListProperty

This property holds a list of organizer items in the organizer model.

See also OrganizerItem.


read-onlyjournals : QDeclarativeListProperty

This property holds a list of journal items in the organizer model.

See also Journal.


manager : string

This property holds the manager uri of the organizer backend engine.


read-onlynotes : QDeclarativeListProperty

This property holds a list of note items in the organizer model.

See also Note.


read-onlyoccurrences : QDeclarativeListProperty

This property holds a list of event or todo occurrence items in the organizer model.

See also Event, Todo, EventOccurrence, and TodoOccurrence.


read-onlysortOrders : QDeclarativeListProperty

This property holds a list of sort orders used by the organizer model.

See also SortOrder.


startPeriod : date

This property holds the start date and time period used by the organizer model to fetch organizer items.


read-onlytodoOccurrences : QDeclarativeListProperty

This property holds a list of todo occurrences in the organizer model.

See also TodoOccurrence.


read-onlytodos : QDeclarativeListProperty

This property holds a list of todos in the organizer model.

See also Todo.


Method Documentation

OrganizerModel::exportItems ( url url, list<string> profiles )

Export organizer items into a vcalendar file to the given url by optional profiles. At the moment only the local file url is supported in export method.


OrganizerModel::importItems ( url url, list<string> profiles )

Import organizer items from a vcalendar by the given url and optional profiles.


OrganizerModel::update ()

Manually update the organizer model content.

See also OrganizerModel::autoUpdate.


X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.