QOrganizerItemParent Class

The QOrganizerItemParent class contains information about the event or todo that generated this item. More...

Header: #include <QOrganizerItemParent>
Inherits: QOrganizerItemDetail

Public Types

enum ParentField { FieldParentId, FieldOriginalDate, FieldDetached }

Public Functions

bool isDetached() const
QDate originalDate() const
QOrganizerItemId parentId() const
void setDetached(bool detached)
void setOriginalDate(const QDate & date)
void setParentId(const QOrganizerItemId & parentId)

Detailed Description

The QOrganizerItemParent class contains information about the event or todo that generated this item.

Member Type Documentation

enum QOrganizerItemParent::ParentField

This enumeration defines the fields supported by QOrganizerItemParent.

ConstantValueDescription
QOrganizerItemParent::FieldParentIdTypeParent + 1The value stored describes the ID of the item's parent item.
QOrganizerItemParent::FieldOriginalDate?The value stored describes the original date of this instance or exception according to the recurrent series of the parent item is stored.
QOrganizerItemParent::FieldDetached?The value stored describes if the event is detached recurrence or not.

Member Function Documentation

bool QOrganizerItemParent::isDetached() const

Returns if the item is a detached recurrence or not A parent is considered detached from the child item if the child item is a persistent exception occurrence of that parent series.

QDate QOrganizerItemParent::originalDate() const

Returns the original date of this instance origin item.

See also setOriginalDate().

QOrganizerItemId QOrganizerItemParent::parentId() const

Returns the ID of the item instance origin's parent item.

See also setParentId().

void QOrganizerItemParent::setDetached(bool detached)

Sets if the item is a detached recurrence or not.

See also isDetached().

void QOrganizerItemParent::setOriginalDate(const QDate & date)

Sets the origin date to date.

See also originalDate().

void QOrganizerItemParent::setParentId(const QOrganizerItemId & parentId)

Sets the parent ID of this instance origin item to parentId.

See also parentId().