Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: vrecur.h
Link against: versit.lib

Class CVersitRecurrenceMonthlyByPos

CVersitRecurrenceMonthlyByPos

Support

Supported from 5.0

Description

Recurrence details specific to a monthly repeat event in a vCalendar. The days on which the repeat occurs are identified by their occurrence within the month (e.g. the second Monday, the last Friday etc.).

Derivation

CBaseBase class for all classes to be instantiated on the heap
CVersitRecurrenceAbstract base class for all versit recurrence classes
CVersitRecurrenceMonthlyByPosRecurrence details specific to a monthly repeat event in a vCalendar

Defined in CVersitRecurrenceMonthlyByPos:
CMonthPosition, CVersitRecurrenceMonthlyByPos(), ~CVersitRecurrenceMonthlyByPos()

Inherited from CBase:
operator new()

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


Construction and destruction


CVersitRecurrenceMonthlyByPos()

CVersitRecurrenceMonthlyByPos(TInt aInterval,TInt aDuration,TVersitDateTime* aEndDate,CArrayPtrFlat<CMonthPosition>* aMonthPositions);

Description

Constructs the object with the repeat details. Sets the repeat type (iRepeatType) to EMonthlyByPos.

Parameters

TInt aInterval

The interval in months between repeats.

TInt aDuration

The duration in months for the repeat.

TVersitDateTime* aEndDate

Pointer to the specification for the date at which the repeat will end.

CArrayPtrFlat<CMonthPosition>* aMonthPositions

Pointer to an array of day occurrences.


~CVersitRecurrenceMonthlyByPos()

~CVersitRecurrenceMonthlyByPos();

Description

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

[Top]


Class CMonthPosition

CMonthPosition

Description

Indicates the days on which a monthly repeat event occurs. This class is nested within the CVersitRecurrenceMonthlyByPos class.

Contains a week day array (CWeekDayArray), the numeric occurrence of the day within the month (between 1 and 5 inclusive) and whether the occurrence is calculated by counting from the start or the end of the month.

Defined in CVersitRecurrenceMonthlyByPos::CMonthPosition:
EWeeksFromEndOfMonth, EWeeksFromStartOfMonth, TSign, iArrayOfWeekDays, iSign, iWeekNo, ~CMonthPosition()


Destruction

~CMonthPosition()


~CMonthPosition();

Description

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


Enumerations

Enum TSign


TSign

Description

Flags that define whether the week number is from start or end of month.

EWeeksFromStartOfMonth

Indicates that the iWeekNo member specifies a number counting forwards from the start of the month.

EWeeksFromEndOfMonth

Indicates that the iWeekNo member specifies a number counting backwards from the end of the month.


Data members

iArrayOfWeekDays


CWeekDayArray* iArrayOfWeekDays

Description

Pointer to an array of TDays.

iSign


TSign iSign

Description

Indicates whether the week number iWeekNo is offset from the start or the end of the month.

iWeekNo


TInt iWeekNo

Description

The week number within the month. Used to calculate the occurrences of a day on which the repeat event is to occur. Between 1 and 5 inclusive.