TSmsBufferReassembler Class Reference

class TSmsBufferReassembler

TSmsBufferReassembler - reassembles (unpacked) data to CSmsBufferBase

Constructor & Destructor Documentation

TSmsBufferReassembler(CSmsAlphabetConverter &, CSmsBufferBase &)

IMPORT_C TSmsBufferReassembler ( 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 void ReassembleNextL ( const TDesC8 & aSegmentBuffer,
TSmsEncoding aEncoding,
TBool aIsLast
)

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 & aSegmentBuffer A segmented buffer
TSmsEncoding aEncoding
TBool aIsLast Set to true if it's the last segment

Member Data Documentation

CSmsAlphabetConverter & iAlphabetConverter

CSmsAlphabetConverter & iAlphabetConverter [private]

CSmsBufferBase & iSmsBuffer

CSmsBufferBase & iSmsBuffer [private]