Location:
agmrptd.h
Link against: agnmodel.lib
TAgnWeeklyRpt
Supported from 5.0
Weekly repeat details. In addition to the common repeat information
inherited from TAgnRpt, stores the days in the week on which the
repeat occurs (using a set of flags), and the day which is the start of the
week. The repeat details are used by the CAgnRptDef class, which
also stores a list of any exceptions to the repeat.
|
Defined in TAgnWeeklyRpt:
ClearDays(), ExternalizeL(), FindRptEndDate(), FirstDayOfWeek(), InstanceCount(), InternalizeL(), IsDaySet(), NumDaysSet(), SetDay(), TAgnWeeklyRpt(), UnsetDay(), operator==()
Inherited from TAgnRpt:
ClearAll(),
DisplayNextOnly(),
EndDate(),
EndDateAsAgnDate(),
Interval(),
RepeatForever(),
SetDisplayNextOnly(),
SetEndDate(),
SetInterval(),
SetRepeatForever(),
SetStartDate(),
StartDate(),
StartDateAsAgnDate()
TAgnWeeklyRpt();
The default C++ constructor is used to construct a weekly repeat object. The weekly repeat days are all cleared, and the day which is the start of the week is initialised from the system’s locale settings.
TAgnWeeklyRpt(const TAgnRpt& aRpt);
The C++ copy constructor constructs a new
TAgnWeeklyRpt object from an existing TAgnRpt-derived
object. The weekly repeat days are all cleared, and the day which is the start
of the week is initialised from the system’s locale
settings.
|
TAgnWeeklyRpt(const TAgnWeeklyRpt& aRpt);
The C++ copy constructor constructs a new
TAgnWeeklyRpt object from an existing TAgnWeeklyRpt
object.
|
void SetDay(TDay aDay);
Adds a day. More than one day can be set at a time.
|
virtual TTime FindRptEndDate(TUint aCount) const;
Calculates the repeat end date given the specified number of instances.
|
|
TDay FirstDayOfWeek() const;
Returns which day is being used as the first day of the week. This is set during construction from the operating system’s locale settings.
|
virtual TUint InstanceCount() const;
Returns the number of instances of the repeat.
|
TBool IsDaySet(TDay aDay) const;
Returns whether a day has been set.
|
|
TUint NumDaysSet() const;
Returns the number of repeat days in the week which are set.
|
TBool operator==(const TAgnWeeklyRpt& aRpt) const;
Compares two weekly repeat objects for equality.
|
|
virtual void ExternalizeL(RWriteStream& aStream) const;
Externalises the weekly repeat object to a write stream.
|
virtual void InternalizeL(RReadStream& aStream);
Internalises the weekly repeat object from a read stream.
|