QFeedbackInterface Class

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

Header: #include <QFeedbackInterface>
Inherited By:

QFeedbackHapticsInterface and QFeedbackThemeInterface

Public Types

enum PluginPriority { PluginLowPriority, PluginNormalPriority, PluginHighPriority }

Static Protected Members

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

Detailed Description

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

This interface 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 of the same type (Haptics or Theme) is found. If more than one plugin has the same priority, the first one that has been loaded will be used. However, multiple file effect plugins can be loaded at the same time.

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 advanced technologies.
QFeedbackInterface::PluginHighPriority2The plugin will have higher priority. Use this priority if you want your own plugin to be used.

Member Function Documentation

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