Location:
agmrptd.h
Link against: agnmodel.lib
TAgnRpt
Supported from 5.0
This class stores the repeat details common to all agenda model
repeat types. The abstract base class for the different repeat classes. The
common repeat details are the start and end dates of the repeat, the interval
between repeats, and two flags which indicate whether views should display the
next repeat only, and whether it should repeat forever. An instance of a
TAgnRpt
-derived class is owned by a repeat definition
(CAgnRptDef
), which also contains the repeat exceptions list. It
is set using CAgnRptDef::SetDaily()
, SetWeekly()
etc.
Defined in TAgnRpt
:
ClearAll()
, DisplayNextOnly()
, EndDate()
, EndDateAsAgnDate()
, ExternalizeL()
, FindRptEndDate()
, InstanceCount()
, InternalizeL()
, Interval()
, RepeatForever()
, SetDisplayNextOnly()
, SetEndDate()
, SetInterval()
, SetRepeatForever()
, SetStartDate()
, StartDate()
, StartDateAsAgnDate()
, TAgnRpt()
, operator==()
TAgnRpt();
The default C++ constructor is used to construct the repeat
object. The start and end dates are initialised to NULL values, the repeat
interval to zero, and display next only and repeat forever flags are set to
EFalse
.
TAgnRpt(const TAgnRpt& aRpt);
The C++ copy constructor copies a new TAgnRpt
object
from an existing one.
|
void SetStartDate(const TTime& aStartdate);
Sets the start date for this repeat.
|
void SetStartDate(TAgnDate aStartdate);
Sets the start date for this repeat.
|
void SetEndDate(const TTime& aEndDate);
Sets the end date for this repeat.
|
void SetEndDate(TAgnDate aEndDate);
Sets the end date for this repeat.
|
void ClearAll();
Clears all the repeat details. The start and end dates are set to NULL
values and the repeat interval to zero. The display next only and repeat
forever flags are set to EFalse
.
void SetDisplayNextOnly(TBool aDisplayNextOnly);
Sets the flag which is used to indicate whether views should display the next repeat instance only.
|
void SetInterval(TUint aInterval);
Sets the repeat interval. This is a number of days for a daily repeat, a number of weeks for a weekly repeat , etc.
|
void SetRepeatForever(TBool aRepeatForever);
Sets the flag which indicates whether the repeat should continue forever.
|
TAgnDate StartDateAsAgnDate() const;
Returns the start date as an agenda date.
|
TAgnDate EndDateAsAgnDate() const;
Returns the end date as an agenda date.
|
virtual TTime FindRptEndDate(TUint aCount) const=0;
Pure virtual function. Implementations in derived classes should calculate the repeat end date from the number of instances.
|
|
virtual TUint InstanceCount() const=0;
Pure virtual function. Implementations should return the number of instances generated by the repeat algorithm.
|
TBool DisplayNextOnly() const;
Returns whether the display next only flag is set.
|
TBool RepeatForever() const;
Returns whether the repeat forever flag is set.
|
TBool operator==(const TAgnRpt& aRpt) const;
Compares two sets of common repeat details.
|
|
virtual void ExternalizeL(RWriteStream& aStream) const;
Externalises the repeat definition to a write stream.
|
|
virtual void InternalizeL(RReadStream& aStream);
Internalises the repeat definition from a read stream, including type, repeat details and exception list.
|
|