mpviewplugins/mpplaybackviewplugin/tsrc/unittest_mpplaybackview/stub/src/mpengine.cpp
changeset 48 af3740e3753f
child 55 f3930dda3342
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mpviewplugins/mpplaybackviewplugin/tsrc/unittest_mpplaybackview/stub/src/mpengine.cpp	Wed Aug 18 09:46:20 2010 +0300
@@ -0,0 +1,170 @@
+/*
+* 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: Stub for MpEngine
+*
+*/
+
+#include "mpengine.h"
+#include "stub\inc\mpplaybackdata.h"
+#include "mptrace.h"
+
+
+/*!
+  Stub
+  */
+MpEngine::MpEngine()
+{
+    TX_LOG_ARGS("Stub")
+}
+
+/*!
+  Stub
+  */
+MpEngine::~MpEngine()
+{
+    TX_ENTRY_ARGS("Stub")
+}
+
+
+/*!
+  Stub
+  */
+void MpEngine::applyPreset( int preset )
+{
+    mApplyPresetCount++;
+    mActivePreset = preset;
+}
+
+/*!
+  Stub
+  */
+void MpEngine::disableEqualizer()
+{
+    mDisableEquqlizerCount++;
+    mActivePreset = -1;
+}
+
+/*!
+  Stub
+  */
+int MpEngine::activePreset()
+{
+    return mActivePreset;
+}
+
+/*!
+  Stub
+  */
+QStringList MpEngine::presetNames()
+{
+    QStringList presets;
+    presets << "Bass Booster" << "Classic" << "Jazz" << "Pop" << "Rock" << "New Preset";
+    return presets;
+}
+
+
+/*!
+  Stub
+  */
+MpPlaybackData *MpEngine::playbackData()
+{
+    return new MpPlaybackData();
+}
+
+/*!
+  Stub
+  */
+void MpEngine::stop()
+{
+    stopCount++;
+}
+
+/*!
+  Stub
+  */
+void MpEngine::retrieveSongDetails()
+{
+    retrieveSongDetailsCount++;
+}
+
+/*!
+  Stub
+  */
+void MpEngine::setShuffle( bool mode )
+{
+    Q_UNUSED(mode)
+}
+/*!
+  Stub
+  */
+void MpEngine::setRepeat( bool mode )
+{
+    Q_UNUSED(mode)
+}
+
+/*!
+  Stub
+  */
+void MpEngine::startSeekBackward()
+{
+    startSeekBackwardCount++;
+}
+
+/*!
+  Stub
+  */
+void MpEngine::startSeekForward()
+{
+    startSeekForwardCount++;
+}
+
+/*!
+  Stub
+  */
+void MpEngine::stopSeeking()
+{
+    stopSeekingCount++;
+}
+
+/*!
+  Stub
+  */
+void MpEngine::skipBackward()
+{
+    skipBackwardCount++;
+}
+
+/*!
+  Stub
+  */
+void MpEngine::skipForward()
+{
+    skipForwardCount++;
+}
+
+/*!
+  Stub
+  */
+void MpEngine::playPause()
+{
+
+}
+
+/*!
+  Stub
+  */
+void MpEngine::setPosition(int position)
+{
+    Q_UNUSED(position)
+}