EPOC   SDK Home Glossary Indexes Previous Next Up

CVersitRecurrenceMonthlyByPos class


Contents


CVersitRecurrenceMonthlyByPos class — Monthly recurrence by day position

Section Contents


Overview

Compatibility

Applications that use this class will not work correctly on a version of EPOC earlier than ER5.

Derivation

CBase

Abstract: CBase behaviour

CVersitRecurrence

Abstract: Recurrence details for a repeat event.

Defined in

vrecur.h

Link against

versit.lib

Description

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


Construction and destruction


CVersitRecurrenceMonthlyByPos() — C++ constructor with recurrence details

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

Description

The C++ constructor is used to construct the CVersitRecurrenceMonthlyByPos object with a specification for the repeat details.

Sets the repeat type (iRepeatType) to EMonthlyByPos.

Arguments

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 occurrence specifications.


~CVersitRecurrenceMonthlyByPos() — Destructor

~CVersitRecurrenceMonthlyByPos();

Description

The destructor frees all resources owned by the property, prior to its destruction.


CVersitRecurrenceMonthlyByPos::CMonthPosition class — Day occurrence within the month

Section Contents


Overview

Description

This class is nested within the CVersitRecurrenceMonthlyByPos class. It is used to indicate the days on which a monthly repeat event is to occur.

It 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.


Destruction


~CMonthPosition() — Destructor

~CMonthPosition();

Description

The destructor frees all resources owned by the object, prior to its destruction.


Enumerations


TSign enum — Whether week number is from start or end of month

EWeeksFromStartOfMonth

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

EWeeksFromEndOfMonth

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


Data members

CWeekDayArray* iArrayOfWeekDays

Pointer to an array of TDays.

TSign iSign

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

TInt iWeekNo

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.

EPOC       SDK Home Glossary Indexes Previous Next Up