Location:
agmentry.h
Link against: agnmodel.lib
CAgnAnniv
Supported from 5.0
An anniversary entry or instance. An anniversary is an event which
occurs once a year. It may be repeating, and if so, the repeat type must be
yearly. CAgnAnniv
is derived from
CAgnEvent
— its additional details include an
optional base year, so that an anniversary can be displayed showing the number
of years since the base year (e.g. how old someone is on this birthday) and/or
showing the base year itself.
|
Defined in CAgnAnniv
:
BaseYear()
, CopyFromL()
, DisplayAs()
, EBaseAndElapsed
, EBaseYear
, EElapsedYears
, ENone
, HasBaseYear()
, NewL()
, NewLC()
, SetBaseYear()
, SetDisplayAs()
, SetHasBaseYear()
, TDisplayAs
, Type()
Inherited from CAgnBasicEntry
:
AddExceptionL()
,
AlarmDaysWarning()
,
AlarmInstanceDateTime()
,
AlarmTime()
,
ClearAllAttributes()
,
ClearRepeat()
,
DisplayInYearView()
,
EntrySymbol()
,
Exceptions()
,
FindException()
,
HasAlarm()
,
HasDefaultDisplayTime()
,
HasEntrySymbol()
,
HasExceptions()
,
HasExtended()
,
IsADayNote()
,
IsCrossedOut()
,
IsRepeating()
,
IsSketch()
,
IsStoredInline()
,
IsTentative()
,
PruneExceptions()
,
RemoveAllExceptions()
,
RemoveException()
,
RptDef()
,
SetAlarm()
,
SetDisplayInYearView()
,
SetEntrySymbol()
,
SetHasAlarm()
,
SetHasDefaultDisplayTime()
,
SetHasEntrySymbol()
,
SetHasExceptions()
,
SetHasExtended()
,
SetIsADayNote()
,
SetIsCrossedOut()
,
SetIsRepeating()
,
SetIsSketch()
,
SetIsStoredInline()
,
SetIsTentative()
,
SetRptEndDate()
,
SetRptStartDate()
Inherited from CAgnEntry
:
AddAttendeeL()
,
AddCategoryL()
,
AlarmSoundName()
,
AttendeeCount()
,
CastToAnniv()
,
CastToAppt()
,
CastToEvent()
,
CastToTodo()
,
CategoryCount()
,
ClearAlarm()
,
CloseEmbeddedStore()
,
CompareL()
,
CreationDate()
,
DeleteAttendee()
,
DeleteCategory()
,
EAnniv
,
EAppt
,
EDeepCopy
,
EEvent
,
EShallowCopy
,
ETodo
,
EmbeddedStore()
,
EntryId()
,
ExternalizeL()
,
FetchAttendee()
,
FetchCategory()
,
GetBackgroundColor()
,
HasAttendees()
,
HasCategory()
,
InstanceDate()
,
InstanceId()
,
InternalizeL()
,
LoadAllComponentsL()
,
Location()
,
MakeInstanceNonRepeating()
,
OpenEmbeddedStoreL()
,
OpenRichTextStoreL()
,
ReplicationData()
,
RestoreComponentsL()
,
RichTextL()
,
RichTextStreamId()
,
SetAlarmSoundNameL()
,
SetBackgroundColorL()
,
SetCreationDateL()
,
SetId()
,
SetIdAndInstanceDate()
,
SetInstanceDate()
,
SetInstanceId()
,
SetLastChangedDate()
,
SetLocationL()
,
SetReplicationData()
,
SetRichTextStreamId()
,
SetRptDefL()
,
SetUniqueId()
,
StoreComponentsL()
,
TCopyHow
,
TType
,
UniqueId()
Inherited from CAgnEvent
:
BasicEvent()
,
DisplayTime()
,
EndDate()
,
InstanceEndDate()
,
InstanceStartDate()
,
SetDisplayTime()
,
SetStartAndEndDate()
,
StartDate()
Inherited from CBase
:
operator new()
static CAgnAnniv* NewL(const CParaFormatLayer* aParaFormatLayer,const CCharFormatLayer* aCharFormatLayer,TCreateHow aCreateHow);
Allocates memory for and constructs a new anniversary entry. If allocation is successful, it returns a pointer to the new object. A leave occurs if there is insufficient memory available.
The anniversary start and end dates and the instance date are all initialised to null, the anniversary’s has default display time property is set and the display time is set to zero.
|
|
static CAgnAnniv* NewLC(const CParaFormatLayer* aParaFormatLayer,const CCharFormatLayer* aCharFormatLayer,TCreateHow aCreateHow);
Allocates memory for and constructs a new anniversary entry. If allocation is successful, it returns a pointer to the new object which is left on the clean-up stack. A leave occurs if there is insufficient memory available.
The anniversary start and end dates and the instance date are all initialised to null, the anniversary’s has default display time property is set and the display time is set to zero.
|
|
TTimeIntervalYears BaseYear() const;
Returns the anniversary entry’s base year as set by
SetBaseYear()
.
|
void SetBaseYear(TTimeIntervalYears aBaseYear);
Sets the base year for an anniversary. If the anniversary is repeating, and if the new base year is before the start of the repeat, the anniversary’s repeat definition is changed so that the start year for the repeat is set to the new base year. An exception to this is if the new base year is before the agenda model's minimum year (1980). In this case, the repeat is set to start from the minimum year. This function also sets the anniversary’s has base year property.
|
TBool HasBaseYear() const;
Retrieves the anniversary entry’s has base year property. This property indicates whether the anniversary has a base year and does not start at the default year 1980.
|
void SetHasBaseYear(TBool aHasBaseYear);
Sets the anniversary entry’s has base year property.
This function is invoked by SetBaseYear()
.
|
TDisplayAs DisplayAs() const;
Retrieves whether the anniversary should be displayed as the base year alone, the elapsed years alone, both the base year and elapsed years, or none of these.
|
void SetDisplayAs(TDisplayAs aDisplayAs);
Sets how the anniversary should be displayed.
|
virtual TType Type() const;
Returns the type of entry as an anniversary. Used after
retrieving an entry or instance of an unknown type into a
CAgnEntry
. You then have to cast the entry to its proper type in
order to use the functions provided by the concrete class. Functions provided
by CAgnEntry
can be used without casting the
entry.
|
virtual void CopyFromL(CAgnEntry* aSource,const MPictureFactory* aPictureFactory);
Copy the anniversary entry and general entry details from
aSource
into this object — any previous contents
are lost.
|
TDisplayAs
Anniversary display modes
|