Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: VRECUR.H
Link against: vcal.lib

Class CVersitRecurrenceYearlyByMonth

class CVersitRecurrenceYearlyByMonth : public CVersitRecurrence;

Description

Defines a list of months when a 'yearly by month' recurrence is to repeat.

Used by a repeating event (a vCalendar event or to-do) to define the months in which it is to occur. The months on which the event occurs are identified by their number in the year (between 1 and 12 inclusive).

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

Derivation

Members

Defined in CVersitRecurrenceYearlyByMonth:
CVersitRecurrenceYearlyByMonth(), ExternalizeOccurrenceListsL(), iArrayOfMonthsInYearOccurrences, ~CVersitRecurrenceYearlyByMonth()

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

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


Construction and destruction


CVersitRecurrenceYearlyByMonth()

IMPORT_C CVersitRecurrenceYearlyByMonth(TInt aInterval, TInt aDuration, TVersitDateTime *aEndDate, CArrayFix< TMonth > *aArrayOfMonthsInYearOccurrences);

Description

Constructs the CVersitRecurrenceYearlyByMonth object.

Sets the repeat type to CVersitRecurrence::EYearlyByMonth.

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

Parameters

TInt aInterval

The number of years between repeats.

TInt aDuration

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

TVersitDateTime *aEndDate

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

CArrayFix< TMonth > *aArrayOfMonthsInYearOccurrences

Pointer to an array of month values. The object takes ownership of this pointer.


~CVersitRecurrenceYearlyByMonth()

IMPORT_C ~CVersitRecurrenceYearlyByMonth();

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 months of the year, as month numbers, in which the event occurs to the output stream.

For example, if the event occurs from September to December inclusive, the string written to aStream would be "9 10 11 12 ".

Parameters

RWriteStream &aStream

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

[Top]


Member data


iArrayOfMonthsInYearOccurrences

CArrayFix< TMonth > * iArrayOfMonthsInYearOccurrences;

Description

Pointer to an array of month values.