class TAgnRpt |
Abstract base class for the agenda model repeat types.
Stores the repeat details common to all agenda model repeat types. The common repeat details are the until time of the repeat and the interval between repeats. If an instance repeats forever, then its end date will be TCalTime::MaxTime().. 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.
Public Member Functions | |
---|---|
TAgnRpt(CAgnRptDef &) | |
TAgnRpt(const TAgnRpt &, CAgnRptDef &) | |
void | ClearAll() |
IMPORT_C TInt | Count() |
void | ExternalizeL(RWriteStream &) |
IMPORT_C TTime | FindRptUntilTimeLocalL(TUint) |
TTime | FindRptUntilTimeRptLocalL(TUint) |
TUint | InstanceCountL() |
void | InternalizeL(RReadStream &) |
IMPORT_C TUint16 | Interval() |
TInt | InvariantL() |
TBool | IsAlignedRptLocalL(const TTime &) |
TBool | IsAlignedUtcL(const TTime &) |
TTime | NudgeNextInstanceUtcL(const TTime &) |
TTime | NudgePreviousInstanceUtcL(const TTime &) |
void | ResetCachedStartTimeOffset() |
void | ResetCachedUntilTimeOffset() |
IMPORT_C void | SetCount(TInt) |
IMPORT_C void | SetInterval(TUint16) |
void | SetUntilTime(const TAgnCalendarTime &) |
const TAgnCalendarTime & | StartTime() |
TTime | StartTimeAsRptLocalL() |
TType | Type() |
TTime | UntilTimeAsRptLocalL() |
IMPORT_C const TAgnCalendarTime & | UntilTimeL() |
TBool | operator!=(const TAgnRpt &) |
TBool | operator==(const TAgnRpt &) |
Protected Member Functions | |
---|---|
TTime | ConvertFromRepeatLocalToSystemLocalL(const TTime &) |
TTime | ConvertFromRepeatLocalToUtcL(const TTime &) |
TTime | ConvertFromSystemLocalToRepeatLocalL(const TTime &) |
TTime | ConvertFromUtcToRepeatLocalL(const TTime &) |
void | GetTimeAsRptLocalL(const TAgnCalendarTime &, TTime &, TInt16 &) |
TBool | HourAndMinutesDifferentFromStartTimeL(const TTime &) |
TUint | MapDateToBits(TUint) |
TUint | MapDayToBits(TDay) |
TTime | NudgeNextAlignedStartTimeL(const TTime &) |
TTime | NudgePreviousAlignedStartTimeL(const TTime &) |
MAgnCalendarTimeMode::TTimeMode | TimeMode() |
Private Member Functions | |
---|---|
TAgnRpt(const TAgnRpt &) | |
void | operator=(const TAgnRpt &) |
Public Member Enumerations | |
---|---|
enum | TType { EDaily = 1, EWeekly, EMonthlyByDates, EMonthlyByDays, EYearlyByDate, EYearlyByDay } |
enum | TWeekInMonth { EFirst = 0, ESecond, EThird, EFourth, ELast } |
Protected Attributes | |
---|---|
TInt | iCount |
TUint16 | iInterval |
CAgnRptDef & | iOwningRptDef |
TInt16 | iStartTimeRptLocalOffset |
TAgnCalendarTime | iUntilTime |
TInt16 | iUntilTimeRptLocalOffset |
TBool | iUntiltimeHasBeenSet |
TAgnRpt | ( | const TAgnRpt & | aRpt, |
CAgnRptDef & | aOwningRptDef | ||
) |
const TAgnRpt & aRpt | |
CAgnRptDef & aOwningRptDef |
TTime | ConvertFromRepeatLocalToSystemLocalL | ( | const TTime & | aRptLocalTime | ) | const [protected] |
const TTime & aRptLocalTime |
TTime | ConvertFromRepeatLocalToUtcL | ( | const TTime & | aRptLocalDate | ) | const [protected] |
const TTime & aRptLocalDate |
TTime | ConvertFromSystemLocalToRepeatLocalL | ( | const TTime & | aSysLocalTime | ) | const [protected] |
const TTime & aSysLocalTime |
TTime | ConvertFromUtcToRepeatLocalL | ( | const TTime & | aUtcDate | ) | const [protected] |
const TTime & aUtcDate |
void | ExternalizeL | ( | RWriteStream & | aStream | ) | const [virtual] |
RWriteStream & aStream |
IMPORT_C TTime | FindRptUntilTimeLocalL | ( | TUint | aCount | ) | const |
TUint aCount |
TTime | FindRptUntilTimeRptLocalL | ( | TUint | aCount | ) | const [pure virtual] |
TUint aCount |
void | GetTimeAsRptLocalL | ( | const TAgnCalendarTime & | aCalendarTime, |
TTime & | aTimeAsRptLocal, | |||
TInt16 & | aCachedOffset | |||
) | const [protected] |
const TAgnCalendarTime & aCalendarTime | |
TTime & aTimeAsRptLocal | |
TInt16 & aCachedOffset |
TBool | HourAndMinutesDifferentFromStartTimeL | ( | const TTime & | aDate | ) | const [protected] |
const TTime & aDate |
void | InternalizeL | ( | RReadStream & | aStream | ) | [virtual] |
RReadStream & aStream |
TBool | IsAlignedRptLocalL | ( | const TTime & | aRptLocalDate | ) | const [pure virtual] |
const TTime & aRptLocalDate |
TBool | IsAlignedUtcL | ( | const TTime & | aUtcDate | ) | const [pure virtual] |
const TTime & aUtcDate |
TTime | NudgeNextAlignedStartTimeL | ( | const TTime & | aRptLocalDate | ) | const [protected] |
const TTime & aRptLocalDate |
TTime | NudgeNextInstanceUtcL | ( | const TTime & | aDay | ) | const [pure virtual] |
const TTime & aDay |
TTime | NudgePreviousAlignedStartTimeL | ( | const TTime & | aRptLocalDate | ) | const [protected] |
const TTime & aRptLocalDate |
TTime | NudgePreviousInstanceUtcL | ( | const TTime & | aDay | ) | const [pure virtual] |
const TTime & aDay |
void | SetUntilTime | ( | const TAgnCalendarTime & | aUntilTime | ) |
const TAgnCalendarTime & aUntilTime |
TBool | operator!= | ( | const TAgnRpt & | aRpt | ) | const |
const TAgnRpt & aRpt |
TBool | operator== | ( | const TAgnRpt & | aRpt | ) | const |
const TAgnRpt & aRpt |
EDaily = 1 |
Repeat every x days |
EWeekly |
Repeat every x weeks on days, e.g. every Monday and Thursday every other week - first day of week affects this |
EMonthlyByDates |
Repeat every x months, e.g. on the 3rd, 5th and 9th |
EMonthlyByDays |
Repeat every x months, e.g. on the 1st Tuesday of the month and 3rd Wednesday |
EYearlyByDate |
Repeat every x years, e.g on the 3rd of October |
EYearlyByDay |
Repeat every x years, e.g. on the 4th Wednesday of November |
EFirst = 0 |
The first week in the month. Implementation requires this to be 0. |
ESecond |
The second week in the month |
EThird |
The third week in the month |
EFourth |
The fourth week in the month |
ELast |
The last week in the month |