Qt Mobility Reference Documentation

QFeedbackActuator Class Reference

The QFeedbackActuator class is describing actuators for tactile feedback. More...

 #include <QFeedbackActuator>

Public Types

enum Capability { Envelope, Period }
enum State { Busy, Ready, Unknown }

Public Functions

QFeedbackActuator ()
int id () const
bool isCapabilitySupported ( Capability capability ) const
bool isEnabled () const
bool isValid () const
QString name () const
void setEnabled ( bool enabled )
State state () const
bool operator== ( const QFeedbackActuator & other ) const

Static Public Members

QList<QFeedbackActuator> actuators ()

Detailed Description

The QFeedbackActuator class is describing actuators for tactile feedback.

The class gives access to a specified actuator for tactile feedback. It allows the program to know its state and can be used in combination with QFeedbackHapticsEffect.

You can query the actuators available on your system.

See also QFeedbackHapticsEffect.


Member Type Documentation

enum QFeedbackActuator::Capability

ConstantValueDescription
QFeedbackActuator::Envelope0Capability defining the wave type with attack/fade times and levels.
QFeedbackActuator::Period1Capability defining that the device can play periodic effects.

enum QFeedbackActuator::State

ConstantValueDescription
QFeedbackActuator::Busy0The actuator is busy.
QFeedbackActuator::Ready1The actuator is ready to play an effect.
QFeedbackActuator::Unknown2The actuator is in an anknown state.

Member Function Documentation

QFeedbackActuator::QFeedbackActuator ()

Constructs a QFeedbackActuator. It will represent the default actuator on the system.

If there are no actuators attached to the system, isValid() will return false.

See also isValid().

QList<QFeedbackActuator> QFeedbackActuator::actuators () [static]

returns the list of actuators available on the system.

int QFeedbackActuator::id () const

returns the id of the actuator

bool QFeedbackActuator::isCapabilitySupported ( Capability capability ) const

returns if the actuator supports the capability capability.

bool QFeedbackActuator::isEnabled () const

returns true if you can use this actuator to start effects.

bool QFeedbackActuator::isValid () const

returns true if the actuator is valid.

QString QFeedbackActuator::name () const

returns the name of the actuator.

void QFeedbackActuator::setEnabled ( bool enabled )

Allows to enable or disable a actuator to enabled.

See also isEnabled().

State QFeedbackActuator::state () const

returns the state of the actuator.

bool QFeedbackActuator::operator== ( const QFeedbackActuator & other ) const

returns true if the actuators are the same

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.