Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <mmfcontroller.h>
Link against: mmfcontrollerframework.lib

Class CMMFDataSourceHolder

class CMMFDataSourceHolder : public CMMFObject;

Description

CMMFObject-derived class to wrap a Data Source.

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

Derivation

Members

Defined in CMMFDataSourceHolder:

Inherited from CBase:

Inherited from CMMFObject:


Construction and destruction


CMMFDataSourceHolder(MDataSource &)

IMPORT_C CMMFDataSourceHolder(MDataSource &aDataSource);

Description

Constructor.

Parameters

MDataSource &aDataSource

The data source to be wrapped.


~CMMFDataSourceHolder()

IMPORT_C ~CMMFDataSourceHolder();

Description

Destructor.

Note: This deletes the data source.

[Top]


Member functions


DataSource()

IMPORT_C MDataSource& DataSource();

Description

Returns a reference to the data source.

Return value

MDataSource &

The data source.


HandleRequest(TMMFMessage &)

IMPORT_C virtual void HandleRequest(TMMFMessage &aMessage);

Description

Implementation of the pure virtual function inherited from CMMFObject.

Passes the request directly to the data source.

Parameters

TMMFMessage &aMessage

The message to be handled.