Qt Mobility Reference Documentation

QFeedbackInterface Class Reference

The QFeedbackInterface class is the base class for interfaces providing feedback. More...

 #include <QFeedbackInterface>

Inherited by QFeedbackFileInterface, QFeedbackHapticsInterface, and QFeedbackThemeInterface.


Public Types

enum PluginPriority { PluginLowPriority, PluginNormalPriority, PluginHighPriority }

Static Protected Members

void reportError ( const QFeedbackEffect * effect, QFeedbackEffect::ErrorType error )

Detailed Description

The QFeedbackInterface class is the base class for interfaces providing feedback.

It gives the possibility to report errors from within a backend plugin.


Member Type Documentation

enum QFeedbackInterface::PluginPriority

This enum describes the priority that the plugin should have in case more than one is found. If more than one plugin have the same priority the first one that has been loaded will be used.

That priority is only used for interfaces where only one instance is loaded. This does not apply to the file effects. It applies for the theme and haptics effects.

ConstantValueDescription
QFeedbackInterface::PluginLowPriority0The plugin will have a low priority. This is usually the case for platform specific-APIs.
QFeedbackInterface::PluginNormalPriority1The plugin will have a normal priority. This is usually the case for advances technologies.
QFeedbackInterface::PluginHighPriority2The plugin will have higher priority. Use this priority if you want your own plugin to be used.

Member Function Documentation

void QFeedbackInterface::reportError ( const QFeedbackEffect * effect, QFeedbackEffect::ErrorType error ) [static protected]

Allows to report error whenever necessary from a backend plugin. Errors most likely can happen trying to play an effect.

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.