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.

Since
S60 5.1

Member Enumeration Documentation

Enum THWRMHapticsStatus

Haptics status.

EnumeratorValueDescription
EHWRMHapticsStatusAvailable0

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 )

voidEffectCompletedL(TIntaError,
TIntaEffectHandle
)[pure virtual]

Called when effect has completed playing.

Method reserved for future use.

Since
S60 5.1
ParameterDescription
aErrorReason of completion.
aEffectHandleThe associated effectHandle to the effect.

HapticsStatusChangedL ( THWRMHapticsStatus )

voidHapticsStatusChangedL(THWRMHapticsStatusaStatus)[pure virtual]

Called when the device's haptics feature state changes

Since
S60 5.1

See also: CHWRMHaptics::THWRMHapticsStatus

ParameterDescription
aStatusIndicates haptics status.