36 class MpCollectionDataModel; |
36 class MpCollectionDataModel; |
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 QTranslator; |
42 class QTranslator; |
42 class HbPopup; |
|
43 |
43 |
44 class MpCollectionView : public MpViewBase |
44 class MpCollectionView : public MpViewBase |
45 { |
45 { |
46 Q_OBJECT |
46 Q_OBJECT |
47 |
47 |
89 void songsDeleted( bool success ); |
92 void songsDeleted( bool success ); |
90 void playlistsRenamed( bool success ); |
93 void playlistsRenamed( bool success ); |
91 |
94 |
92 void prepareToAddToPlaylist(); |
95 void prepareToAddToPlaylist(); |
93 void handleIsolatedCollectionOpened( MpMpxCollectionData* collectionData ); |
96 void handleIsolatedCollectionOpened( MpMpxCollectionData* collectionData ); |
94 void addToCurrentPlaylist( MpMpxCollectionData* collectionData ); |
|
95 void createNewPlaylist( MpMpxCollectionData* collectionData ); |
|
96 void arrangeSongs(); |
97 void arrangeSongs(); |
97 void openContextMenu( int index, const QPointF &coords ); |
98 void openContextMenu( int index, const QPointF &coords ); |
98 void outstandingPopupClosing(); |
|
99 |
99 |
100 void handleUsbBlocked( bool blocked ); |
100 void handleUsbBlocked( bool blocked ); |
101 void handleLibraryAboutToUpdate(); |
101 void handleLibraryAboutToUpdate(); |
102 void handleLibraryUpdated(); |
102 void handleLibraryUpdated(); |
103 |
103 |
104 private: |
104 private: |
105 |
|
106 void openDefaultViewContextMenu( int index, const QPointF &coords ); |
|
107 void openFetchViewContextMenu( int index, const QPointF &coords ); |
|
108 |
105 |
109 void setMainToolBar(); |
106 void setMainToolBar(); |
110 void setPlaylistToolBar(); |
107 void setPlaylistToolBar(); |
111 |
108 |
112 HbAction *createToolBarAction( QActionGroup *actionsGroup, |
109 HbAction *createToolBarAction( QActionGroup *actionsGroup, |
116 void updateToolBar(); |
113 void updateToolBar(); |
117 void setSoftkey(); |
114 void setSoftkey(); |
118 |
115 |
119 void setBannerVisibility( bool visible ); |
116 void setBannerVisibility( bool visible ); |
120 int generateShuffleIndex(); |
117 int generateShuffleIndex(); |
121 void launchAddToPlaylistDialog( QList<int> &selection ); |
|
122 void startContainerTransition( TCollectionContext contextFrom, TCollectionContext contextTo ); |
118 void startContainerTransition( TCollectionContext contextFrom, TCollectionContext contextTo ); |
123 void requestDelete( QList<int> &selection ); |
119 void cancelOngoingOperation(); |
124 QModelIndexList getModelIndexes( const QString &label, QAbstractItemModel* model, bool &ok ); |
|
125 QString getText(const QString &label,const QString &text, bool &ok); |
|
126 void setOutstandingPopup(HbPopup *popup); |
|
127 bool queryNewPlaylistName(QString &newPlaylistName , const QStringList &playlists ); |
|
128 |
120 |
129 private: |
121 private: |
130 |
122 |
131 TCollectionContext mCollectionContext; |
123 TCollectionContext mCollectionContext; |
132 |
124 |
140 bool mActivated; |
132 bool mActivated; |
141 MpNowPlayingWidget *mNowPlayingBanner; // Own |
133 MpNowPlayingWidget *mNowPlayingBanner; // Own |
142 bool mBannerAttached; |
134 bool mBannerAttached; |
143 |
135 |
144 HbMainWindow *mWindow; // Not own |
136 HbMainWindow *mWindow; // Not own |
145 HbAction *mSoftKeyQuit; // Not own |
137 HbAction *mNavigationQuit; // Not own |
146 HbAction *mSoftKeyBack; // Not own |
138 HbAction *mNavigationBack; // Not own |
147 |
139 |
148 MpCollectionDocumentLoader *mDocumentLoader; // Own |
140 MpCollectionDocumentLoader *mDocumentLoader; // Own |
149 HbWidget *mMainContainer; // Own |
141 HbWidget *mMainContainer; // Own |
150 |
142 |
151 HbToolBar *mMainToolBar; |
143 HbToolBar *mMainToolBar; |