CMMFAddDataSourceSinkAsync Class Reference

#include "mmfcontroller.h"

Link against: mmfcontrollerframework.lib

class CMMFAddDataSourceSinkAsync : public CActive

Inherits from

  • CMMFAddDataSourceSinkAsync

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

    leave
    This method can leave with one of the standard system-wide error codes.
    Since
    7.0s
    ParameterDescription
    aObsA reference to the observer of the active object. The observer will be notified when the AddDataSource/Sink command is complete.

    Returns: A pointer to the new object.