QFeedbackHapticsInterface Class

The QFeedbackHapticsInterface class is the base class for plugins providing custom haptics effects. More...

Header: #include <QFeedbackHapticsInterface>
Inherits: QFeedbackInterface

Public Types

enum ActuatorProperty { Name, State, Enabled }
enum EffectProperty { Duration, Intensity, AttackTime, AttackIntensity, ..., Period }

Public Functions

virtual ~QFeedbackHapticsInterface()
virtual QVariant actuatorProperty(const QFeedbackActuator &, QFeedbackHapticsInterface::ActuatorProperty) = 0
virtual QList<QFeedbackActuator *> actuators() = 0
virtual QFeedbackEffect::State effectState(const QFeedbackHapticsEffect *) = 0
virtual bool isActuatorCapabilitySupported(const QFeedbackActuator &, QFeedbackActuator::Capability) = 0
virtual QFeedbackInterface::PluginPriority pluginPriority() = 0
virtual void setActuatorProperty(const QFeedbackActuator &, QFeedbackHapticsInterface::ActuatorProperty, const QVariant &) = 0
virtual void setEffectState(const QFeedbackHapticsEffect *, QFeedbackEffect::State) = 0
virtual void updateEffectProperty(const QFeedbackHapticsEffect *, QFeedbackHapticsInterface::EffectProperty) = 0

Static Public Members

QFeedbackHapticsInterface *instance()

Protected Functions

QFeedbackActuator *createFeedbackActuator(QObject *parent, int id)

Additional Inherited Members

Detailed Description

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.

Member Type Documentation

enum QFeedbackHapticsInterface::ActuatorProperty

This enum describes all actuator properties.

ConstantValueDescription
QFeedbackHapticsInterface::Name0The actuator name.
QFeedbackHapticsInterface::State1The actuator state.
QFeedbackHapticsInterface::Enabled2The actuator enabled state.

enum QFeedbackHapticsInterface::EffectProperty

This enum describes all effect properties for haptics effects.

ConstantValueDescription
QFeedbackHapticsInterface::Duration0The effect duration (in milliseconds)
QFeedbackHapticsInterface::Intensity1The effect intensity
QFeedbackHapticsInterface::AttackTime2The effect attack time (in milliseconds)
QFeedbackHapticsInterface::AttackIntensity3The effect attack intensity
QFeedbackHapticsInterface::FadeTime4The effect fade time (in milliseconds)
QFeedbackHapticsInterface::FadeIntensity5The effect fade intensity
QFeedbackHapticsInterface::Period6The effect period, this is an optional effect property.

Member Function Documentation

[virtual] QFeedbackHapticsInterface::~QFeedbackHapticsInterface()

Destroys the instance of QFeedbackHapticsInterface. The destructor is virtual.

[pure virtual] QVariant QFeedbackHapticsInterface::actuatorProperty(const QFeedbackActuator &, QFeedbackHapticsInterface::ActuatorProperty)

See also setActuatorProperty().

[pure virtual] QList<QFeedbackActuator *> QFeedbackHapticsInterface::actuators()

[protected] QFeedbackActuator *QFeedbackHapticsInterface::createFeedbackActuator(QObject *parent, int id)

[pure virtual] QFeedbackEffect::State QFeedbackHapticsInterface::effectState(const QFeedbackHapticsEffect *)

See also setEffectState().

[static] QFeedbackHapticsInterface *QFeedbackHapticsInterface::instance()

[pure virtual] bool QFeedbackHapticsInterface::isActuatorCapabilitySupported(const QFeedbackActuator &, QFeedbackActuator::Capability)

[pure virtual] QFeedbackInterface::PluginPriority QFeedbackHapticsInterface::pluginPriority()

[pure virtual] void QFeedbackHapticsInterface::setActuatorProperty(const QFeedbackActuator &, QFeedbackHapticsInterface::ActuatorProperty, const QVariant &)

See also actuatorProperty().

[pure virtual] void QFeedbackHapticsInterface::setEffectState(const QFeedbackHapticsEffect *, QFeedbackEffect::State)

See also effectState().

[pure virtual] void QFeedbackHapticsInterface::updateEffectProperty(const QFeedbackHapticsEffect *, QFeedbackHapticsInterface::EffectProperty)