The QFeedbackHapticsInterface class is the base class for plugins providing custom haptics effects. More...
#include <QFeedbackHapticsInterface>
Inherits: QFeedbackInterface.
This class was introduced in Qt Mobility 1.1.
enum | ActuatorProperty { Name, State, Enabled } |
enum | EffectProperty { Duration, Intensity, AttackTime, AttackIntensity, ..., Period } |
virtual QVariant | actuatorProperty ( const QFeedbackActuator & actuator, ActuatorProperty property ) = 0 |
virtual QList<QFeedbackActuator *> | actuators () = 0 |
virtual QFeedbackEffect::State | effectState ( const QFeedbackHapticsEffect * effect ) = 0 |
virtual bool | isActuatorCapabilitySupported ( const QFeedbackActuator & actuator, QFeedbackActuator::Capability capability ) = 0 |
virtual PluginPriority | pluginPriority () = 0 |
virtual void | setActuatorProperty ( const QFeedbackActuator & actuator, ActuatorProperty property, const QVariant & value ) = 0 |
virtual void | setEffectState ( const QFeedbackHapticsEffect * effect, QFeedbackEffect::State state ) = 0 |
virtual void | updateEffectProperty ( const QFeedbackHapticsEffect * effect, EffectProperty property ) = 0 |
QFeedbackActuator * | createFeedbackActuator ( QObject * parent, int id ) |
The QFeedbackHapticsInterface class is the base class for plugins providing custom haptics effects.
This interface will be used to try to play custom effects with specific duration, intensity, envelope and period. An effect is always played on a specified actuator.
This enum describes all actuator properties.
Constant | Value | Description |
---|---|---|
QFeedbackHapticsInterface::Name | 0 | The actuator name. |
QFeedbackHapticsInterface::State | 1 | The actuator state. |
QFeedbackHapticsInterface::Enabled | 2 | The actuator enabled state. |
This enum describes all effect properties for haptics effects.
Constant | Value | Description |
---|---|---|
QFeedbackHapticsInterface::Duration | 0 | The effect duration (in milliseconds) |
QFeedbackHapticsInterface::Intensity | 1 | The effect intensity |
QFeedbackHapticsInterface::AttackTime | 2 | The effect attack time (in milliseconds) |
QFeedbackHapticsInterface::AttackIntensity | 3 | The effect attack intensity |
QFeedbackHapticsInterface::FadeTime | 4 | The effect fade time (in milliseconds) |
QFeedbackHapticsInterface::FadeIntensity | 5 | The effect fade intensity |
QFeedbackHapticsInterface::Period | 6 | The effect period, this is an optional effect property. |
Returns the value for the property for an actuator.
This function was introduced in Qt Mobility 1.1.
See also setActuatorProperty() and ActuatorProperty.
Return the available actuators provided by this plugin. The ownership of the actuator objects stays with the plugin.
This function was introduced in Qt Mobility 1.1.
Creates an instance of QFeedbackActuator with the identifier id and parent parent. This allows backends to create instances of actuators. It is then up to the each backend to manage the identifiers according to its needs.
This function was introduced in Qt Mobility 1.1.
Get the current state for the effect effect.
This function was introduced in Qt Mobility 1.1.
See also setEffectState().
Returns true if the actuator supports the capability.
This function was introduced in Qt Mobility 1.1.
Returns the priority for the plugin.
This function was introduced in Qt Mobility 1.1.
See also QFeedbackInterface::PluginPriority.
Sets a value for property on the actuator.
This function was introduced in Qt Mobility 1.1.
See also actuatorProperty() and ActuatorProperty.
Sets the state to state for the effect effect. If that fails the backend should report an error by calling reportError and effect will in turn emit an error signal.
This function was introduced in Qt Mobility 1.1.
See also effectState().
Tells the backend that the property has been updated for the supplied effect.
This function was introduced in Qt Mobility 1.1.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.