class TAgnEntryId |
The base class for agenda entry and instance ID types. Internally, the ID is stored as a 32-bit unsigned integer.
This is made up of a stream ID which stores the stream containing the entry, and a partial ID, which gives the position of the entry within that stream. There can be up to EMaxNumEntriesPerStream entries in a stream (16).
Public Member Functions | |
---|---|
TAgnEntryId () | |
TAgnEntryId (const TStreamId &, TUint ) | |
IMPORT_C void | ExternalizeL ( RWriteStream &) |
IMPORT_C void | InternalizeL ( RReadStream &) |
IMPORT_C TBool | IsNullId () |
IMPORT_C TUint | PartialId () |
void | SetStreamId (const TStreamId &) |
TStreamId | StreamId () |
TUint | Value () |
IMPORT_C TBool | operator!= (const TAgnEntryId &) |
IMPORT_C TBool | operator== (const TAgnEntryId &) |
Private Member Functions | |
---|---|
void | SetPartialId ( TUint ) |
Protected Attributes | |
---|---|
TUint32 | iId |
IMPORT_C | TAgnEntryId | ( | const TStreamId & | aStreamId, |
TUint | aPartialId | |||
) |
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
Externalises the ID to a write stream.
The presence of this function means that the standard templated operator<<() is available to externalise objects of this class.
RWriteStream & aStream | Stream to which the ID should be externalised. |
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) |
Internalises the ID from a read stream.
The presence of this function means that the standard templated operator>>() is available to internalise objects of this class.
RReadStream & aStream | Stream from which the ID should be internalised. |
IMPORT_C TBool | IsNullId | ( | ) | const |
Tests whether the ID value has been set.
If not set, its value is zero.
void | SetStreamId | ( | const TStreamId & | aId | ) |
const TStreamId & aId |
IMPORT_C TBool | operator!= | ( | const TAgnEntryId & | aId | ) | const |
Compares two IDs for inequality.
const TAgnEntryId & aId | The ID to compare with this one. |
IMPORT_C TBool | operator== | ( | const TAgnEntryId & | aId | ) | const |
Compares two IDs for equivalence.
const TAgnEntryId & aId | The ID to compare with this one. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.