mpviewplugins/mpplaybackviewplugin/inc/mpplaybackview.h
changeset 19 4e84c994a771
child 20 82baf59ce8dd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mpviewplugins/mpplaybackviewplugin/inc/mpplaybackview.h	Fri Mar 19 09:28:13 2010 +0200
@@ -0,0 +1,93 @@
+/*
+* 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 Playback view.
+*
+*/
+
+#ifndef MPPLAYBACKVIEW_H
+#define MPPLAYBACKVIEW_H
+
+#include "mpviewbase.h"
+
+class HbAction;
+class HbIcon;
+class HbMainWindow;
+class MpMpxPbFrameworkWrapper;
+class MpPlaybackData;
+class MpPlaybackWidget;
+
+
+class MpPlaybackView : public MpViewBase
+{
+    Q_OBJECT
+
+public:
+
+    explicit MpPlaybackView();
+    virtual ~MpPlaybackView();
+
+    void initializeView();
+    void activateView();
+    void deactivateView();
+
+signals:
+
+    void command( int aCommand );
+
+public slots:
+
+    void startCollectionView();
+    void back();
+    void exit();
+
+    void playbackStateChanged();
+
+    void toggleShuffle();
+    void shuffleChanged(bool shuffle);
+    void toggleRepeat();
+    void repeatChanged(bool repeat);
+
+    void handleSongSelected();
+
+private:
+
+    void setupMenu();
+    void setupToolbar();
+
+private:
+
+    MpMpxPbFrameworkWrapper *mFrameworkWrapper; // Own
+    MpPlaybackData          *mPlaybackData;     // Not own
+    MpPlaybackWidget        *mPlaybackWidget;   // Not own
+
+    HbMainWindow            *mWindow;           // Not own
+    HbAction                *mSoftKeyBack;      // Own
+    bool                    mActivated;
+
+    HbIcon                  *mPlayIcon;         // Own
+    HbIcon                  *mPauseIcon;        // Own
+    HbIcon                  *mShuffleOnIcon;    // Own
+    HbIcon                  *mShuffleOffIcon;   // Own
+
+    HbAction                *mPlayPauseAction;  // Not own
+    HbAction                *mRepeatAction;     // Not own
+    HbAction                *mShuffleAction;    // Not own
+
+    bool                    mShuffle;
+    bool                    mRepeat;
+
+    Q_DISABLE_COPY(MpPlaybackView)
+};
+
+#endif  // MPPLAYBACKVIEW_H