Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: agmids.h
Link against: agnmodel.lib

Class TAgnInstanceId

TAgnInstanceId

Support

Supported from 5.0

Description

Identifies an instance of an entry in the agenda instance model (CAgnModel), with an entry ID (TAgnEntryId) and an agenda date (TAgnDate).

Derivation

TAgnEntryIdUniquely identifies an agenda entry in an agenda file
TAgnIdThe base class for agenda entry and to-do list ID types
TAgnInstanceIdIdentifies an instance of an entry in the agenda instance model (CAgnModel), with an entry ID (TAgnEntryId) and an agenda date (TAgnDate)

Defined in TAgnInstanceId:
Date(), ExternalizeL(), InternalizeL(), IsNullInstanceId(), SetDate(), SetIdAndDate(), SetNullInstanceId(), TAgnInstanceId(), operator!=(), operator==()

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


Construction


TAgnInstanceId()

TAgnInstanceId();
TAgnInstanceId(TAgnEntryId aId,TAgnDate=AgnDateTime::NullDate());
TAgnInstanceId(TAgnEntryId aId,TTime aDate);

Description

Overloaded C++ constructor. The object can be constructed:

[Top]


ID and date


Date()

TAgnDate Date() const;

Description

Gets the date of the instance ID.

Return value

TAgnDate

The date of the instance ID.


SetDate()

void SetDate(TAgnDate aDate);

Description

Sets the date of the instance ID.

Parameters

TAgnDate aDate

The date of the instance ID.


SetIdAndDate()

void SetIdAndDate(TAgnEntryId aId,TAgnDate aDate);

Description

Sets both the ID and date.

Parameters

TAgnEntryId aId

The entry ID.

TAgnDate aDate

The date.

[Top]


Stream persistence


InternalizeL()

void InternalizeL(RReadStream& aStream);

Description

Internalises an instance ID from a read stream. The presence of this function means that the standard templated operator>>() is available to internalise objects of this class.

Parameters

RReadStream& aStream

Stream from which the object should be internalized


ExternalizeL()

void ExternalizeL(RWriteStream& aStream) const;

Description

Externalises an instance ID to a write stream. The presence of this function means that the standard templated operator<<() is available to externalise objects of this class.

Parameters

RWriteStream& aStream

Stream to which the object should be externalised.

[Top]


Overloaded operators


operator!=()

TBool operator!=(TAgnInstanceId aId) const;

Description

Compares two instance IDs for inequality.

Parameters

TAgnInstanceId aId

The instance ID to compare with this one.

Return value

TBool

True if aId is different from this ID. False if they are the same.


operator==()

TBool operator==(TAgnInstanceId aId) const;

Description

Compares two instance IDs for equality.

Parameters

TAgnInstanceId aId

The instance ID to compare with this one.

Return value

TBool

True if aId is the same as this ID. False if they are different.

[Top]


Null ID


IsNullInstanceId()

TBool IsNullInstanceId() const;

Description

Tests whether the instance ID is NULL.

Return value

TBool

True if the instance ID is NULL, false if not.


SetNullInstanceId()

void SetNullInstanceId();

Description

Sets the instance ID's date and its entry ID to NULL.