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 &)

voidAddEntryL(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 & aEntryPointer to the entry that will be added to the list.

ExternalizeEntryL(const TAny *, RWriteStream &)

voidExternalizeEntryL(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 * aPtrPointer to the entry to be written to the stream
RWriteStream & aStreamOn return, the write stream.

GetEntryL(TInt)

const T &GetEntryL(TIntaIndex)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 aIndexIndex of the entry to be retrieved.

InternalizeEntryL(TAny *, RReadStream &)

voidInternalizeEntryL(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 * aPtrOn return, pointer to the object that will contain the entry.
RReadStream & aStreamThe read stream containing the entry to be internalized.