Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: VRECUR.H
Link against: vcal.lib

Class CVersitRecurrenceWeekly

class CVersitRecurrenceWeekly : public CVersitRecurrence;

Description

Defines a list of days when a 'weekly' 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 event occurs are identified by the number of weeks between repeats and the day(s) of the week on which the event occurs, e.g. on Monday every other week.

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

Derivation

Members

Defined in CVersitRecurrenceWeekly:
CVersitRecurrenceWeekly(), ExternalizeOccurrenceListsL(), iArrayOfWeekDayOccurrences, ~CVersitRecurrenceWeekly()

Inherited from CBase:
Delete(), Extension_(), operator new()

Inherited from CVersitRecurrence:
EDaily, EMonthlyByDay, EMonthlyByPos, EWeekly, EYearlyByDay, EYearlyByMonth, TType, iDuration, iEndDate, iInterval, iRepeatType


Construction and destruction


CVersitRecurrenceWeekly()

IMPORT_C CVersitRecurrenceWeekly(TInt aInterval, TInt aDuration, TVersitDateTime *aEndDate, CWeekDayArray *aArrayOfWeekDayOccurrences);

Description

Constructs the CVersitRecurrenceWeekly object.

Initialises the interval, the duration, optionally, an end date for the repeat and, optionally, a pointer to an array of the days of the week on which the repeat event occurs. Sets the repeat type to EWeekly.

Parameters

TInt aInterval

The number of weeks between repeats.

TInt aDuration

The duration, in weeks, for which the event should recur. A value of zero indicates the repeat should continue forever.

TVersitDateTime *aEndDate

Pointer to the end date for the repeat. The object takes ownership of this pointer.

CWeekDayArray *aArrayOfWeekDayOccurrences

Array of the days of the week on which the repeat event occurs. The object takes ownership of this pointer.


~CVersitRecurrenceWeekly()

IMPORT_C ~CVersitRecurrenceWeekly();

Description

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

[Top]


Member functions


ExternalizeOccurrenceListsL()

virtual IMPORT_C void ExternalizeOccurrenceListsL(RWriteStream &aStream) const;

Description

Writes the codes for the days of the week on which the event occurs (e.g. "TU TH") to the outgoing stream, aStream.

Parameters

RWriteStream &aStream

The stream to which the occurrence list is to be written.

[Top]


Member data


iArrayOfWeekDayOccurrences

CWeekDayArray * iArrayOfWeekDayOccurrences;

Description