QFeedbackFileEffect Class Reference
The QFeedbackFileEffect class allows to play a haptics feedback from a file. More...
#include <QFeedbackFileEffect>
Inherits QFeedbackEffect.
Properties
- 2 properties inherited from QFeedbackEffect
Public Functions
QFeedbackFileEffect ( QObject * parent = 0 ) | |
~QFeedbackFileEffect () | |
QString | fileName () const |
bool | isLoaded () const |
void | load () |
void | setFileName ( const QString & ) |
void | setLoaded ( bool ) |
void | unload () |
Reimplemented Public Functions
virtual int | duration () const |
virtual State | state () const |
- 2 public functions inherited from QFeedbackEffect
Static Public Members
QStringList | supportedMimeTypes () |
- 2 static public members inherited from QFeedbackEffect
Reimplemented Protected Functions
virtual void | setState ( State ) |
- 1 protected function inherited from QFeedbackEffect
Additional Inherited Members
- 3 public slots inherited from QFeedbackEffect
- 1 signal inherited from QFeedbackEffect
- 1 protected function inherited from QFeedbackEffect
Detailed Description
The QFeedbackFileEffect class allows to play a haptics feedback from a file.
You can load and unload the file at will to free resources or be as fast as possible. It is a subclass of QFeedbackEffect (subclass of QObject), which makes it inherit its properties: duration and state. It can also be started, stopped or paused.
it can report errors through the error signal.