CSmsUserData Class Reference

class CSmsUserData : public CBase

Operations on the User Data described in TP-UD.

Inherits from

Public Member Functions
~CSmsUserData()
voidAddEmsInformationElementL(CEmsInformationElement *)
IMPORT_C voidAddInformationElementL(TSmsId, const TDesC8 &)
voidAppendBodyL(const TDesC8 &)
IMPORT_C TPtrC8Body()
TBool ControlInformationElementWillFitL(CSmsInformationElement *)
voidDecodeL(TGsmuLex8 &)
voidDecodeL(TGsmuLex8 &, TBool)
CSmsUserData *DuplicateL(TSmsFirstOctet &, const TSmsDataCodingScheme &)
TBool EmsInformationElementWillFitL(CEmsInformationElement *, CSmsEMSBufferSegmenter &, TUint &)
TUint8 *EncodeL(TUint8 *)
voidExternalizeL(RWriteStream &)
IMPORT_C CSmsInformationElement &InformationElement(TInt)
IMPORT_C TBoolInformationElementIndex(CSmsInformationElement::TSmsInformationElementIdentifier, TInt &)
voidInformationElementIndicesL(CSmsInformationElement::TSmsInformationElementIdentifier, CArrayFixFlat< TInt > &)
IMPORT_C TBoolInformationElementLastIndex(CSmsInformationElement::TSmsInformationElementIdentifier, TInt &)
CSmsInformationElement *&InformationElementPtr(TInt)
voidInternalizeL(RReadStream &)
TBool IsBinaryData()
IMPORT_C TBoolIsSupportedL(TChar)
IMPORT_C TBoolIsSupportedL(const TDesC &, TInt &, TInt &)
IMPORT_C TBoolIsSupportedL(const TDesC &, TSmsEncoding, TInt &, TInt &, TInt &, TInt &)
IMPORT_C TIntMaxBodyLengthInChars()
TInt MaxPackedUDUnitsInBodyRemaining()
TInt MaxPackedUDUnitsInBodyRemaining(TUint)
CSmsUserData *NewL(CCnvCharacterSetConverter &, RFs &, TSmsFirstOctet &, const TSmsDataCodingScheme &)
TInt NumInformationElements()
IMPORT_C voidRemoveInformationElement(TInt)
IMPORT_C voidSetBodyL(const TDesC8 &)
voidUpdateInformationElementArrayL(TSmsId, const TDesC8 &)
Private Member Functions
CSmsUserData(CCnvCharacterSetConverter &, RFs &, TSmsFirstOctet &, const TSmsDataCodingScheme &)
TInt BodyLengthInUDLUnits()
voidConstructL()
TInt HeaderLength()
TBool HeaderPresent()
voidNewBodyL(TInt)
voidSetHeaderPresent(TBool)
TInt TotalHeaderLengthInUDLUnits()
TInt TotalHeaderLengthInUDLUnits(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()
Private Attributes
HBufC8 *iBody
CCnvCharacterSetConverter &iCharacterSetConverter
const TSmsDataCodingScheme &iDataCodingScheme
TSmsFirstOctet &iFirstOctet
RFs &iFs
CArrayPtrFlat< CSmsInformationElement >iInformationElementArray

Constructor & Destructor Documentation

CSmsUserData(CCnvCharacterSetConverter &, RFs &, TSmsFirstOctet &, const TSmsDataCodingScheme &)

CSmsUserData(CCnvCharacterSetConverter &aCharacterSetConverter,
RFs &aFs,
TSmsFirstOctet &aFirstOctet,
const TSmsDataCodingScheme &aDataCodingScheme
)[private]

Parameters

CCnvCharacterSetConverter & aCharacterSetConverter
RFs & aFs
TSmsFirstOctet & aFirstOctet
const TSmsDataCodingScheme & aDataCodingScheme

~CSmsUserData()

~CSmsUserData()

Member Functions Documentation

AddEmsInformationElementL(CEmsInformationElement *)

voidAddEmsInformationElementL(CEmsInformationElement *aIe)

Parameters

CEmsInformationElement * aIe

AddInformationElementL(TSmsId, const TDesC8 &)

IMPORT_C voidAddInformationElementL(TSmsIdaIdentifier,
const TDesC8 &aData
)

Parameters

TSmsId aIdentifier
const TDesC8 & aData

AppendBodyL(const TDesC8 &)

voidAppendBodyL(const TDesC8 &aExtraBody)

Parameters

const TDesC8 & aExtraBody

Body()

IMPORT_C TPtrC8Body()const

BodyLengthInUDLUnits()

TInt BodyLengthInUDLUnits()const [private]

ConstructL()

voidConstructL()[private]

ControlInformationElementWillFitL(CSmsInformationElement *)

TBool ControlInformationElementWillFitL(CSmsInformationElement *aIe)

Parameters

CSmsInformationElement * aIe

DecodeL(TGsmuLex8 &)

voidDecodeL(TGsmuLex8 &aPdu)

Parameters

TGsmuLex8 & aPdu

DecodeL(TGsmuLex8 &, TBool)

voidDecodeL(TGsmuLex8 &aPdu,
TBoolaAcceptTruncation
)

Parameters

TGsmuLex8 & aPdu
TBool aAcceptTruncation

DuplicateL(TSmsFirstOctet &, const TSmsDataCodingScheme &)

CSmsUserData *DuplicateL(TSmsFirstOctet &aFirstOctet,
const TSmsDataCodingScheme &aDataCodingScheme
)const

Parameters

TSmsFirstOctet & aFirstOctet
const TSmsDataCodingScheme & aDataCodingScheme

EmsInformationElementWillFitL(CEmsInformationElement *, CSmsEMSBufferSegmenter &, TUint &)

TBool EmsInformationElementWillFitL(CEmsInformationElement *aIe,
CSmsEMSBufferSegmenter &aSeg,
TUint &aCharsAddedToCurrentPDU
)

Parameters

CEmsInformationElement * aIe
CSmsEMSBufferSegmenter & aSeg
TUint & aCharsAddedToCurrentPDU

EncodeL(TUint8 *)

TUint8 *EncodeL(TUint8 *aPtr)const

Parameters

TUint8 * aPtr

ExternalizeL(RWriteStream &)

voidExternalizeL(RWriteStream &aStream)const

Parameters

RWriteStream & aStream

HeaderLength()

TInt HeaderLength()const [private]

HeaderPresent()

TBool HeaderPresent()const [private]

InformationElement(TInt)

IMPORT_C CSmsInformationElement &InformationElement(TIntaIndex)const

Parameters

TInt aIndex

InformationElementIndex(CSmsInformationElement::TSmsInformationElementIdentifier, TInt &)

IMPORT_C TBoolInformationElementIndex(CSmsInformationElement::TSmsInformationElementIdentifieraIdentifier,
TInt &aIndex
)const

InformationElementIndicesL(CSmsInformationElement::TSmsInformationElementIdentifier, CArrayFixFlat< TInt > &)

voidInformationElementIndicesL(CSmsInformationElement::TSmsInformationElementIdentifieraIdentifier,
CArrayFixFlat< TInt > &aIndices
)const

InformationElementLastIndex(CSmsInformationElement::TSmsInformationElementIdentifier, TInt &)

IMPORT_C TBoolInformationElementLastIndex(CSmsInformationElement::TSmsInformationElementIdentifieraIdentifier,
TInt &aIndex
)const

InformationElementPtr(TInt)

CSmsInformationElement *&InformationElementPtr(TIntaIndex)

Parameters

TInt aIndex

InternalizeL(RReadStream &)

voidInternalizeL(RReadStream &aStream)

Parameters

RReadStream & aStream

IsBinaryData()

TBool IsBinaryData()const

IsSupportedL(TChar)

IMPORT_C TBoolIsSupportedL(TCharaChar)

Parameters

TChar aChar

IsSupportedL(const TDesC &, TInt &, TInt &)

IMPORT_C TBoolIsSupportedL(const TDesC &aDes,
TInt &aNumberOfUnconvertibleCharacters,
TInt &aIndexOfFirstUnconvertibleCharacter
)const

Parameters

const TDesC & aDes
TInt & aNumberOfUnconvertibleCharacters
TInt & aIndexOfFirstUnconvertibleCharacter

IsSupportedL(const TDesC &, TSmsEncoding, TInt &, TInt &, TInt &, TInt &)

IMPORT_C TBoolIsSupportedL(const TDesC &aDes,
TSmsEncodingaEncoding,
TInt &aNumberOfUnconvertibleCharacters,
TInt &aNumberOfDowngradedCharacters,
TInt &aNumberRequiringAlternativeEncoding,
TInt &aIndexOfFirstUnconvertibleCharacter
)const

Parameters

const TDesC & aDes
TSmsEncoding aEncoding
TInt & aNumberOfUnconvertibleCharacters
TInt & aNumberOfDowngradedCharacters
TInt & aNumberRequiringAlternativeEncoding
TInt & aIndexOfFirstUnconvertibleCharacter

MaxBodyLengthInChars()

IMPORT_C TIntMaxBodyLengthInChars()const

MaxPackedUDUnitsInBodyRemaining()

TInt MaxPackedUDUnitsInBodyRemaining()const

MaxPackedUDUnitsInBodyRemaining(TUint)

TInt MaxPackedUDUnitsInBodyRemaining(TUinttotalHeaderLengthInUDLUnits)const

Parameters

TUint totalHeaderLengthInUDLUnits

NewBodyL(TInt)

voidNewBodyL(TIntaLengthInChars)[private]

Parameters

TInt aLengthInChars

NewL(CCnvCharacterSetConverter &, RFs &, TSmsFirstOctet &, const TSmsDataCodingScheme &)

CSmsUserData *NewL(CCnvCharacterSetConverter &aCharacterSetConverter,
RFs &aFs,
TSmsFirstOctet &aFirstOctet,
const TSmsDataCodingScheme &aDataCodingScheme
)[static]

Parameters

CCnvCharacterSetConverter & aCharacterSetConverter
RFs & aFs
TSmsFirstOctet & aFirstOctet
const TSmsDataCodingScheme & aDataCodingScheme

NumInformationElements()

TInt NumInformationElements()const [inline]

Gets the number of information elements.

Number of information elements

RemoveInformationElement(TInt)

IMPORT_C voidRemoveInformationElement(TIntaIndex)

Parameters

TInt aIndex

SetBodyL(const TDesC8 &)

IMPORT_C voidSetBodyL(const TDesC8 &aBody)

Parameters

const TDesC8 & aBody

SetHeaderPresent(TBool)

voidSetHeaderPresent(TBoolaHeaderPresent)[private]

Parameters

TBool aHeaderPresent

TotalHeaderLengthInUDLUnits()

TInt TotalHeaderLengthInUDLUnits()const [private]

TotalHeaderLengthInUDLUnits(TInt)

TInt TotalHeaderLengthInUDLUnits(TIntaIElen)const [private]

Parameters

TInt aIElen

UpdateInformationElementArrayL(TSmsId, const TDesC8 &)

voidUpdateInformationElementArrayL(TSmsIdaIdentifier,
const TDesC8 &aData
)

Parameters

TSmsId aIdentifier
const TDesC8 & aData

Member Data Documentation

HBufC8 * iBody

HBufC8 *iBody[private]

CCnvCharacterSetConverter & iCharacterSetConverter

CCnvCharacterSetConverter &iCharacterSetConverter[private]

const TSmsDataCodingScheme & iDataCodingScheme

const TSmsDataCodingScheme &iDataCodingScheme[private]

TSmsFirstOctet & iFirstOctet

TSmsFirstOctet &iFirstOctet[private]

RFs & iFs

RFs &iFs[private]

CArrayPtrFlat< CSmsInformationElement > iInformationElementArray

CArrayPtrFlat< CSmsInformationElement >iInformationElementArray[private]