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 void CopyL (const CEmsSoundIE &)
IMPORT_C CEmsInformationElement * DuplicateL ()
IMPORT_C const HBufC8 * Melody ()
CEmsSoundIE * NewL ()
IMPORT_C CEmsSoundIE * NewL (const TDesC8 &)
Private Member Functions
CEmsSoundIE ()
void ConstructL (const TDesC8 &)
void DecodeBodyL (const TPtrC8 , TBool )
void EncodeBodyL ( TPtr8 , TBool )
void Reset ()
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 &)

void ConstructL ( const TDesC8 & aMelody ) [private]

Parameters

const TDesC8 & aMelody

CopyL(const CEmsSoundIE &)

IMPORT_C void CopyL ( const CEmsSoundIE & aSrc )
capability
None

Parameters

const CEmsSoundIE & aSrc

DecodeBodyL(const TPtrC8, TBool)

void DecodeBodyL ( const TPtrC8 aPtr,
TBool aIsFromSerialisation
) [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 aPtr The raw predefined animation data
TBool aIsFromSerialisation

DuplicateL()

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

EncodeBodyL(TPtr8, TBool)

void EncodeBodyL ( TPtr8 aPtr,
TBool aIsForSerialisation
) 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 aPtr the 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()

void Reset ( ) [private]

Member Data Documentation

HBufC8 * iMelody

HBufC8 * iMelody [private]