CMobilePhoneReadOnlyList Class Reference

class CMobilePhoneReadOnlyList : public CMobilePhoneListBase

A template class within a thin-template implementation.

Provides the type-safe wrappers for "read-only" access to a list class.

Inherits from

Constructor & Destructor Documentation

CMobilePhoneReadOnlyList()

CMobilePhoneReadOnlyList ( ) [protected, inline]

Member Functions Documentation

AddEntryL(const T &)

void AddEntryL ( const T & aEntry ) [inline]

This function member adds a new entry into the list, placing it in the next empty position.

leave
EListMaxNumberReached This function member will leave if the list fails to allocate memory for the new entry or if the maximum number of entries has been reached.

Parameters

const T & aEntry Pointer to the entry that will be added to the list.

ExternalizeEntryL(const TAny *, RWriteStream &)

void ExternalizeEntryL ( const TAny * aPtr,
RWriteStream & aStream
) const [private, inline, virtual]

Pure virtual function that should externalise entry *aPtr into the aStream write stream. This member function is used by ExternalizeL to externalise the separate entries in the list.

Parameters

const TAny * aPtr Pointer to the entry to be written to the stream
RWriteStream & aStream On return, the write stream.

GetEntryL(TInt)

const T & GetEntryL ( TInt aIndex ) const [inline]

This function member retrieves the entry at position aIndex from the list. A valid index ranges from 0 to count -1, where count is the value returned from CMobilePhoneListBase::Enumerate() .

leave
EListIndexOutOfRange This function member will leave if aIndex is outside the current number of entries.

Parameters

TInt aIndex Index of the entry to be retrieved.

InternalizeEntryL(TAny *, RReadStream &)

void InternalizeEntryL ( TAny * aPtr,
RReadStream & aStream
) const [private, inline, virtual]

Pure virtual function that should internalise entry *aPtr from the aStream read stream. This member function is used by InternalizeL to internalise the separate entries in the stream.

Parameters

TAny * aPtr On return, pointer to the object that will contain the entry.
RReadStream & aStream The read stream containing the entry to be internalized.