CSmsBufferSegmenter Class Reference
class CSmsBufferSegmenter : public CBase |
Segments unpacked data from a CsmsBufferBase
Constructor & Destructor Documentation
CSmsBufferSegmenter(CSmsAlphabetConverter &, const CSmsBufferBase &, TInt)
~CSmsBufferSegmenter()
IMPORT_C | ~CSmsBufferSegmenter | ( | ) | |
Destructor - Free resource
Member Functions Documentation
CheckConvertedBufferAllocL(TInt)
void | CheckConvertedBufferAllocL | ( | TInt | aMaxLength | ) | [protected] |
Ensures the segmentation buffer is of the specified length
ConstructL()
void | ConstructL | ( | ) | [protected] |
2nd phase of constructor. Esures we have an initial buffer.
DoSegmentNextL(TDes8 &, TInt, TInt &, TInt &, TSmsEncoding)
ElementsToReturnFromConvertedBufferL(TInt)
TInt
| ElementsToReturnFromConvertedBufferL | ( | TInt | aSegmentSize | ) | [protected] |
Determines the number of converted elements that should be returned in the segment - called from DoSegmentNextL
FindBestAlternativeEncodingL(TSmsEncoding, TInt)
NewLC(CSmsAlphabetConverter &, const CSmsBufferBase &, TInt)
This factory function creates a CsmsBufferSegmenter instance
Parameters
CSmsAlphabetConverter & aAlphabetConverter | Pre-configured |
const CSmsBufferBase & aBuffer | The message data |
TInt aSegmentSize = 0 | (Default = 0) The size of segment required. If the instance is to be used solely for determining the total length of the converted data with TotalConvertedLengthL() then the segment length need not be supplied, hence defaulting to zero. |
Reset()
Resets the converted buffer
SegmentNextL(TDes8 &, TInt &, TInt &, TSmsEncoding)
A client iteratively calls SegmentNextL() to retrieve each segment until ETrue is returned, indicating that the last segment has been reached. The output buffer, aSegmentBuffer, should be large enough to hold the number of elements specified by the segment size in the NewLC() constructor otherwise the call will Panic. The output buffer is automatically reset before it's filled.
TotalConvertedLengthL(TSmsEncoding)
TotalConvertedLengthL() determines the total length in User Data Elements when the input buffer is converted. Depending on the conversion properties returned from the alphabet converter, a complete conversion may need to be performed, i.e. this call can be quite expensive.
Member Data Documentation
CSmsAlphabetConverter & iAlphabetConverter
HBufC8 * iConvertedBuffer
HBufC8 * | iConvertedBuffer | [protected] |
TPtr8
iConvertedBufferPtr
TPtr8
| iConvertedBufferPtr | [protected] |
TInt
iElementsExtracted
TInt
| iElementsExtracted | [protected] |
TInt
iSegmentSize
TInt
| iSegmentSize | [protected] |
const CSmsBufferBase & iSmsBuffer
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.