QtMobility Reference Documentation

QOrganizerEventTime Class Reference

The QOrganizerEventTime class contains the start and end dates and times of a recurring event series, or occurrence of an event. More...

 #include <QOrganizerEventTime>

Inherits: QOrganizerItemDetail.

This class was introduced in Qt Mobility 1.1.

Public Functions

QDateTime endDateTime () const
bool isAllDay () const
void setAllDay ( bool isAllDay )
void setEndDateTime ( const QDateTime & dueDateTime )
void setStartDateTime ( const QDateTime & startDateTime )
QDateTime startDateTime () const

Static Public Members

const QLatin1Constant DefinitionName
const QLatin1Constant FieldAllDay
const QLatin1Constant FieldEndDateTime
const QLatin1Constant FieldStartDateTime

Detailed Description

The QOrganizerEventTime class contains the start and end dates and times of a recurring event series, or occurrence of an event.

Member Function Documentation

QDateTime QOrganizerEventTime::endDateTime () const

Returns the event time's due date and time as QDateTime. For all-day events, the time part is meaningless, and the date is to be interpreted as the inclusive end date.

See also setEndDateTime() and QOrganizerEvent::endDateTime().

bool QOrganizerEventTime::isAllDay () const

Returns true if a specific time was specified for the event. Returns false if the event is an all-day event.

This function was introduced in Qt Mobility 1.1.

void QOrganizerEventTime::setAllDay ( bool isAllDay )

Sets the all-day status of the event to isAllDay. If the event is an all-day event, no time is considered to be specified for the event, even if a start or end date time set for the event has a time component.

This function was introduced in Qt Mobility 1.1.

See also isAllDay().

void QOrganizerEventTime::setEndDateTime ( const QDateTime & dueDateTime )

Sets the event time's due date and time to dueDateTime. For all-day events, the time part can be set to any valid value, and the date is to be interpreted as the inclusive end date.

This function was introduced in Qt Mobility 1.1.

See also endDateTime() and QOrganizerEvent::setEndDateTime().

void QOrganizerEventTime::setStartDateTime ( const QDateTime & startDateTime )

Sets the event time's start date and time to startDateTime. For all-day events, the time part can be set to any valid value.

This function was introduced in Qt Mobility 1.1.

See also startDateTime() and QOrganizerEvent::setStartDateTime().

QDateTime QOrganizerEventTime::startDateTime () const

Returns the event time's start date and time as QDateTime. For all-day events, the time part is meaningless.

This function was introduced in Qt Mobility 1.1.

See also setStartDateTime() and QOrganizerEvent::startDateTime().

Member Variable Documentation

const QLatin1Constant QOrganizerEventTime::DefinitionName

The constant string which identifies the definition of details which contain a start and end timestamps of an event series or event occurrence.

const QLatin1Constant QOrganizerEventTime::FieldAllDay

The constant key for the specification of whether the time is significant in the start datetime of the QOrganizerEventTime type.

const QLatin1Constant QOrganizerEventTime::FieldEndDateTime

The constant key for which the end date and time value is stored in details of the QOrganizerEventTime type.

const QLatin1Constant QOrganizerEventTime::FieldStartDateTime

The constant key for which the start date and time value is stored in details of the QOrganizerEventTime type.

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.