Location:
agmentry.h
Link against: agnmodel.lib
CAgnEvent
Supported from 5.0
An event entry or instance. An event has a start date, optionally an end date, and a display time. Events differ from appointments in that events have a start and end date, whereas appointments have a start and end date and time. Whereas an appointment can have a duration of anything from zero to 23 hours and 59 minutes, an event is always an all-day entry with no start or end times.
|
Defined in CAgnEvent
:
BasicEvent()
, CopyFromL()
, DisplayTime()
, EndDate()
, InstanceEndDate()
, InstanceStartDate()
, NewL()
, NewLC()
, SetDisplayTime()
, SetStartAndEndDate()
, StartDate()
, 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 CBase
:
operator new()
static CAgnEvent* NewL(const CParaFormatLayer* aParaFormatLayer,const CCharFormatLayer* aCharFormatLayer,TCreateHow aCreateHow = ECreateRichText);
Allocates memory for and constructs a new event entry. If allocation is successful, it returns a pointer to the new object. A leave occurs if there is insufficient memory available.
The event start and end dates and the instance date are all initialised to null, the event’s has default display time property is set and the display time is set to zero.
|
|
static CAgnEvent* NewLC(const CParaFormatLayer* aParaFormatLayer,const CCharFormatLayer* aCharFormatLayer,TCreateHow aCreateHow = ECreateRichText);
Allocates memory for and constructs a new event 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 event start and end dates and the instance date are all initialised to null, the event’s has default display time property is set and the display time is set to zero.
|
|
const TAgnBasicAppt& BasicAppt() const;
Returns the event-specific entry details, i.e. the start date and end date and the display time. Note that these details should normally be set and retrieved using other functions in this class.
|
virtual TTimeIntervalMinutes DisplayTime() const;
Returns the event entry’s display time. This may have been set
by SetDisplayTime()
, or may be the default display time. The
display time can be used to tell the user interface where to display the event
in a view that contains times of day, such as day or week
views.
|
void SetDisplayTime(TTimeIntervalMinutes aDisplayTime);
Sets the display time for an event entry. Unsets the entry's has default display time property.
|
TTime StartDate() const;
Returns the start date of the event entry as set by
SetStartAndEndDate()
.
|
virtual TTime InstanceStartDate() const;
Returns the start date of a particular instance of the event. If the instance date isn't set then the start date of the entry is returned.
|
TTime EndDate() const;
Returns the event entry’s end date as set by
SetStartAndEndDate()
. If SetStartAndEndDate()
was
called without specifying an end date, then the end date is set to be the same
as the start date.
|
virtual TTime InstanceEndDate() const;
Returns the end date (the start date plus the event's duration in days) of an event instance. If the instance date isn't set then the end date of the entry is returned.
|
void SetStartAndEndDate(const TTime& aStartDate,const TTime& aEndDate=Time::NullTTime());
Sets the start and end dates of the event. If the second parameter (the end date) is not supplied in the calling code then the end date is set to the same value as the start date.
|
virtual TType Type() const;
This implements the pure virtual function in CAgnEntry
and
returns the type of entry as an event. 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);
Copies the event entry and general entry details from
aSource
into this object — any previous contents
are lost.
|