The QFeedbackFileInterface class is the base class for plugins providing support for effects stored in files. More...
#include <QFeedbackFileInterface>
Inherits: QFeedbackInterface.
This class was introduced in Qt Mobility 1.1.
virtual int | effectDuration ( const QFeedbackFileEffect * effect ) = 0 |
virtual QFeedbackEffect::State | effectState ( const QFeedbackFileEffect * effect ) = 0 |
virtual void | setEffectState ( QFeedbackFileEffect * effect, QFeedbackEffect::State state ) = 0 |
virtual void | setLoaded ( QFeedbackFileEffect * effect, bool value ) = 0 |
virtual QStringList | supportedMimeTypes () = 0 |
void | reportLoadFinished ( QFeedbackFileEffect * effect, bool success ) |
The QFeedbackFileInterface class is the base class for plugins providing support for effects stored in files.
They can be of any nature (tactile, audio...). As it is possible to load many different file types using different technologies, all the backend plugins exposing this interface will be loaded at the same time. When loading a file all the backend will be tried in order until one can load the file. It is thus very important that the backends return a load status as soon as possible to not take a too long time to load a file.
Return the duration of effect, in milliseconds. It should return QFeedbackEffect::Infinite in case the duration is infinite, or 0 if undefined or unknown.
This function was introduced in Qt Mobility 1.1.
Returns the current state of the effect effect.
This function was introduced in Qt Mobility 1.1.
See also setEffectState().
This is the function the backend should call when it has finished trying to load the effect effect. As loading a file is asynchronous and multiple plugins are attempted after each other, the backend has to call this function in order for the process to perform smoothly. The success of the operation is indicated by the success parameter.
This function was introduced in Qt Mobility 1.1.
Sets the state of effect to state.
This function was introduced in Qt Mobility 1.1.
See also effectState().
Sets the state of the effect effect to be loaded if value is true, otherwise unloaded. Loading a file is asynchronous. Once the backend knows if it has loaded or can't load the file, it must call the reportLoadFinished function.
This function was introduced in Qt Mobility 1.1.
Returns a list of the MIME types supported by this plugin.
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.