--- a/src/hbfeedback/player/hbabstractfeedback.cpp Mon Apr 19 14:02:13 2010 +0300
+++ b/src/hbfeedback/player/hbabstractfeedback.cpp Mon May 03 12:48:33 2010 +0300
@@ -31,7 +31,7 @@
class HbAbstractFeedbackPrivate
{
public:
- HbAbstractFeedbackPrivate() : cWindow(0) {};
+ HbAbstractFeedbackPrivate() : cWindow(0),cModalities(HbFeedback::All) {};
~HbAbstractFeedbackPrivate() {};
QRect mapWidgetToWindow(const QGraphicsItem* graphicsItem, const QGraphicsView* graphicsView);
QRect mapWidgetToWindow(const QWidget* widget);
@@ -39,6 +39,7 @@
public:
QPointer<QWidget> cWindow;
QRect cRect;
+ HbFeedback::Modalities cModalities;
};
/*!
@@ -135,6 +136,17 @@
}
/*!
+ \fn HbFeedback::Modalities HbAbstractFeedback::modalities() const
+
+ Returns the modalities (eg. tactile, audio) used to produce the feedback.
+*/
+
+HbFeedback::Modalities HbAbstractFeedback::modalities() const
+{
+ return d->cModalities;
+}
+
+/*!
\fn bool HbAbstractFeedback::isLocated() const
Returns true if both the parent window and the feedback area rectange (in relation to the parent window) has been defined. Not all feedback objects have to be located.
@@ -223,6 +235,14 @@
}
/*!
+ Sets the modalities (eg. tactile, audio) used to produce the feedback.
+*/
+void HbAbstractFeedback::setModalities(HbFeedback::Modalities modalities)
+{
+ d->cModalities = modalities;
+}
+
+/*!
Assigns a copy of the feedback \a feedback to this feedback, and returns a
reference to it.
*/