summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/phonon/mmf/bassboost.cpp
diff options
context:
space:
mode:
authorGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-01-11 18:08:00 (GMT)
committerGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-01-11 18:08:00 (GMT)
commit24392fb62bb34a80eb7ce13662b0a8744c9ab415 (patch)
tree5cfef2c30f07356e361d8c69948130af364c5b93 /src/3rdparty/phonon/mmf/bassboost.cpp
parent5a8c0ded599263446010dfc1729dcab8b2f62f0d (diff)
downloadQt-24392fb62bb34a80eb7ce13662b0a8744c9ab415.zip
Qt-24392fb62bb34a80eb7ce13662b0a8744c9ab415.tar.gz
Qt-24392fb62bb34a80eb7ce13662b0a8744c9ab415.tar.bz2
Added enable/disable parameter to each effect in Phonon MMF backend
Task-number: QTBUG-4659 Reviewed-by: Espen Riskedal
Diffstat (limited to 'src/3rdparty/phonon/mmf/bassboost.cpp')
-rw-r--r--src/3rdparty/phonon/mmf/bassboost.cpp25
1 files changed, 1 insertions, 24 deletions
diff --git a/src/3rdparty/phonon/mmf/bassboost.cpp b/src/3rdparty/phonon/mmf/bassboost.cpp
index 6996ba9..c7af939 100644
--- a/src/3rdparty/phonon/mmf/bassboost.cpp
+++ b/src/3rdparty/phonon/mmf/bassboost.cpp
@@ -37,14 +37,6 @@ BassBoost::BassBoost(QObject *parent, const QList<EffectParameter> &parameters)
}
-int BassBoost::parameterChanged(const EffectParameter &param,
- const QVariant &value)
-{
- Q_ASSERT_X(param.id() == 0, Q_FUNC_INFO, "Invalid parameter ID");
- setEnabled(value.toBool());
- return 0;
-}
-
//-----------------------------------------------------------------------------
// Static functions
//-----------------------------------------------------------------------------
@@ -57,24 +49,9 @@ const char* BassBoost::description()
bool BassBoost::getParameters(CMdaAudioOutputStream *stream,
QList<EffectParameter> &parameters)
{
- bool supported = false;
-
QScopedPointer<CBassBoost> effect;
TRAPD(err, effect.reset(CBassBoost::NewL(*stream)));
-
- if(KErrNone == err) {
- supported = true;
-
- EffectParameter param(
- /* parameterId */ 0,
- /* name */ tr("Enabled"),
- /* hints */ EffectParameter::ToggledHint,
- /* defaultValue */ QVariant(bool(true)));
-
- parameters.append(param);
- }
-
- return supported;
+ return (KErrNone == err);
}
QT_END_NAMESPACE