src/3rdparty/phonon/mmf/audioequalizer.h
branchRCL_3
changeset 4 3b1da2848fc7
parent 0 1918ee327afb
--- a/src/3rdparty/phonon/mmf/audioequalizer.h	Tue Feb 02 00:43:10 2010 +0200
+++ b/src/3rdparty/phonon/mmf/audioequalizer.h	Fri Feb 19 23:40:16 2010 +0200
@@ -19,9 +19,10 @@
 #ifndef PHONON_MMF_AUDIOEQUALIZER_H
 #define PHONON_MMF_AUDIOEQUALIZER_H
 
-#include <AudioEqualizerBase.h>
 #include "abstractaudioeffect.h"
 
+class CAudioEqualizer;
+
 QT_BEGIN_NAMESPACE
 
 namespace Phonon
@@ -40,17 +41,22 @@
 {
     Q_OBJECT
 public:
-    AudioEqualizer(QObject *parent);
+    AudioEqualizer(QObject *parent, const QList<EffectParameter> &parameters);
+
+    // Static interface required by EffectFactory
+    static const char* description();
+    static bool getParameters(CMdaAudioOutputStream *stream,
+        QList<EffectParameter>& parameters);
 
 protected:
-    virtual void parameterChanged(const int id,
-                                  const QVariant &value);
-
-    virtual bool activateOn(CPlayerType *player);
+    // AbstractAudioEffect
+    virtual void createEffect(AudioPlayer::NativePlayer *player);
+    virtual int effectParameterChanged(const EffectParameter &param,
+                                       const QVariant &value);
 
 private:
-    static QList<EffectParameter> createParams();
-    QScopedPointer<CAudioEqualizer> m_bassBoost;
+    CAudioEqualizer *concreteEffect();
+
 };
 }
 }