Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: mmfcontroller.h
Link against: mmfcontrollerframework.lib

Class CMMFDataSinkHolder

class CMMFDataSinkHolder : public CMMFObject;

Description

CMMFObject-derived class to wrap a Data Sink.

Allows a handle to be attributed to a data sink, so it can be removed from the controller and the client can send messages directly to it.

Derivation

Members

Defined in CMMFDataSinkHolder:
CMMFDataSinkHolder(), DataSink(), HandleRequest(), ~CMMFDataSinkHolder()

Inherited from CBase:
Delete(), Extension_(), operator new()

Inherited from CMMFObject:
Handle(), operator==()


Construction and destruction


CMMFDataSinkHolder()

IMPORT_C CMMFDataSinkHolder(MDataSink &aDataSink);

Description

Constructor.

Parameters

MDataSink &aDataSink

The data sink to be wrapped.


~CMMFDataSinkHolder()

IMPORT_C ~CMMFDataSinkHolder();

Description

Destructor.

Note: This deletes the data sink.

[Top]


Member functions


DataSink()

IMPORT_C MDataSink &DataSink();

Description

Returns a reference to the data sink.

Return value

MDataSink &

The data sink.


HandleRequest()

virtual IMPORT_C void HandleRequest(TMMFMessage &aMessage);

Description

Implementation of the pure virtual function inherited from CMMFObject.

Passes the request directly to the data sink.

Parameters

TMMFMessage &aMessage

The message to be handled.