MHWRMHapticsObserver Class Reference
#include
<hwrmhapticsobserver.h>
Link against: hwrmhapticseffectdatagetterfw.lib
class MHWRMHapticsObserver |
Detailed Description
MHWRMHapticsObserver observer class.
A client should derive from this abstract class to receive haptics status notifications and notification of effect completion.
Member Enumeration Documentation
Enum THWRMHapticsStatus
Enumerator | Value | Description |
---|
EHWRMHapticsStatusAvailable | 0 |
Haptics is available for the observing client.
|
EHWRMHapticsStatusReserved | |
Haptics is reserved for another client. The client making the active reservation does not receive this notification, but a success code for the reservation command.
|
EHWRMHapticsStatusSuspended | |
Haptics has been suspended for this client. This occurs, when another client with higher priority makes reservation for haptics, or when this client is making reservation and haptics has already been reserved for a client with higher priority.
In suspended state, haptics effects are not played for the suspended client, but other commands are executed as normal.
|
Member Function Documentation
EffectCompletedL ( TInt, TInt )
void | EffectCompletedL | ( | TInt | aError, |
| TInt | aEffectHandle |
| ) | [pure virtual] |
Called when effect has completed playing.
Method reserved for future use.
Parameter | Description | aError | Reason of completion. |
aEffectHandle | The associated effectHandle to the effect. |
HapticsStatusChangedL ( THWRMHapticsStatus )
Called when the device's haptics feature state changes
See also: CHWRMHaptics::THWRMHapticsStatus
Parameter | Description | aStatus | Indicates haptics status. |