|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Music Player Playback view. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MPPLAYBACKVIEW_H |
|
19 #define MPPLAYBACKVIEW_H |
|
20 |
|
21 #include "mpviewbase.h" |
|
22 |
|
23 class HbAction; |
|
24 class HbIcon; |
|
25 class HbMainWindow; |
|
26 class MpMpxPbFrameworkWrapper; |
|
27 class MpPlaybackData; |
|
28 class MpPlaybackWidget; |
|
29 |
|
30 |
|
31 class MpPlaybackView : public MpViewBase |
|
32 { |
|
33 Q_OBJECT |
|
34 |
|
35 public: |
|
36 |
|
37 explicit MpPlaybackView(); |
|
38 virtual ~MpPlaybackView(); |
|
39 |
|
40 void initializeView(); |
|
41 void activateView(); |
|
42 void deactivateView(); |
|
43 |
|
44 signals: |
|
45 |
|
46 void command( int aCommand ); |
|
47 |
|
48 public slots: |
|
49 |
|
50 void startCollectionView(); |
|
51 void back(); |
|
52 void exit(); |
|
53 |
|
54 void playbackStateChanged(); |
|
55 |
|
56 void toggleShuffle(); |
|
57 void shuffleChanged(bool shuffle); |
|
58 void toggleRepeat(); |
|
59 void repeatChanged(bool repeat); |
|
60 |
|
61 void handleSongSelected(); |
|
62 |
|
63 private: |
|
64 |
|
65 void setupMenu(); |
|
66 void setupToolbar(); |
|
67 |
|
68 private: |
|
69 |
|
70 MpMpxPbFrameworkWrapper *mFrameworkWrapper; // Own |
|
71 MpPlaybackData *mPlaybackData; // Not own |
|
72 MpPlaybackWidget *mPlaybackWidget; // Not own |
|
73 |
|
74 HbMainWindow *mWindow; // Not own |
|
75 HbAction *mSoftKeyBack; // Own |
|
76 bool mActivated; |
|
77 |
|
78 HbIcon *mPlayIcon; // Own |
|
79 HbIcon *mPauseIcon; // Own |
|
80 HbIcon *mShuffleOnIcon; // Own |
|
81 HbIcon *mShuffleOffIcon; // Own |
|
82 |
|
83 HbAction *mPlayPauseAction; // Not own |
|
84 HbAction *mRepeatAction; // Not own |
|
85 HbAction *mShuffleAction; // Not own |
|
86 |
|
87 bool mShuffle; |
|
88 bool mRepeat; |
|
89 |
|
90 Q_DISABLE_COPY(MpPlaybackView) |
|
91 }; |
|
92 |
|
93 #endif // MPPLAYBACKVIEW_H |