Qt Mobility Reference Documentation

QML OrganizerItem Element

The OrganizerItem element represents the in-memory version of a calendar organizer item, and has no tie to a specific backend calendar store. More...

Properties

Methods

Detailed Description

A OrganizerItem has a number of mandatory details. Different subclasses of OrganizerItem (i.e., Event, EventOccurrence, Journal, Todo, TodoOccurrence, Note) may have more mandatory details.

If some of the organizer item details are non-unique, all of this type of detail values can be accessed by dynamic properties. For example, there are 3 comment details stored in an event item, they can be accessed by event.comments property, which holds a list of all comment details. If the dynamic property does not exist (for unique details), an undefined value is returned. The list of dynamic detail properties depends on the engine implementations.

The OrganizerItem element is part of the QtMobility.organizer 1.1 module.

See also Event, EventOccurrence, Journal, Todo, TodoOccurrence, Note, QOrganizerManager, and QOrganizerItem.


Property Documentation

description : string

This property holds the description text of the organizer item.


read-onlydetails : QDeclarativeListProperty

This property holds the list of ItemDetail elements that the organizer item has.


displayLabel : string

This property holds the display label of the organizer item.


guid : string

This property holds the GUID string of the organizer item.


read-onlyitemId : int

This property holds the id of the OrganizerItem object. This property is read only.


read-onlymanager : string

This property holds the manager uri which the OrganizerItem object comes from.


read-onlymodified : bool

This property holds the dirty flag of the OrganizerItem object. If the OrganizerItem has been changed, returns true, otherwise returns false.

See also OrganizerItem::save.


read-onlytype : string

This property holds the type name of the organizer item. This property is read only.


Method Documentation

OrganizerItem::addComment ( comment )

Addes a comment for the organizer item.

See also OrganizerItem::clearComments().


OrganizerItem::clearComments ()

Removes all comments from the organizer item.

See also OrganizerItem::addComment().


OrganizerItem::clearDetails ()

Removes all details from the organizer item.

See also OrganizerItem::removeDetail().


QDeclarativeListProperty OrganizerItem::details ( name )

This method returns a list of details which detail name is name.


bool OrganizerItem::removeDetail ( detail )

Removes given detail from the organizer item. If the detail is not removable, returns false.

See also ItemDetail::removable.


OrganizerItem::save ()

Saves this OrganizerItem if the item has been modified.

See also OrganizerItem::modified.


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.