CSmsEMSBufferSegmenter Class Reference

class CSmsEMSBufferSegmenter : public CSmsBufferSegmenter

Inherits from

Public Member Functions
IMPORT_C CSmsEMSBufferSegmenter *NewLC(CSmsAlphabetConverter &, const CSmsBufferBase &, TInt)
TInt SegmentL(TDes8 &, TInt, TInt, TInt &, TInt &, TSmsEncoding)
IMPORT_C TBoolSegmentNextL(TDes8 &, TInt, TInt &, TInt &, TSmsEncoding)
Protected Member Functions
CSmsEMSBufferSegmenter(CSmsAlphabetConverter &, const CSmsBufferBase &, TInt)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CSmsBufferSegmenter::CSmsBufferSegmenter(CSmsAlphabetConverter &,const CSmsBufferBase &,TInt)
CSmsBufferSegmenter::CheckConvertedBufferAllocL(TInt)
CSmsBufferSegmenter::ConstructL()
CSmsBufferSegmenter::DoSegmentNextL(TDes8 &,TInt,TInt &,TInt &,TSmsEncoding)
CSmsBufferSegmenter::ElementsToReturnFromConvertedBufferL(TInt)
CSmsBufferSegmenter::FindBestAlternativeEncodingL(TSmsEncoding,TInt)const
CSmsBufferSegmenter::MoreL()
CSmsBufferSegmenter::Reset()
CSmsBufferSegmenter::SegmentNextL(TDes8 &,TInt &,TInt &,TSmsEncoding)
CSmsBufferSegmenter::TotalConvertedLengthL(TSmsEncoding)
CSmsBufferSegmenter::~CSmsBufferSegmenter()
Inherited Attributes
CSmsBufferSegmenter::iAlphabetConverter
CSmsBufferSegmenter::iConvertedBuffer
CSmsBufferSegmenter::iConvertedBufferPtr
CSmsBufferSegmenter::iElementsExtracted
CSmsBufferSegmenter::iSegmentSize
CSmsBufferSegmenter::iSmsBuffer

Constructor & Destructor Documentation

CSmsEMSBufferSegmenter(CSmsAlphabetConverter &, const CSmsBufferBase &, TInt)

CSmsEMSBufferSegmenter(CSmsAlphabetConverter &aAlphabetConverter,
const CSmsBufferBase &aBuffer,
TIntaSegmentSize
)[protected]

Parameters

CSmsAlphabetConverter & aAlphabetConverter
const CSmsBufferBase & aBuffer
TInt aSegmentSize

Member Functions Documentation

NewLC(CSmsAlphabetConverter &, const CSmsBufferBase &, TInt)

IMPORT_C CSmsEMSBufferSegmenter *NewLC(CSmsAlphabetConverter &aAlphabetConverter,
const CSmsBufferBase &aBuffer,
TIntaSegmentSize = 0
)[static]
capability
None

Parameters

CSmsAlphabetConverter & aAlphabetConverter
const CSmsBufferBase & aBuffer
TInt aSegmentSize = 0

SegmentL(TDes8 &, TInt, TInt, TInt &, TInt &, TSmsEncoding)

TInt SegmentL(TDes8 &aSegmentBuffer,
TIntaNativeChars,
TIntaSegmentMax,
TInt &aUnconvertedChars,
TInt &aDowngradedChars,
TSmsEncodingaEncoding
)

SegmentL encodes the amount of native chars into a SegmentBuffer WARNING: This method can not be used after a SegmentNextL

Parameters

TDes8 & aSegmentBuffer
TInt aNativeChars- Number of native chars to encode.
TInt aSegmentMax- The Ceiling the encode will not go past.
TInt & aUnconvertedChars
TInt & aDowngradedChars
TSmsEncoding aEncoding

SegmentNextL(TDes8 &, TInt, TInt &, TInt &, TSmsEncoding)

IMPORT_C TBoolSegmentNextL(TDes8 &aSegmentBuffer,
TIntaSegmentSize,
TInt &aUnconvertedChars,
TInt &aDowngradedChars,
TSmsEncodingaEncoding
)

Extracts Segment size out of the Sms Buffer and converts it into aSegmentBuffer

capability
None

Parameters

TDes8 & aSegmentBuffer
TInt aSegmentSize
TInt & aUnconvertedChars
TInt & aDowngradedChars
TSmsEncoding aEncoding