TSmsBufferReassembler Class Reference

class TSmsBufferReassembler

TSmsBufferReassembler - reassembles (unpacked) data to CSmsBufferBase

Constructor & Destructor Documentation

TSmsBufferReassembler(CSmsAlphabetConverter &, CSmsBufferBase &)

IMPORT_CTSmsBufferReassembler(CSmsAlphabetConverter &aAlphabetConverter,
CSmsBufferBase &aBuffer
)

Constructor initialise iAlphabetConverter & iSmsBuffer

capability
None

Parameters

CSmsAlphabetConverter & aAlphabetConverter
CSmsBufferBase & aBuffer

Member Functions Documentation

ReassembleNextL(const TDesC8 &, TSmsEncoding, TBool)

IMPORT_C voidReassembleNextL(const TDesC8 &aSegmentBuffer,
TSmsEncodingaEncoding,
TBoolaIsLast
)

Reassembly is performed by iteratively calling the ReassembleNextL() method until all segments have been passed in. When the last segment is passed, the aIsLast flag should be set to ETrue to validate that no unconverted User Data Elements remain, otherwise the method will leave with KErrCorrupt.

capability
None

Parameters

const TDesC8 & aSegmentBufferA segmented buffer
TSmsEncoding aEncoding
TBool aIsLastSet to true if it's the last segment

Member Data Documentation

CSmsAlphabetConverter & iAlphabetConverter

CSmsAlphabetConverter &iAlphabetConverter[private]

CSmsBufferBase & iSmsBuffer

CSmsBufferBase &iSmsBuffer[private]