MHWRMHapticsPacketizer Class Reference
class MHWRMHapticsPacketizer |
Interface for Haptics packetizer. Includes functionality for encoding message data, decoding response data and getters for constants.
Public Member Functions |
---|
| ~MHWRMHapticsPacketizer() |
CDesC8ArraySeg * | DecodeMessageL(const TDesC8 &, TInt &) |
TInt
| DefaultDevicePriority() |
TInt
| DeviceHandle() |
TInt
| EncCloseDeviceReq(TInt, RBuf8 &) |
TInt
| EncCreateStreamingEffectReq(TInt, RBuf8 &) |
TInt
| EncDestroyStreamingEffectReq(TInt, TInt, RBuf8 &) |
TInt
| EncGetDeviceCapabilityIntReq(TInt, TInt, RBuf8 &) |
TInt
| EncGetDeviceCapabilityStringReq(TInt, TInt, RBuf8 &) |
TInt
| EncGetDevicePropertyBoolReq(TInt, TInt, RBuf8 &) |
TInt
| EncGetDevicePropertyIntReq(TInt, TInt, RBuf8 &) |
TInt
| EncGetDevicePropertyStringReq(TInt, TInt, RBuf8 &) |
TInt
| EncGetEffectStateReq(TInt, TInt, RBuf8 &) |
TInt
| EncModifyPlayingMagSweepEffectReq(TInt, TInt, CHWRMHaptics::THWRMHapticsMagSweepEffect, RBuf8 &) |
TInt
| EncModifyPlayingPeriodicEffectReq(TInt, TInt, CHWRMHaptics::THWRMHapticsPeriodicEffect, RBuf8 &) |
TInt
| EncOpenDeviceReq(THWRMLogicalActuators, RBuf8 &) |
TInt
| EncPausePlayingEffectReq(TInt, TInt, RBuf8 &) |
TInt
| EncPlayEffectIncludeEffectDataReq(TInt, const TDesC8 &, TInt, RBuf8 &) |
TInt
| EncPlayEffectNoDataReq(TInt, TInt, RBuf8 &) |
TInt
| EncPlayEffectRepeatIncludeEffectDataReq(TInt, const TDesC8 &, TInt, TUint8, RBuf8 &) |
TInt
| EncPlayEffectRepeatNoDataReq(TInt, TInt, TUint8, RBuf8 &) |
TInt
| EncPlayMagSweepEffectReq(TInt, CHWRMHaptics::THWRMHapticsMagSweepEffect, RBuf8 &) |
TInt
| EncPlayPeriodicEffectReq(TInt, CHWRMHaptics::THWRMHapticsPeriodicEffect, RBuf8 &) |
TInt
| EncPlayStreamingSampleReq(TInt, const TDesC8 &, TInt, RBuf8 &) |
TInt
| EncPlayStreamingSampleWithOffsetReq(TInt, const TDesC8 &, TInt, TInt, RBuf8 &) |
TInt
| EncResumePausedEffectReq(TInt, TInt, RBuf8 &) |
TInt
| EncSetDevicePropertyBoolReq(TInt, TBool, TInt, RBuf8 &) |
TInt
| EncSetDevicePropertyIntReq(TInt, TInt, TInt, RBuf8 &) |
TInt
| EncSetDevicePropertyStringReq(TInt, const TDesC8 &, TInt, RBuf8 &) |
TInt
| EncSetPlatformLicenseKeyReq(TInt, RBuf8 &) |
TInt
| EncStopAllPlayingEffectsReq(TInt, RBuf8 &) |
TInt
| EncStopPlayingEffectReq(TInt, TInt, RBuf8 &) |
TInt
| InfiniteDuration() |
TInt
| InfiniteRepeat() |
TInt
| MaxCapabilityStringLength() |
TInt
| MaxDeviceNameLength() |
TInt
| MaxEffectNameLength() |
TInt
| MaxPropertyStringLength() |
TInt
| MaxStreamingSampleSize() |
Constructor & Destructor Documentation
~MHWRMHapticsPacketizer()
~MHWRMHapticsPacketizer | ( | ) | [inline, virtual] |
Member Functions Documentation
DecodeMessageL(const TDesC8 &, TInt &)
Decodes given message and fills the data received in the message to the returned array.
Parameters
const TDesC8 & aData | Received response data. |
TInt & aStatus | On return, contains the received status value found in the response data. |
DefaultDevicePriority()
TInt
| DefaultDevicePriority | ( | ) | [pure virtual] |
Returns default device priority constant value.
DeviceHandle()
TInt
| DeviceHandle | ( | ) | [pure virtual] |
Returns device handle value set in DecodeMessageL(). If device is not open, the value is KErrNotFound.
EncCloseDeviceReq(TInt, RBuf8 &)
TInt
| EncCloseDeviceReq | ( | TInt | aDeviceHandle, |
| RBuf8 & | aBuffer |
| ) | [pure virtual] |
Creates request data for closing device/actuator.
Parameters
TInt aDeviceHandle | Device/actuator to be closed. |
RBuf8 & aBuffer | On return contains the request data buffer. |
EncCreateStreamingEffectReq(TInt, RBuf8 &)
TInt
| EncCreateStreamingEffectReq | ( | TInt | aDeviceHandle, |
| RBuf8 & | aBuffer |
| ) | [pure virtual] |
Creates request data for creating streaming effect.
Parameters
TInt aDeviceHandle | Handle to the used device/actuator. |
RBuf8 & aBuffer | On return contains the request data buffer. |
EncDestroyStreamingEffectReq(TInt, TInt, RBuf8 &)
TInt
| EncDestroyStreamingEffectReq | ( | TInt | aDeviceHandle, |
| TInt | aEffectHandle, |
| RBuf8 & | aBuffer |
| ) | [pure virtual] |
Creates request data for destroying streaming effect.
Parameters
TInt aDeviceHandle | Handle to the used device/actuator. |
TInt aEffectHandle | Handle to the existing effect. |
RBuf8 & aBuffer | On return contains the request data buffer. |
EncGetDeviceCapabilityIntReq(TInt, TInt, RBuf8 &)
TInt
| EncGetDeviceCapabilityIntReq | ( | TInt | aDeviceHandle, |
| TInt | aDevCapType, |
| RBuf8 & | aBuffer |
| ) | [pure virtual] |
Creates request data for getting integer device capability.
Parameters
TInt aDeviceHandle | Handle to the used device/actuator. |
TInt aDevCapType | Type of the capability to be fetched. |
RBuf8 & aBuffer | On return contains the request data buffer. |
EncGetDeviceCapabilityStringReq(TInt, TInt, RBuf8 &)
TInt
| EncGetDeviceCapabilityStringReq | ( | TInt | aDeviceHandle, |
| TInt | aDevCapType, |
| RBuf8 & | aBuffer |
| ) | [pure virtual] |
Creates request data for getting string device capability.
Parameters
TInt aDeviceHandle | Handle to the used device/actuator. |
TInt aDevCapType | Type of the capability to be fetched. |
RBuf8 & aBuffer | On return contains the request data buffer. |
EncGetDevicePropertyBoolReq(TInt, TInt, RBuf8 &)
TInt
| EncGetDevicePropertyBoolReq | ( | TInt | aDeviceHandle, |
| TInt | aDevPropType, |
| RBuf8 & | aBuffer |
| ) | [pure virtual] |
Creates request data for getting boolean device property.
Parameters
TInt aDeviceHandle | Handle to the used device/actuator. |
TInt aDevPropType | Type of the property to be fetched. |
RBuf8 & aBuffer | On return contains the request data buffer. |
EncGetDevicePropertyIntReq(TInt, TInt, RBuf8 &)
TInt
| EncGetDevicePropertyIntReq | ( | TInt | aDeviceHandle, |
| TInt | aDevPropType, |
| RBuf8 & | aBuffer |
| ) | [pure virtual] |
Creates request data for getting integer device property.
Parameters
TInt aDeviceHandle | Handle to the used device/actuator. |
TInt aDevPropType | Type of the property to be fetched. |
RBuf8 & aBuffer | On return contains the request data buffer. |
EncGetDevicePropertyStringReq(TInt, TInt, RBuf8 &)
TInt
| EncGetDevicePropertyStringReq | ( | TInt | aDeviceHandle, |
| TInt | aDevPropType, |
| RBuf8 & | aBuffer |
| ) | [pure virtual] |
Creates request data for getting string device property.
Parameters
TInt aDeviceHandle | Handle to the used device/actuator. |
TInt aDevPropType | Type of the property to be fetched. |
RBuf8 & aBuffer | On return contains the request data buffer. |
EncGetEffectStateReq(TInt, TInt, RBuf8 &)
TInt
| EncGetEffectStateReq | ( | TInt | aDeviceHandle, |
| TInt | aEffectHandle, |
| RBuf8 & | aBuffer |
| ) | [pure virtual] |
Creates request data for getting effect state.
Parameters
TInt aDeviceHandle | Handle to the used device/actuator. |
TInt aEffectHandle | Handle to the existing effect. |
RBuf8 & aBuffer | On return contains the request data buffer. |
EncModifyPlayingMagSweepEffectReq(TInt, TInt, CHWRMHaptics::THWRMHapticsMagSweepEffect, RBuf8 &)
Creates request data for modifying mag sweep effect.
EncModifyPlayingPeriodicEffectReq(TInt, TInt, CHWRMHaptics::THWRMHapticsPeriodicEffect, RBuf8 &)
Creates request data for modifying periodic effect.
EncOpenDeviceReq(THWRMLogicalActuators, RBuf8 &)
Creates request data for opening a device/actuator.
Parameters
THWRMLogicalActuators aLogicalActuator | Logical actuator type to be opened. |
RBuf8 & aBuffer | On return contains the request data buffer. |
EncPausePlayingEffectReq(TInt, TInt, RBuf8 &)
TInt
| EncPausePlayingEffectReq | ( | TInt | aDeviceHandle, |
| TInt | aEffectHandle, |
| RBuf8 & | aBuffer |
| ) | [pure virtual] |
Creates request data for pausing effect play.
Parameters
TInt aDeviceHandle | Handle to the used device/actuator. |
TInt aEffectHandle | Handle to the existing effect. |
RBuf8 & aBuffer | On return contains the request data buffer. |
EncPlayEffectIncludeEffectDataReq(TInt, const TDesC8 &, TInt, RBuf8 &)
TInt
| EncPlayEffectIncludeEffectDataReq | ( | TInt | aDeviceHandle, |
| const TDesC8 & | aData, |
| TInt | aEffectIndex, |
| RBuf8 & | aBuffer |
| ) | [pure virtual] |
Creates request data for playing periodic effect from effect data.
Parameters
TInt aDeviceHandle | Handle to the used device/actuator. |
const TDesC8 & aData | Effect data, which includes the effect to be played. |
TInt aEffectIndex | Index of the effect in the effect data. |
RBuf8 & aBuffer | On return contains the request data buffer. |
EncPlayEffectNoDataReq(TInt, TInt, RBuf8 &)
TInt
| EncPlayEffectNoDataReq | ( | TInt | aDeviceHandle, |
| TInt | aEffectIndex, |
| RBuf8 & | aBuffer |
| ) | [pure virtual] |
Creates request data for playing effect from loaded effect data.
Parameters
TInt aDeviceHandle | Handle to the used device/actuator. |
TInt aEffectIndex | Index of the effect in the effect data. |
RBuf8 & aBuffer | On return contains the request data buffer. |
EncPlayEffectRepeatIncludeEffectDataReq(TInt, const TDesC8 &, TInt, TUint8, RBuf8 &)
TInt
| EncPlayEffectRepeatIncludeEffectDataReq | ( | TInt | aDeviceHandle, |
| const TDesC8 & | aData, |
| TInt | aEffectIndex, |
| TUint8 | aRepeat, |
| RBuf8 & | aBuffer |
| ) | [pure virtual] |
Creates request data for playing repeating effect from effect data.
Parameters
TInt aDeviceHandle | Handle to the used device/actuator. |
const TDesC8 & aData | Effect data, which includes the effect to be played. |
TInt aEffectIndex | Index of the effect in the effect data. |
TUint8 aRepeat | The number of times to repeat the effect. |
RBuf8 & aBuffer | On return contains the request data buffer. |
EncPlayEffectRepeatNoDataReq(TInt, TInt, TUint8, RBuf8 &)
TInt
| EncPlayEffectRepeatNoDataReq | ( | TInt | aDeviceHandle, |
| TInt | aEffectIndex, |
| TUint8 | aRepeat, |
| RBuf8 & | aBuffer |
| ) | [pure virtual] |
Creates request data for playing repeating effect from loaded effect data.
Parameters
TInt aDeviceHandle | Handle to the used device/actuator. |
TInt aEffectIndex | Index of the effect in the effect data. |
TUint8 aRepeat | The number of times to repeat the effect. |
RBuf8 & aBuffer | On return contains the request data buffer. |
EncPlayMagSweepEffectReq(TInt, CHWRMHaptics::THWRMHapticsMagSweepEffect, RBuf8 &)
Creates request data for playing a magsweep effect.
EncPlayPeriodicEffectReq(TInt, CHWRMHaptics::THWRMHapticsPeriodicEffect, RBuf8 &)
Creates request data for playing a periodic effect.
EncPlayStreamingSampleReq(TInt, const TDesC8 &, TInt, RBuf8 &)
TInt
| EncPlayStreamingSampleReq | ( | TInt | aDeviceHandle, |
| const TDesC8 & | aStreamingSample, |
| TInt | aEffectHandle, |
| RBuf8 & | aBuffer |
| ) | [pure virtual] |
Creates request data for playing streaming sample.
Parameters
TInt aDeviceHandle | Handle to the used device/actuator. |
const TDesC8 & aStreamingSample | Sample data. |
TInt aEffectHandle | Handle to an effect. |
RBuf8 & aBuffer | On return contains the request data buffer. |
EncPlayStreamingSampleWithOffsetReq(TInt, const TDesC8 &, TInt, TInt, RBuf8 &)
TInt
| EncPlayStreamingSampleWithOffsetReq | ( | TInt | aDeviceHandle, |
| const TDesC8 & | aStreamingSample, |
| TInt | aOffsetTime, |
| TInt | aEffectHandle, |
| RBuf8 & | aBuffer |
| ) | [pure virtual] |
Creates request data for playing streaming sample with offset.
Parameters
TInt aDeviceHandle | Handle to the used device/actuator. |
const TDesC8 & aStreamingSample | Sample data. |
TInt aOffsetTime | Offset time. |
TInt aEffectHandle | Handle to an effect. |
RBuf8 & aBuffer | On return contains the request data buffer. |
EncResumePausedEffectReq(TInt, TInt, RBuf8 &)
TInt
| EncResumePausedEffectReq | ( | TInt | aDeviceHandle, |
| TInt | aEffectHandle, |
| RBuf8 & | aBuffer |
| ) | [pure virtual] |
Creates request data for resuming paused effect play.
Parameters
TInt aDeviceHandle | Handle to the used device/actuator. |
TInt aEffectHandle | Handle to the existing effect. |
RBuf8 & aBuffer | On return contains the request data buffer. |
EncSetDevicePropertyBoolReq(TInt, TBool, TInt, RBuf8 &)
TInt
| EncSetDevicePropertyBoolReq | ( | TInt | aDeviceHandle, |
| TBool | aDevPropValue, |
| TInt | aDevPropType, |
| RBuf8 & | aBuffer |
| ) | [pure virtual] |
Creates request data for setting boolean device property.
Parameters
TInt aDeviceHandle | Handle to the used device/actuator. |
TBool aDevPropValue | Device property value. |
TInt aDevPropType | Type of the property to be set. |
RBuf8 & aBuffer | On return contains the request data buffer. |
EncSetDevicePropertyIntReq(TInt, TInt, TInt, RBuf8 &)
TInt
| EncSetDevicePropertyIntReq | ( | TInt | aDeviceHandle, |
| TInt | aDevPropValue, |
| TInt | aDevPropType, |
| RBuf8 & | aBuffer |
| ) | [pure virtual] |
Creates request data for setting integer device property.
Parameters
TInt aDeviceHandle | Handle to the used device/actuator. |
TInt aDevPropValue | Device property value. |
TInt aDevPropType | |
RBuf8 & aBuffer | On return contains the request data buffer. |
EncSetDevicePropertyStringReq(TInt, const TDesC8 &, TInt, RBuf8 &)
TInt
| EncSetDevicePropertyStringReq | ( | TInt | aDeviceHandle, |
| const TDesC8 & | aDevPropValue, |
| TInt | aDevPropType, |
| RBuf8 & | aBuffer |
| ) | [pure virtual] |
Creates request data for setting string device property.
Parameters
TInt aDeviceHandle | Handle to the used device/actuator. |
const TDesC8 & aDevPropValue | Device property value. |
TInt aDevPropType | Type of the property to be set. |
RBuf8 & aBuffer | On return contains the request data buffer. |
EncSetPlatformLicenseKeyReq(TInt, RBuf8 &)
TInt
| EncSetPlatformLicenseKeyReq | ( | TInt | aDeviceHandle, |
| RBuf8 & | aBuffer |
| ) | [pure virtual] |
Creates request data for setting platform license key.
Parameters
TInt aDeviceHandle | Handle to the used device/actuator. |
RBuf8 & aBuffer | On return contains the request data buffer. |
EncStopAllPlayingEffectsReq(TInt, RBuf8 &)
TInt
| EncStopAllPlayingEffectsReq | ( | TInt | aDeviceHandle, |
| RBuf8 & | aBuffer |
| ) | [pure virtual] |
Creates request data for stopping all effect play.
Parameters
TInt aDeviceHandle | Handle to the used device/actuator. |
RBuf8 & aBuffer | On return contains the request data buffer. |
EncStopPlayingEffectReq(TInt, TInt, RBuf8 &)
TInt
| EncStopPlayingEffectReq | ( | TInt | aDeviceHandle, |
| TInt | aEffectHandle, |
| RBuf8 & | aBuffer |
| ) | [pure virtual] |
Creates request data for stopping effect play.
Parameters
TInt aDeviceHandle | Handle to the used device/actuator. |
TInt aEffectHandle | Handle to the existing effect. |
RBuf8 & aBuffer | On return contains the request data buffer. |
InfiniteDuration()
TInt
| InfiniteDuration | ( | ) | [pure virtual] |
Returns infinite duration constant value.
InfiniteRepeat()
TInt
| InfiniteRepeat | ( | ) | [pure virtual] |
Returns infinite repeat constant value.
MaxCapabilityStringLength()
TInt
| MaxCapabilityStringLength | ( | ) | [pure virtual] |
Returns maximum capability string length constant value.
MaxDeviceNameLength()
TInt
| MaxDeviceNameLength | ( | ) | [pure virtual] |
Returns maximum device name length constant value.
MaxEffectNameLength()
TInt
| MaxEffectNameLength | ( | ) | [pure virtual] |
Returns maximum effect name length constant value.
MaxPropertyStringLength()
TInt
| MaxPropertyStringLength | ( | ) | [pure virtual] |
Returns maximum property string length constant value.
MaxStreamingSampleSize()
TInt
| MaxStreamingSampleSize | ( | ) | [pure virtual] |
Returns maximum streaming sample size constant value.
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.