37 class MpEngine; |
37 class MpEngine; |
38 class MpMpxCollectionData; |
38 class MpMpxCollectionData; |
39 class MpNowPlayingWidget; |
39 class MpNowPlayingWidget; |
40 class MpSnapshotWidget; |
40 class MpSnapshotWidget; |
41 class MpCollectionPopupHandler; |
41 class MpCollectionPopupHandler; |
42 class QTranslator; |
|
43 |
42 |
44 class MpCollectionView : public MpViewBase |
43 class MpCollectionView : public MpViewBase |
45 { |
44 { |
46 Q_OBJECT |
45 Q_OBJECT |
47 |
46 |
67 |
66 |
68 void openSongs(); |
67 void openSongs(); |
69 void openArtists(); |
68 void openArtists(); |
70 void openAlbums(); |
69 void openAlbums(); |
71 void openPlaylists(); |
70 void openPlaylists(); |
72 void openGenres(); |
|
73 void find(); |
71 void find(); |
74 void openMusicStore(); |
72 void openMusicStore(); |
75 |
73 |
76 void openIndex( int index ); |
74 void openIndex( int index ); |
|
75 void findAlbumSongs( int index ); |
|
76 void playAlbumSongs( int albumIndex, int songIndex ); |
77 |
77 |
78 void back(); |
78 void back(); |
79 void exit(); |
79 void exit(); |
80 |
80 |
81 void startPlaybackView(); |
81 void startPlaybackView(); |
82 void attachNowPlayingBanner( bool active ); |
82 void attachNowPlayingBanner( bool active ); |
83 void containerTransitionComplete( const HbEffect::EffectStatus &status ); |
83 void containerTransitionComplete( const HbEffect::EffectStatus &status ); |
84 |
84 |
85 void shufflePlayAll(); |
85 void shufflePlayAll(); |
86 void refreshLibrary(); |
|
87 void addToPlaylist(); |
86 void addToPlaylist(); |
88 void deleteSongs(); |
87 void deleteSongs(); |
89 void renameCurrentPlaylistContainer(); |
88 void renameCurrentPlaylistContainer(); |
90 |
89 |
91 void playlistSaved( bool success ); |
90 void playlistSaved( bool success ); |
99 |
98 |
100 void handleUsbBlocked( bool blocked ); |
99 void handleUsbBlocked( bool blocked ); |
101 void handleLibraryAboutToUpdate(); |
100 void handleLibraryAboutToUpdate(); |
102 void handleLibraryUpdated(); |
101 void handleLibraryUpdated(); |
103 |
102 |
|
103 void setShuffleAction( bool enabled ); |
|
104 |
104 private: |
105 private: |
105 |
106 |
106 void setMainToolBar(); |
107 void setMainToolBar(); |
107 void setPlaylistToolBar(); |
108 void setPlaylistToolBar(); |
108 |
109 |
109 HbAction *createToolBarAction( QActionGroup *actionsGroup, |
110 HbAction *createToolBarAction( QActionGroup *actionsGroup, |
110 const QString& icon ); |
111 const QString& icon, const QString& objectName ); |
111 |
112 |
112 void updateMenu(); |
113 void updateMenu(); |
113 void updateToolBar(); |
114 void updateToolBar(); |
114 void setSoftkey(); |
115 void setSoftkey(); |
115 |
116 |
116 void setBannerVisibility( bool visible ); |
117 void setBannerVisibility( bool visible ); |
117 int generateShuffleIndex(); |
118 int generateShuffleIndex(); |
118 void startContainerTransition( TCollectionContext contextFrom, TCollectionContext contextTo ); |
119 void startContainerTransition( TCollectionContext contextFrom, TCollectionContext contextTo ); |
119 void cancelOngoingOperation(); |
120 void closeActiveDialog( bool onlyContextMenu = false ); |
120 |
121 |
121 private: |
122 private: |
122 |
123 |
123 TCollectionContext mCollectionContext; |
124 TCollectionContext mCollectionContext; |
124 |
125 |
132 bool mActivated; |
133 bool mActivated; |
133 MpNowPlayingWidget *mNowPlayingBanner; // Own |
134 MpNowPlayingWidget *mNowPlayingBanner; // Own |
134 bool mBannerAttached; |
135 bool mBannerAttached; |
135 |
136 |
136 HbMainWindow *mWindow; // Not own |
137 HbMainWindow *mWindow; // Not own |
137 HbAction *mNavigationQuit; // Not own |
138 HbAction *mSoftKeyQuit; // Not own |
138 HbAction *mNavigationBack; // Not own |
139 HbAction *mSoftKeyBack; // Not own |
|
140 HbAction *mShuffleAction; // Not own |
|
141 bool mShuffleEnabled; |
139 |
142 |
140 MpCollectionDocumentLoader *mDocumentLoader; // Own |
143 MpCollectionDocumentLoader *mDocumentLoader; // Own |
141 HbWidget *mMainContainer; // Own |
144 HbWidget *mMainContainer; // Own |
142 |
145 |
143 HbToolBar *mMainToolBar; |
146 HbToolBar *mMainToolBar; |
144 HbToolBar *mPlaylistToolBar; |
147 HbToolBar *mPlaylistToolBar; |
145 |
148 |
146 MpSnapshotWidget *mSnapshot; |
149 MpSnapshotWidget *mSnapshot; |
147 |
|
148 QTranslator *mMpTranslator; // Own |
|
149 QTranslator *mCommonTranslator; // Own |
|
150 |
150 |
151 bool mActivationWaiting; |
151 bool mActivationWaiting; |
152 MpCollectionPopupHandler *mMpPopupHandler; // Own |
152 MpCollectionPopupHandler *mMpPopupHandler; // Own |
153 |
153 |
154 bool mUsbBlocked; |
154 bool mUsbBlocked; |