CHWRMHapticsPluginService Class Reference

class CHWRMHapticsPluginService : public CBase

Plugin interface class to be implemented by adaptation. Responsible for invoking the adaptation implementation of each command and cancelling the command.

Since
S60 5.1

Inherits from

  • CHWRMHapticsPluginService

Constructor & Destructor Documentation

~CHWRMHapticsPluginService()

IMPORT_C~CHWRMHapticsPluginService()[virtual]

Destructor

Member Functions Documentation

CancelCommandL(TUint8, TInt)

voidCancelCommandL(TUint8aTransId,
TIntaCommandId
)[pure virtual]

Method to cancel a particular command. The corresponding ProcessResponseL will not be called for cancelled commands, whether cancel was successful or not.

Parameters

TUint8 aTransIdTransaction ID
TInt aCommandIdCommand ID to optionally double check with the transaction ID

NewL(TUid, MHWRMHapticsPluginCallback *)

IMPORT_C CHWRMHapticsPluginService *NewL(TUidaImplementationUid,
MHWRMHapticsPluginCallback *aResponseCallback
)[static]

Instantiation method. Uses ECom to find correct instance.

Parameters

TUid aImplementationUidDetermines the plugin to be instantiated.
MHWRMHapticsPluginCallback * aResponseCallbackPointer to plugin callback handler.

ProcessCommandL(TInt, TUint8, TDesC8 &)

voidProcessCommandL(TIntaCommandId,
TUint8aTransId,
TDesC8 &aData
)[pure virtual]

Method to invoke a particular command in the plugin. Response to method is returned via separate ProcessResponseL callback. Call to ProcessResponseL is done after the call to ProcessCommandL returns. Plugin must be able to handle another ProcessCommandL before ProcessResponseL is called for previous call(s) (i.e. multiple clients are attempting to access resource simultaneously). If ProcessCommandL leaves, no corresponding ProcessResponseL is expected.

Parameters

TInt aCommandIdCommand ID
TUint8 aTransIdTransaction ID. Unique Id allocated by the issuer of this command that is used to distinguish which response relates to which command. Also used in CancelCommandL to distinguish which command is cancelled.
TDesC8 & aDataData associated with command. Data package contents are defined by command. Some commands require no data and pass empty buffer as aData;

Member Data Documentation

TUid iDestructorIDKey

TUid iDestructorIDKey[protected]

Destructor identifier to be used with ECom framework.

MHWRMHapticsPluginCallback * iResponseCallback

MHWRMHapticsPluginCallback *iResponseCallback[protected]

Callback pointer to be used with responses to commands. Not owned.