Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: agmrptd.h
Link against: agnmodel.lib

Class TAgnYearlyByDateRpt

TAgnYearlyByDateRpt

Support

Supported from 5.0

Description

A yearly by date repeat, for example 3rd October each year.

Derivation

TAgnRptThis class stores the repeat details common to all agenda model repeat types
TAgnYearlyByDateRptA yearly by date repeat, for example 3rd October each year

Defined in TAgnYearlyByDateRpt:
FindRptEndDate(), InstanceCount(), TAgnYearlyByDateRpt()

Inherited from TAgnRpt:
ClearAll(), DisplayNextOnly(), EndDate(), EndDateAsAgnDate(), ExternalizeL(), InternalizeL(), Interval(), RepeatForever(), SetDisplayNextOnly(), SetEndDate(), SetInterval(), SetRepeatForever(), SetStartDate(), StartDate(), StartDateAsAgnDate(), operator==()


Construction


TAgnYearlyByDateRpt()

TAgnYearlyByDateRpt(const TAgnRpt& aRpt);

Description

The C++ copy constructor constructs a new TAgnYearlyByDateRpt object from an existing TAgnRpt-derived object.

Parameters

const TAgnRpt& aRpt

The object to be copied.


TAgnYearlyByDateRpt()

TAgnYearlyByDateRpt(const TAgnYearlyByDateRpt& aRpt);

Description

The C++ copy constructor constructs a new TAgnYearlyByDateRpt object from an existing one.

Parameters

const TAgnYearlyByDateRpt& aRpt

The object to be copied.

[Top]


Get repeat details


FindRptEndDate()

virtual TTime FindRptEndDate(TUint aCount) const;

Description

Calculates the repeat end date from the specified number of instances. Returns a NULL date value if the end date would be outside the agenda model’s valid range.

Parameters

TUint aCount

The number of instances.

Return value

TTime

The repeat end date.


InstanceCount()

virtual TUint InstanceCount() const;

Description

Returns the number of instances generated by the repeat algorithm.

Return value

TUint

The number of instances.