Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

QOccurrence Class Reference
[QtMessagingModule, QtPimModule, QtTelephonyModule, QtUiModule]

The QOccurrence class holds the data of an occurrence of a calendar appointment. More...

    #include <QOccurrence>

Public Functions


Detailed Description

The QOccurrence class holds the data of an occurrence of a calendar appointment.

This data includes descriptive data of the appointment and scheduling information.

See also QAppointment and Pim Library.


Member Function Documentation

QOccurrence::QOccurrence ()

Constructs an empty occurrence.

QOccurrence::QOccurrence ( const QOccurrence & occurrence )

Constructs a copy of occurrence;

QOccurrence::QOccurrence ( const QDate & date, const QAppointment & appointment )

Constructs an occurrence of the appointment occurring on date. Does not check whether this is a valid occurrence for the appointment.

QOccurrence::~QOccurrence ()

Destroys the occurrence.

QAppointment::AlarmFlags QOccurrence::alarm () const

Returns the type of alarm to sound.

int QOccurrence::alarmDelay () const

Returns the number of minutes before the appointment to activate the alarm.

QDateTime QOccurrence::alarmInCurrentTZ () const

Returns the date and time for the alarm of the occurrence in the current time zone.

QAppointment QOccurrence::appointment () const

Returns the appointment associated with the occurrence.

QList<QString> QOccurrence::categories () const

Returns the set of categories the appointment belongs to.

bool QOccurrence::conflicts ( const QOccurrence & other ) const

Returns true if the occurrence overlaps with the other occurrence. Otherwise returns false.

bool QOccurrence::conflicts ( const QDateTime & from, const QDateTime & to ) const

This is an overloaded member function, provided for convenience.

Returns true if the occurrence overlaps with the time period starting at from and ending at to. Otherwise returns false.

QDate QOccurrence::date () const

Returns the date that the occurrence starts.

See also endDate(), start(), and end().

QString QOccurrence::description () const

Returns the description of the appointment associated with the occurrence.

QDateTime QOccurrence::end () const

Returns date and time that the occurrence ends.

See also start(), date(), and endDate().

QDate QOccurrence::endDate () const

Returns the date that the occurrence ends.

See also date(), start(), and end().

QDateTime QOccurrence::endInCurrentTZ () const

Returns the end date and time of the occurrence in the current time zone.

bool QOccurrence::isValid () const

Returns true if the occurrence contains valid data. Otherwise returns false.

QString QOccurrence::location () const

Returns the location of the appointment associated with the occurrence.

QOccurrence QOccurrence::nextOccurrence () const

If the appointment has an occurrence following this occurrence, returns the following occurrence. Otherwise returns a null occurrence.

QString QOccurrence::notes () const

Returns the notes of the appointment associated with the occurrence.

QDateTime QOccurrence::start () const

Returns date and time that the occurrence starts.

See also end(), date(), and endDate().

QDateTime QOccurrence::startInCurrentTZ () const

Returns the start date and time of the occurrence in the current time zone.

QTimeZone QOccurrence::timeZone () const

Returns the notes of the time zone associated with the occurrence.

QUniqueId QOccurrence::uid () const

Returns the unique ID for the appointment associated with the occurrence.

QOccurrence & QOccurrence::operator= ( const QOccurrence & other )

Sets the occurrence to be a copy of other.

bool QOccurrence::operator== ( const QOccurrence & other ) const

Returns true if this occurrence is equal to other. Otherwise returns false.


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3