CMMFAddDataSourceSinkAsync Class Reference

#include <mmf/common/mmfcontroller.h>

Link against: mmfcontrollerframework.lib

class CMMFAddDataSourceSinkAsync : public CActive, public CActive

Inherits from

Detailed Description

Active object utility class that can be used to add a data source or data sink to a controller

plugin asynchronously. Once the command has been completed, the caller will be notified via the

MMMFAddDataSourceSinkAsyncObserver interface.

Since
8.0

Constructor & Destructor Documentation

~CMMFAddDataSourceSinkAsync ( )

~CMMFAddDataSourceSinkAsync()

Destructor.

Member Function Documentation

AddDataSink ( RMMFController &, TUid, const TDesC8 & )

IMPORT_C voidAddDataSink(RMMFController &aController,
TUidaSinkUid,
const TDesC8 &aSinkInitData
)

Add a data sink to the controller. The caller will be signalled on completion via the MMMFAddDataSourceSinkAsyncObserver interface.

Only one method call may be outstanding on this object at any one time.

Since
7.0s
Parameters
aControllerA reference to the client controller interface class.
aSinkUidThe uid of the data sink to be added. For more information, see the documentation for the data sink you wish to add.
aSinkInitDataData used to initialise the data sink. The exact contents of this data are dependent on the type of data sink. For more information, see the documentation for the data sink you wish to add.

AddDataSource ( RMMFController &, TUid, const TDesC8 & )

IMPORT_C voidAddDataSource(RMMFController &aController,
TUidaSourceUid,
const TDesC8 &aSourceInitData
)

Add a data source to the controller. The caller will be signalled on completion via the MMMFAddDataSourceSinkAsyncObserver interface.

Only one method call may be outstanding on this object at any one time.

Since
7.0s
Parameters
aControllerA reference to the client controller interface class.
aSourceUidThe uid of the data source to be added. For more information, see the documentation for the data source you wish to add.
aSourceInitDataData used to initialise the data source. The exact contents of this data are dependent on the type of data source. For more information, see the documentation for the data source you wish to add.

AddFileHandleDataSink ( RMMFController &, const RFile & )

IMPORT_C voidAddFileHandleDataSink(RMMFController &aController,
const RFile &aFile
)

AddFileHandleDataSink ( RMMFController &, const RFile &, const TDesC8 & )

IMPORT_C voidAddFileHandleDataSink(RMMFController &aController,
const RFile &aFile,
const TDesC8 &aSinkInitData
)

AddFileHandleDataSource ( RMMFController &, const RFile & )

IMPORT_C voidAddFileHandleDataSource(RMMFController &aController,
const RFile &aFile
)

AddFileHandleDataSource ( RMMFController &, const RFile &, const TDesC8 & )

IMPORT_C voidAddFileHandleDataSource(RMMFController &aController,
const RFile &aFile,
const TDesC8 &aSourceInitData
)

NewL ( MMMFAddDataSourceSinkAsyncObserver & )

Constructs a CMMFAddDataSourceSinkAsync object.

Since
7.0s
Parameters
aObsA reference to the observer of the active object. The observer will be notified when the AddDataSource/Sink command is complete.
Return Value
A pointer to the new object.
Leave Codes
Thismethod can leave with one of the standard system-wide error codes.