CEmsSoundIE Class Reference

class CEmsSoundIE : public CEmsInformationElement

CEmsSoundIE wraps the creation & modification of the user & predefined sound information elements into a single class.

Format of Extended Object PreDefined Sound. ------------------------------------------

Position (Octet) Bit Description 1 Start Position 2 Number of predef sound

Format of Extended Object User Defined Sound. --------------------------------------------

Position (Octet) Bit Description 1 Start Position 2..n Sound Data (iMelody)

3gpp Spec V5 section 9.2.3.24.10.1.2/3

Public Member Functions
~CEmsSoundIE()
IMPORT_C voidCopyL(const CEmsSoundIE &)
IMPORT_C CEmsInformationElement *DuplicateL()
IMPORT_C const HBufC8 *Melody()
CEmsSoundIE *NewL()
IMPORT_C CEmsSoundIE *NewL(const TDesC8 &)
Private Member Functions
CEmsSoundIE()
voidConstructL(const TDesC8 &)
voidDecodeBodyL(const TPtrC8, TBool)
voidEncodeBodyL(TPtr8, TBool)
voidReset()
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()
CEmsInformationElement::CEmsInformationElement(TSmsId,TBool)
CEmsInformationElement::CopyL(const CEmsInformationElement &)
CEmsInformationElement::DecodeInformationElementL(const CSmsInformationElement &)
CEmsInformationElement::EncodeInformationElementL()
CEmsInformationElement::ExternalizeL(RWriteStream &)const
CEmsInformationElement::InternalizeL(RReadStream &)
CEmsInformationElement::Length()const
CEmsInformationElement::SerialisedBodyLength()const
CEmsInformationElement::SetStartPosition(TUint)
CEmsInformationElement::StartPosition()const
CSmsInformationElement::CSmsInformationElement(TSmsInformationElementIdentifier)
CSmsInformationElement::Data()
CSmsInformationElement::Data()const
CSmsInformationElement::DecodeL(TGsmuLex8 &)
CSmsInformationElement::EncodeL(TUint8 *)const
CSmsInformationElement::Identifier()const
CSmsInformationElement::NewDataL(TInt)
CSmsInformationElement::NewL(TSmsInformationElementIdentifier,const TDesC8 &)
CSmsInformationElement::~CSmsInformationElement()
Inherited Enumerations
CSmsInformationElement:TSmsInformationElementIdentifier
Private Attributes
HBufC8 *iMelody
Inherited Attributes
CEmsInformationElement::iEncodedBodyLength
CEmsInformationElement::iStartPosition
CSmsInformationElement::iData
CSmsInformationElement::iIdentifier

Constructor & Destructor Documentation

CEmsSoundIE()

CEmsSoundIE()[private]

~CEmsSoundIE()

IMPORT_C~CEmsSoundIE()
capability
None

Member Functions Documentation

ConstructL(const TDesC8 &)

voidConstructL(const TDesC8 &aMelody)[private]

Parameters

const TDesC8 & aMelody

CopyL(const CEmsSoundIE &)

IMPORT_C voidCopyL(const CEmsSoundIE &aSrc)
capability
None

Parameters

const CEmsSoundIE & aSrc

DecodeBodyL(const TPtrC8, TBool)

voidDecodeBodyL(const TPtrC8aPtr,
TBoolaIsFromSerialisation
)[private, virtual]

Decodes the raw data out of an information element into this class.

leave
KErrCorrupt If the size of the data does not match what is expected.

Parameters

const TPtrC8 aPtrThe raw predefined animation data
TBool aIsFromSerialisation

DuplicateL()

IMPORT_C CEmsInformationElement *DuplicateL()const [virtual]
capability
None

EncodeBodyL(TPtr8, TBool)

voidEncodeBodyL(TPtr8aPtr,
TBoolaIsForSerialisation
)const [private, virtual]

Encodes the information element into its raw format. (no IE id)

leave
KErrCorrupt If the melody has not been defined.

Parameters

TPtr8 aPtrthe buffer to be used which is to contain the data
TBool aIsForSerialisation

Melody()

IMPORT_C const HBufC8 *Melody()const
capability
None

NewL()

CEmsSoundIE *NewL()[static]

NewL(const TDesC8 &)

IMPORT_C CEmsSoundIE *NewL(const TDesC8 &aMelody)[static]
capability
None

Parameters

const TDesC8 & aMelody

Reset()

voidReset()[private]

Member Data Documentation

HBufC8 * iMelody

HBufC8 *iMelody[private]