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.
Public Member Functions | |
---|---|
~CHWRMHapticsPluginService () | |
void | CancelCommandL ( TUint8 , TInt ) |
IMPORT_C CHWRMHapticsPluginService * | NewL ( TUid , MHWRMHapticsPluginCallback *) |
void | ProcessCommandL ( TInt , TUint8 , TDesC8 &) |
Protected Attributes | |
---|---|
TUid | iDestructorIDKey |
MHWRMHapticsPluginCallback * | iResponseCallback |
void | CancelCommandL | ( | TUint8 | aTransId, |
TInt | aCommandId | |||
) | [pure virtual] |
Method to cancel a particular command. The corresponding ProcessResponseL will not be called for cancelled commands, whether cancel was successful or not.
IMPORT_C CHWRMHapticsPluginService * | NewL | ( | TUid | aImplementationUid, |
MHWRMHapticsPluginCallback * | aResponseCallback | |||
) | [static] |
Instantiation method. Uses ECom to find correct instance.
TUid aImplementationUid | Determines the plugin to be instantiated. |
MHWRMHapticsPluginCallback * aResponseCallback | Pointer to plugin callback handler. |
void | ProcessCommandL | ( | TInt | aCommandId, |
TUint8 | aTransId, | |||
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.
TInt aCommandId | Command ID |
TUint8 aTransId | Transaction 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 & aData | Data associated with command. Data package contents are defined by command. Some commands require no data and pass empty buffer as aData; |
TUid | iDestructorIDKey | [protected] |
Destructor identifier to be used with ECom framework.
MHWRMHapticsPluginCallback * | iResponseCallback | [protected] |
Callback pointer to be used with responses to commands. Not owned.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.