CMMFDataSourceHolder Class Reference

#include <mmf/common/mmfcontroller.h>

Link against: mmfcontrollerframework.lib

class CMMFDataSourceHolder : public CMMFObject, public CMMFObject

Inherits from

Detailed 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.

Since
7.0s

Constructor & Destructor Documentation

CMMFDataSourceHolder ( MDataSource & )

IMPORT_CCMMFDataSourceHolder(MDataSource &aDataSource)

Constructor.

Since
7.0s
Parameters
aDataSourceThe data source to be wrapped.

~CMMFDataSourceHolder ( )

IMPORT_C~CMMFDataSourceHolder()

Destructor.

Note: This deletes the data source.

Since
7.0s

Member Function Documentation

DataSource ( )

IMPORT_C MDataSource &DataSource()

Returns a reference to the data source.

Since
7.0s
Return Value
The data source.

HandleRequest ( TMMFMessage & )

IMPORT_C voidHandleRequest(TMMFMessage &aMessage)[virtual]

Reimplemented from CMMFObject::HandleRequest(TMMFMessage &)

Implementation of the pure virtual function inherited from CMMFObject.

Passes the request directly to the data source.

Since
7.0s
Parameters
aMessageThe message to be handled.