mpviewplugins/mpplaybackviewplugin/tsrc/unittest_mpplaybackview/stub/inc/mpengine.h
changeset 48 af3740e3753f
child 55 f3930dda3342
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mpviewplugins/mpplaybackviewplugin/tsrc/unittest_mpplaybackview/stub/inc/mpengine.h	Wed Aug 18 09:46:20 2010 +0300
@@ -0,0 +1,92 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Music Player engine stub for mpplaybackview.
+*
+*/
+
+#ifndef MPENGINE_H
+#define MPENGINE_H
+
+#include <QObject>
+#include <QStringList>
+
+
+class MpPlaybackData;
+
+class MpEngine : public QObject
+{
+    Q_OBJECT
+
+  friend class MpEngineFactory;
+
+public:
+    enum EngineMode{
+        StandAlone,
+        Fetch,
+        Embedded,
+        MediaBrowsing
+    };
+    
+private:
+    explicit MpEngine();
+
+public:
+
+    virtual ~MpEngine();
+
+    MpPlaybackData *playbackData();
+    void retrieveSongDetails();
+   
+    // Equalizer related
+    void applyPreset( int preset );
+    void disableEqualizer();
+    int activePreset();
+    QStringList presetNames();
+
+public slots:
+    // Playback related
+    void stop();
+    void setShuffle(bool mode);
+    void setRepeat( bool mode);
+    void startSeekBackward();
+    void startSeekForward();
+    void stopSeeking();
+    void skipBackward();
+    void skipForward();
+    void playPause();
+    void setPosition( int position );
+
+signals:
+
+    // Equalizer related
+    void libraryUpdated();
+
+private:
+    Q_DISABLE_COPY( MpEngine )
+
+public:
+    int mActivePreset;
+    int mApplyPresetCount;
+    int mDisableEquqlizerCount;
+    int retrieveSongDetailsCount;
+    int stopCount;
+    int startSeekBackwardCount;
+    int startSeekForwardCount;
+    int stopSeekingCount;
+    int skipBackwardCount;
+    int skipForwardCount;
+
+};
+
+#endif // MPENGINE_H