Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: agmids.h
Link against: agnmodel.lib

Class TAgnInstanceDateTimeId

TAgnInstanceDateTimeId

Support

Supported from 5.0

Description

An instance ID which additionally stores the instance’s start and end dates / times. CAgnDayDateTimeInstanceList is a list of TAgnInstanceDateTimeIds. It is populated using CAgnModel::PopulateDayDateTimeInstanceListL(). The date and time are stored using agenda model dates and times i.e. a number of days since the agenda model’s minimum valid date and a number of minutes since midnight, respectively.

Derivation

TAgnEntryIdUniquely identifies an agenda entry in an agenda file
TAgnIdThe base class for agenda entry and to-do list ID types
TAgnInstanceDateTimeIdAn instance ID which additionally stores the instance's start and end dates / times
TAgnInstanceIdIdentifies an instance of an entry in the agenda instance model (CAgnModel), with an entry ID (TAgnEntryId) and an agenda date (TAgnDate)

Defined in TAgnInstanceDateTimeId:
EndDate(), EndTime(), HasNullEndTime(), HasNullStartTime(), SetEndDate(), SetEndTime(), SetStartDate(), SetStartTime(), StartDate(), StartTime()

Inherited from TAgnId:
Id(), IsNullId(), SetNullId(), operator<(), operator>()

Inherited from TAgnInstanceId:
Date(), ExternalizeL(), InternalizeL(), IsNullInstanceId(), SetDate(), SetIdAndDate(), SetNullInstanceId(), operator!=(), operator==()


Set date time details


SetStartTime()

void SetStartTime(TAgnTime aTime);

Description

Sets the start time of the current ID.

Parameters

TAgnTime aTime

The start time.


SetEndTime()

void SetEndTime(TAgnTime aTime);

Description

Sets the end time of the current ID.

Parameters

TAgnTime aTime

The end time.


SetStartDate()

void SetStartDate(TAgnDate aDate);

Description

Sets the start date of the current ID.

Parameters

TAgnDate aDate

The start date.


SetEndDate()

void SetEndDate(TAgnDate aDate);

Description

Sets the end date of the current ID.

Parameters

TAgnDate aDate

The end date.

[Top]


Get date time details


StartTime()

TTimeIntervalMinutes StartTime() const;

Description

Gets the start time of the current ID. A panic occurs if the start time is NULL.

Return value

TTimeIntervalMinutes

The start time.


EndTime()

TTimeIntervalMinutes EndTime() const;

Description

Gets the end time of the current ID. A panic occurs if the end time is NULL.

Return value

TTimeIntervalMinutes

The end time.


StartDate()

TTime StartDate() const;

Description

Gets the start date of the current ID.

Return value

TTime

The start date.


EndDate()

TTime EndDate() const;

Description

Gets the end date of the current ID.

Return value

TTime

The end date.


HasNullStartTime()

TBool HasNullStartTime() const;

Description

Tests whether the current entry has a NULL start time.

Return value

TBool

True if the start time is NULL, otherwise False.


HasNullEndTime()

TBool HasNullEndTime() const;

Description

Tests whether the current entry has a NULL end time.

Return value

TBool

True if the end time is NULL, otherwise False.