|
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 collection view stub for testing mpcollectioncontainers |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MPCOLLECTIONVIEW_H |
|
19 #define MPCOLLECTIONVIEW_H |
|
20 |
|
21 #include <QObject> |
|
22 |
|
23 #include <hbview.h> |
|
24 #include <hbeffect.h> |
|
25 |
|
26 #include "mpmpxcollectionviewdefs.h" |
|
27 #include "mpviewbase.h" |
|
28 #include <QGraphicsWidget> |
|
29 |
|
30 class QActionGroup; |
|
31 class HbMainWindow; |
|
32 class HbAction; |
|
33 class HbMenu; |
|
34 class HbToolBar; |
|
35 class MpCollectionDocumentLoader; |
|
36 class MpCollectionContainerFactory; |
|
37 class MpCollectionContainer; |
|
38 class MpCollectionDataModel; |
|
39 class MpMpxFrameworkWrapper; |
|
40 class MpMpxCollectionData; |
|
41 class MpNowPlayingWidget; |
|
42 class MpSnapshotWidget; |
|
43 class MpCollectionSongScanner; |
|
44 |
|
45 class MpCollectionView : public QGraphicsWidget |
|
46 { |
|
47 Q_OBJECT |
|
48 |
|
49 public: |
|
50 |
|
51 MpCollectionView(); |
|
52 virtual ~MpCollectionView(); |
|
53 |
|
54 void initializeView(); |
|
55 |
|
56 |
|
57 public slots: |
|
58 |
|
59 void openIndex( int index ); |
|
60 void openContextMenu( int index, const QPointF &coords ); |
|
61 void findAlbumSongs( int index ); |
|
62 void playAlbumSongs( int albumIndex, int songIndex ); |
|
63 |
|
64 public: |
|
65 |
|
66 TCollectionContext mCollectionContext; |
|
67 |
|
68 MpMpxFrameworkWrapper *mMpxWrapper; // Own |
|
69 MpMpxCollectionData *mCollectionData; // Not own |
|
70 |
|
71 MpCollectionContainerFactory *mContainerFactory; // Own |
|
72 MpCollectionContainer *mCollectionContainer; // Not own |
|
73 MpCollectionDataModel *mCollectionDataModel; // Own |
|
74 |
|
75 bool mActivated; |
|
76 MpNowPlayingWidget *mNowPlayingBanner; // Own |
|
77 bool mBannerAttached; |
|
78 bool mEffectOnGoing; |
|
79 |
|
80 HbMainWindow *mWindow; // Not own |
|
81 HbAction *mSoftKeyQuit; // Not own |
|
82 HbAction *mSoftKeyBack; // Not own |
|
83 |
|
84 MpCollectionDocumentLoader *mDocumentLoader; // Own |
|
85 HbWidget *mMainContainer; // Own |
|
86 |
|
87 HbToolBar *mMainToolBar; |
|
88 HbToolBar *mPlaylistToolBar; |
|
89 |
|
90 MpSnapshotWidget *mSnapshot; |
|
91 MpCollectionSongScanner *mSongScanner; // Own |
|
92 bool mScanning; |
|
93 |
|
94 }; |
|
95 |
|
96 #endif // MPCOLLECTIONVIEW_H |
|
97 |