RCatalogsMessageReader Class Reference

class RCatalogsMessageReader

Utility class for reading data from MCatalogsBaseMessages

Use CleanupClosePushL when pushing this object to cleanupstack

Basic usage:

 void FunctionThatUsesAMessage( MCatalogsBaseMessage& aMessage )
    {
    ...
    RCatalogsMessageReader reader;
    reader.OpenLC( aMessage );
    TInt32 intFromMessage = reader().ReadInt32();
    ...
    CleanupStack::PopAndDestroy( &reader );
    ...

Constructor & Destructor Documentation

RCatalogsMessageReader()

RCatalogsMessageReader()

Constructor

RCatalogsMessageReader(const RCatalogsMessageReader &)

RCatalogsMessageReader(const RCatalogsMessageReader &)[protected]

Parameters

const RCatalogsMessageReader &

~RCatalogsMessageReader()

~RCatalogsMessageReader()[virtual]

Destructor

Member Functions Documentation

Close()

voidClose()

Closes the object

OpenL(MCatalogsBaseMessage &)

voidOpenL(MCatalogsBaseMessage &aMessage)

Opens the stream for reading.

Note:

This object must be Closed when it's not used anymore

Parameters

MCatalogsBaseMessage & aMessageMessage to read from

OpenLC(MCatalogsBaseMessage &)

voidOpenLC(MCatalogsBaseMessage &aMessage)

Opens the stream for reading and pushes the reader to cleanupstack

Parameters

MCatalogsBaseMessage & aMessageMessage to read from

operator()()

RReadStream &operator()()[inline]

Stream getter

operator=(const RCatalogsMessageReader &)

RCatalogsMessageReader &operator=(const RCatalogsMessageReader &)[protected]

Parameters

const RCatalogsMessageReader &

Member Data Documentation

RBuf8 iBuf

RBuf8 iBuf[private]

RDesReadStream iStream

RDesReadStream iStream[private]