CMceMediaSink Class Reference

class CMceMediaSink : public CBase

Base class for the MCE media sinks.

Media sinks represent the destination of data. CMceMediaSink gets it data from CMceMediaSource through CMceMediaStream.

CMceMediaSink has a type that defines how it can connected to other sources and streams.

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

mceclient.lib

Inherits from

Constructor & Destructor Documentation

CMceMediaSink()

CMceMediaSink()[protected]

C++ default constructor.

~CMceMediaSink()

IMPORT_C~CMceMediaSink()

Member Functions Documentation

ConstructL(CMceComMediaSink *)

voidConstructL(CMceComMediaSink *aFlatData)[protected]

second-phase constructor flat data container

Parameters

CMceComMediaSink * aFlatData

CreateEndpointProxyL()

MMceEndPointProxy *CreateEndpointProxyL()const [virtual]

Called endpoint proxy must be created

DisableL()

voidDisableL()[pure virtual]

Disables streaming explicitly.

DoDisableL()

voidDoDisableL()[protected]

Disables streaming explicitly.

DoEnableL()

voidDoEnableL()[protected]

Enables streaming explicitly.

DoITCSendL(TUint8, TBool)

voidDoITCSendL(TUint8aITCFunction,
TBoolaEnabled
)[private]

Handles ITC

Parameters

TUint8 aITCFunction
TBool aEnabled

EnableL()

voidEnableL()[pure virtual]

Enables streaming explicitly.

Enabled(TBool)

voidEnabled(TBoolaValue)

Sets enabled flag

Parameters

TBool aValueenabled/disabled

EndpointProxy()

MMceEndPointProxy *EndpointProxy()const

Returns endpoint proxy

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()

TMceSinkFactory 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 sink.

ReferenceCount()

TInt &ReferenceCount()

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

SerializationId()

TUint64 SerializationId()const

Returns serialization id

SetupEndpointProxyL(MMceEndPointProxy *)

voidSetupEndpointProxyL(MMceEndPointProxy *aEndpointProxy)

Called when stream bundle has beed added to prepare proxy for it

Parameters

MMceEndPointProxy * aEndpointProxyendpoint proxy setup by another endpoint or NULL

StreamAddedL(CMceMediaStream &)

voidStreamAddedL(CMceMediaStream &aParent)[virtual]

Stream has been added to session

Parameters

CMceMediaStream & aParentthe parent stream

Type()

IMPORT_C TMceSinkTypeType()const

Returns the type of the sink.

UnInitialize(CMceMediaStream &)

voidUnInitialize(CMceMediaStream &aParent)

Stream is been deleted

Parameters

CMceMediaStream & aParentthe parent stream

UpdateL(CMceMediaSink &)

voidUpdateL(CMceMediaSink &aUpdate)

Updates

Parameters

CMceMediaSink & aUpdateupdated data

Updated()

voidUpdated()[virtual]

Called after update

UsesEndpointProxy()

TBool UsesEndpointProxy()const [virtual]

Should this endpoint use endpoint proxy

Member Data Documentation

MMceEndPointProxy * iEndpointProxy

MMceEndPointProxy *iEndpointProxy[protected]

CMceComMediaSink * iFlatData

CMceComMediaSink *iFlatData[protected]

flat data container

RPointerArray< CMceMediaStream > iParents

RPointerArray< CMceMediaStream >iParents[protected]

CMceMediaStream * iStream

CMceMediaStream *iStream[protected]

stream