CMceMediaSource Class Reference

class CMceMediaSource : public CBase

Base class for the MCE media sources.

Media sources represent the origin of data. CMceMediaSource puts it data through CMceMediaStream into CMceMediaSink.

CMceMediaSource has a type that defines how it can connected to other sinks and streams.

Enable and Disable operations to sinks are considered to be local, so they are not signalled to remote terminal.

DTMF tones can be send from media sources that are connected to steams of TMceMediaType KMceAudio. Also, stream must have negotiated codec of type Telephony-Event.

mceclient.lib

Inherits from

Constructor & Destructor Documentation

CMceMediaSource()

CMceMediaSource()[protected]

C++ default constructor.

~CMceMediaSource()

IMPORT_C~CMceMediaSource()

Member Functions Documentation

CancelDtmfToneSequenceL()

voidCancelDtmfToneSequenceL()[virtual]
Cancels the sending of tone sequence.
Pre-condition
DtmfAvailable() == ETrue && DtmfActive() == ETrue.

ConstructL(CMceComMediaSource *)

voidConstructL(CMceComMediaSource *aFlatData)[protected]

second-phase constructor flat data container

Parameters

CMceComMediaSource * aFlatData

DisableL()

voidDisableL()[pure virtual]

Disables streaming explicitly.

DoDisableL()

voidDoDisableL()[protected]

Disables streaming explicitly.

DoEnableL()

voidDoEnableL()[protected]

Enables streaming explicitly.

DoITCSendL(TUint8, TBool, TUint32, TUint32)

voidDoITCSendL(TUint8aITCFunction,
TBoolaEnabled,
TUint32aData1 = 0,
TUint32aData2 = 0
)[private]

Handles ITC

Parameters

TUint8 aITCFunction
TBool aEnabled
TUint32 aData1 = 0
TUint32 aData2 = 0

DtmfActive()

TBool DtmfActive()[virtual]

Checks if DTMF is currently being played.

DtmfAvailable()

TBool DtmfAvailable()[virtual]

Checks if DTMF is available for using. DTMF is available if source is connected to steam of type TMceMediaType KMceAudio, and it has negotiated codec of type Telephony-Event.

EnableL()

voidEnableL()[pure virtual]

Enables streaming explicitly.

Enabled(TBool)

voidEnabled(TBoolaValue)

Sets enabled flag

Parameters

TBool aValueenabled/disabled

EventReceivedL(TMceEvent &)

TInt EventReceivedL(TMceEvent &aEvent)[virtual]

Traversal event handler

Parameters

TMceEvent & aEventthe event

ExternalizeFlatL(RWriteStream &)

voidExternalizeFlatL(RWriteStream &aWriteStream)

Externalizes flat data

Parameters

RWriteStream & aWriteStreamwrite stream

ExternalizeL(MMceComSerializationContext &)

voidExternalizeL(MMceComSerializationContext &aSerCtx)[virtual]

Externalizes

Parameters

MMceComSerializationContext & aSerCtxcontext for serialization

Factory()

TMceSourceFactory Factory()[static]

Factory

HandleEvent(TMceEvent &)

TInt HandleEvent(TMceEvent &aEvent)[protected]

Handles event

Parameters

TMceEvent & aEventthe event

Id()

TMceMediaId Id()const

ID

InitializeL(CMceMediaStream &)

voidInitializeL(CMceMediaStream &aParent)[virtual]

Initializes

Parameters

CMceMediaStream & aParentthe parent

InitializeL(CMceManager *)

voidInitializeL(CMceManager *aManager)[virtual]

Initializes

Parameters

CMceManager * aManagerthe manager. Ownership is NOT transferred

InternalizeFlatL(RReadStream &)

voidInternalizeFlatL(RReadStream &aReadStream)

Internalizes flat data

Parameters

RReadStream & aReadStreamread stream

InternalizeL(MMceComSerializationContext &)

voidInternalizeL(MMceComSerializationContext &aSerCtx)[virtual]

Internalizes

Parameters

MMceComSerializationContext & aSerCtxcontext for serialization

IsEnabled()

IMPORT_C TBoolIsEnabled()const

Returns the state of the source.

ReferenceCount()

TInt &ReferenceCount()

Sets and gets reference count describing to how many streams source is associated

SendDtmfToneL(const TChar &, TTimeIntervalMicroSeconds32)

voidSendDtmfToneL(const TChar &aTone,
TTimeIntervalMicroSeconds32aDuration
)[virtual]
Sends a single tone.
Pre-condition
DtmfAvailable() == ETrue && DtmfActive() == EFalse.
Post-condition
DtmfActive() == ETrue.

Parameters

const TChar & aToneDTMF tone to be played.
TTimeIntervalMicroSeconds32 aDurationDuration of DTMF tone to be played.

SendDtmfToneSequenceL(const TDesC &)

voidSendDtmfToneSequenceL(const TDesC &aSequence)[virtual]
Sends a sequence of tones.
Pre-condition
DtmfAvailable() == ETrue && DtmfActive() == EFalse.
Post-condition
DtmfActive() == ETrue.

Parameters

const TDesC & aSequenceSequence of DTMF tones to be played.

SerializationId()

TUint64 SerializationId()const

Returns serialization id

StartDtmfToneL(const TChar &)

voidStartDtmfToneL(const TChar &aTone)[virtual]
Starts playing of a tone. Tone is played until stopped by the client.
Pre-condition
DtmfAvailable() == ETrue && DtmfActive() == EFalse.
Post-condition
DtmfActive() == ETrue.

Parameters

const TChar & aToneDTMF tone to be played.

StopDtmfToneL()

voidStopDtmfToneL()[virtual]
Stops playing of a tone.
Pre-condition
DtmfAvailable() == ETrue && DtmfActive() == ETrue.

StreamAddedL(CMceMediaStream &)

voidStreamAddedL(CMceMediaStream &aParent)[virtual]

Stream has been added to session

Parameters

CMceMediaStream & aParentthe parent stream

Type()

IMPORT_C TMceSourceTypeType()const

Returns the type of the source.

UnInitialize(CMceMediaStream &)

voidUnInitialize(CMceMediaStream &aParent)

Stream is been deleted

Parameters

CMceMediaStream & aParentthe parent stream

UpdateL(CMceMediaSource &)

voidUpdateL(CMceMediaSource &aUpdate)

Updates

Parameters

CMceMediaSource & aUpdateupdated data

Updated()

voidUpdated()[virtual]

Called after update

Member Data Documentation

CMceComMediaSource * iFlatData

CMceComMediaSource *iFlatData[protected]

flat data container

RPointerArray< CMceMediaStream > iParents

RPointerArray< CMceMediaStream >iParents[protected]

CMceMediaStream * iStream

CMceMediaStream *iStream[protected]

stream