--- a/src/hbfeedback/player/hbfeedbackplayer_stub.cpp Mon May 03 12:48:33 2010 +0300
+++ b/src/hbfeedback/player/hbfeedbackplayer_stub.cpp Fri May 14 16:09:54 2010 +0300
@@ -27,10 +27,8 @@
#include <QList>
#include "hbinstantfeedback.h"
#include "hbcontinuousfeedback.h"
-#include "hbtacticonfeedback.h"
-#include "hbhitareafeedback.h"
-/*!
+/*
Test player is used to display feedback effects in desktop environment.
*/
@@ -42,23 +40,19 @@
~HbFeedbackBasePlayerPrivate();
int getNewContinuousIdentifier();
- int getNewHitAreaIdentifier();
public:
QList<int> continuousIdentifiers;
- QList<int> hitAreaIdentifiers;
int slidingValueContinuous;
- int slidingValueHitArea;
};
-HbFeedbackBasePlayerPrivate::HbFeedbackBasePlayerPrivate() : slidingValueContinuous(0), slidingValueHitArea(0)
+HbFeedbackBasePlayerPrivate::HbFeedbackBasePlayerPrivate() : slidingValueContinuous(0)
{
}
HbFeedbackBasePlayerPrivate::~HbFeedbackBasePlayerPrivate()
{
continuousIdentifiers.clear();
- hitAreaIdentifiers.clear();
}
int HbFeedbackBasePlayerPrivate::getNewContinuousIdentifier()
@@ -67,12 +61,6 @@
return slidingValueContinuous;
}
-int HbFeedbackBasePlayerPrivate::getNewHitAreaIdentifier()
-{
- slidingValueHitArea++;
- return slidingValueHitArea;
-}
-
HbFeedbackBasePlayer::HbFeedbackBasePlayer()
: d(new HbFeedbackBasePlayerPrivate())
{
@@ -88,11 +76,6 @@
Q_UNUSED(feedback)
}
-void HbFeedbackBasePlayer::playTacticonFeedback(const HbTacticonFeedback& feedback)
-{
- Q_UNUSED(feedback)
-}
-
int HbFeedbackBasePlayer::startContinuousFeedback(const HbContinuousFeedback& feedback)
{
Q_UNUSED(feedback)
@@ -119,38 +102,7 @@
return d->continuousIdentifiers.contains(identifier);
}
-int HbFeedbackBasePlayer::insertHitArea(const HbHitAreaFeedback& feedback)
-{
- Q_UNUSED(feedback)
- int identifier = d->getNewHitAreaIdentifier();
- d->hitAreaIdentifiers.append(identifier);
- return identifier;
-}
-
-void HbFeedbackBasePlayer::updateHitArea(int identifier, const HbHitAreaFeedback& feedback)
-{
- Q_UNUSED(identifier)
- Q_UNUSED(feedback)
-}
-
-void HbFeedbackBasePlayer::removeHitArea(int identifier)
-{
- if (d->hitAreaIdentifiers.contains(identifier)) {
- d->hitAreaIdentifiers.removeAll(identifier);
- }
-}
-
-bool HbFeedbackBasePlayer::hitAreaExists(int identifier)
-{
- return d->hitAreaIdentifiers.contains(identifier);
-}
-
void HbFeedbackBasePlayer::cancelContinuousFeedbacks()
{
d->continuousIdentifiers.clear();
}
-
-void HbFeedbackBasePlayer::removeHitAreas()
-{
- d->hitAreaIdentifiers.clear();
-}