CMessageIterator Class Reference

class CMessageIterator : public CBase

Message Iterator Utility Class Typically used by message editors to implement next and previous message menu options. Class is an observer of the parent of the current entry, so it does handle changes in the children list. Class does not handle other external events e.g. deletion of parent.

Inherits from

Constructor & Destructor Documentation

CMessageIterator()

CMessageIterator()[private]

C++ constuctor

~CMessageIterator()

IMPORT_C~CMessageIterator()

Destructor

Member Functions Documentation

ConstructL(CMsvSession &, const TMsvEntry &)

voidConstructL(CMsvSession &aSession,
const TMsvEntry &aStartMessage
)[private]

Symbian OS constructor

Parameters

CMsvSession & aSession
const TMsvEntry & aStartMessage

CurrentMessage()

IMPORT_C const TMsvEntry &CurrentMessage()const

CurrentMessageIndex()

IMPORT_C TIntCurrentMessageIndex()const

CurrentParent()

IMPORT_C const TMsvEntry &CurrentParent()const

HandleEntryEventL(TMsvEntryEvent, TAny *, TAny *, TAny *)

voidHandleEntryEventL(TMsvEntryEventaEvent,
TAny *aArg1,
TAny *aArg2,
TAny *aArg3
)

Parameters

TMsvEntryEvent aEvent
TAny * aArg1
TAny * aArg2
TAny * aArg3

MessagesInFolder()

IMPORT_C TIntMessagesInFolder()const

NewL(CMsvSession &, const TMsvEntry &)

IMPORT_C CMessageIterator *NewL(CMsvSession &aSession,
const TMsvEntry &aCurrentMessage
)[static]

Two-phased constructor.

Parameters

CMsvSession & aSession
const TMsvEntry & aCurrentMessage

NextMessageExists()

IMPORT_C TBoolNextMessageExists()const

OpenCurrentMessageL(TRequestStatus &, TBool)

IMPORT_C CMsvOperation *OpenCurrentMessageL(TRequestStatus &aStatus,
TBoolaEmbed = ETrue
)

Opens current message

Parameters

TRequestStatus & aStatus
TBool aEmbed = ETrue

PreviousMessageExists()

IMPORT_C TBoolPreviousMessageExists()const

SetCurrentMessageL(const TMsvEntry &)

IMPORT_C voidSetCurrentMessageL(const TMsvEntry &aCurrentMessage)

Parameters

const TMsvEntry & aCurrentMessage

SetMessageIteratorObserver(MMessageIteratorObserver *)

IMPORT_C voidSetMessageIteratorObserver(MMessageIteratorObserver *aObserver)

Set iterator observer.

Parameters

MMessageIteratorObserver * aObserver

SetNextMessage()

IMPORT_C TIntSetNextMessage()

Changes current message to next

SetPreviousMessage()

IMPORT_C TIntSetPreviousMessage()

Changes current message to previous

UpdateChildrenOfParentL(TMsvId)

voidUpdateChildrenOfParentL(TMsvIdaCurrentMessageId)[private]

internal

Parameters

TMsvId aCurrentMessageId

Member Data Documentation

CMsvEntrySelection * iChildrenOfParent

CMsvEntrySelection *iChildrenOfParent[private]

TInt iCurrentIndex

TInt iCurrentIndex[private]

TBool iEntryObserver

TBool iEntryObserver[private]

MMessageIteratorObserver * iMessageIteratorObserver

MMessageIteratorObserver *iMessageIteratorObserver[private]

CMsvEntry * iParentOfCurrent

CMsvEntry *iParentOfCurrent[private]