CVersitRecurrenceYearlyByDay Class Reference

#include <app/vrecur.h>

Link against: vcal.lib

class CVersitRecurrenceYearlyByDay : public CVersitRecurrence

Inherits from

Detailed Description

Defines a list of days when a 'yearly by day' recurrence is to be repeated.

Used by a repeating event (a vCalendar event or to-do) to define when it is to occur.

The days on which the repeat occurs are identified by their day number in the year (between 1 and 366 inclusive).

A pointer to this object may be owned by a CParserPropertyValueRecurrence object.

Member Attribute Documentation

iArrayOfDaysInYearOccurrences

CArrayFix< TInt > *iArrayOfDaysInYearOccurrences

Pointer to an array of integers between 1 and 366 inclusive.

Each integer represents a day on which the repeat event occurs.

Constructor & Destructor Documentation

CVersitRecurrenceYearlyByDay ( TInt, TInt, TVersitDateTime *, CArrayFix< TInt > * )

IMPORT_CCVersitRecurrenceYearlyByDay(TIntaInterval,
TIntaDuration,
TVersitDateTime *aEndDate,
CArrayFix< TInt > *aArrayOfDaysInYearOccurrences
)

Constructs the CVersitRecurrenceYearlyByDay object.

Sets the repeat type to EYearlyByDay.

If a duration and an end date are both specified, the end date takes precedence.

ParameterDescription
aIntervalThe number of years between repeats.
aDurationThe duration, in years, for which the event should recur. A value of zero indicates the repeat should continue forever.
aEndDateOptional pointer to the end date for the repeat event. The object takes ownership of this pointer.
aArrayOfDaysInYearOccurrencesPointer to an array of integers between 1 and 366 inclusive. Each integer represents a day on which the repeat event occurs. The object takes ownership of this pointer.

~CVersitRecurrenceYearlyByDay ( )

IMPORT_C~CVersitRecurrenceYearlyByDay()

Frees all resources owned by the object, prior to its destruction.

Member Function Documentation

ExternalizeOccurrenceListsL ( RWriteStream & )

IMPORT_C voidExternalizeOccurrenceListsL(RWriteStream &aStream)const [virtual]

Reimplemented from CVersitRecurrence::ExternalizeOccurrenceListsL(RWriteStream &)const

Writes the days of the year on which the event occurs to the output stream, aStream.

For example, the function might write the string "10 11 12 13 14 15 ".

ParameterDescription
aStreamThe stream to which the occurrence list is to be written.