23 #include <mpxcollectionuihelperobserver.h> |
23 #include <mpxcollectionuihelperobserver.h> |
24 |
24 |
25 #include "mpmpxisolatedcollectionhelper.h" //MMpMpxIsolatedCollectionHelperObserver |
25 #include "mpmpxisolatedcollectionhelper.h" //MMpMpxIsolatedCollectionHelperObserver |
26 #include "mpmpxcollectionviewdefs.h" |
26 #include "mpmpxcollectionviewdefs.h" |
27 |
27 |
28 |
28 class QStringList; |
29 class MMPXCollectionUtility; |
29 class MMPXCollectionUtility; |
30 class MMPXCollectionUiHelper; |
30 class MMPXCollectionUiHelper; |
31 class CMPXCollectionOpenUtility; |
31 class CMPXCollectionOpenUtility; |
32 class MMPXPlaybackUtility; |
32 class MMPXPlaybackUtility; |
33 class MpMpxCollectionData; |
33 class MpMpxCollectionData; |
34 class MpMpxCollectionFrameworkWrapper; |
34 class MpMpxCollectionFrameworkWrapper; |
35 class QStringList; |
35 class MpSongData; |
36 |
|
37 |
36 |
38 class MpMpxCollectionFrameworkWrapperPrivate : public MMPXCollectionObserver, |
37 class MpMpxCollectionFrameworkWrapperPrivate : public MMPXCollectionObserver, |
39 public MMPXCHelperObserver, |
38 public MMPXCHelperObserver, |
40 public MMpMpxIsolatedCollectionHelperObserver, |
39 public MMpMpxIsolatedCollectionHelperObserver, |
41 public MMPXCollectionFindObserver |
40 public MMPXCollectionFindObserver |
58 public: |
57 public: |
59 |
58 |
60 explicit MpMpxCollectionFrameworkWrapperPrivate( MpMpxCollectionFrameworkWrapper *wrapper ); |
59 explicit MpMpxCollectionFrameworkWrapperPrivate( MpMpxCollectionFrameworkWrapper *wrapper ); |
61 virtual ~MpMpxCollectionFrameworkWrapperPrivate(); |
60 virtual ~MpMpxCollectionFrameworkWrapperPrivate(); |
62 |
61 |
63 void init( TUid hostUid ); |
62 void init( TUid hostUid, MpSongData *songData ); |
64 void openCollection( TCollectionContext context ); |
63 void openCollection( TCollectionContext context ); |
65 void openCollectionItem( int index ); |
64 void openCollectionItem( int index ); |
66 void reopenCollection(); |
65 void reopenCollection(); |
67 void back(); |
66 void back(); |
68 void findPlaylists( QStringList &playlists ); |
67 void findPlaylists( QStringList &playlists ); |
83 void setShuffleFeatureEnabled( bool enable ); |
82 void setShuffleFeatureEnabled( bool enable ); |
84 void cancel(); |
83 void cancel(); |
85 |
84 |
86 MpMpxCollectionData *collectionData(); |
85 MpMpxCollectionData *collectionData(); |
87 void openShuffleAllSongsPath(); |
86 void openShuffleAllSongsPath(); |
|
87 |
|
88 void retrieveSongDetails( int index ); |
88 |
89 |
89 void savePath( QByteArray &data ); |
90 void savePath( QByteArray &data ); |
90 void restorePath( const QByteArray &data ); |
91 void restorePath( const QByteArray &data ); |
91 |
92 |
92 private: |
93 private: |
131 void DoHandleItemChangedMessageL( const CMPXMessage& aMsg ); |
132 void DoHandleItemChangedMessageL( const CMPXMessage& aMsg ); |
132 |
133 |
133 void PreparePlaylistMediaL( CMPXMedia& aMedia, QList<int> &selection, MpMpxCollectionData *collectionData ); |
134 void PreparePlaylistMediaL( CMPXMedia& aMedia, QList<int> &selection, MpMpxCollectionData *collectionData ); |
134 void createPlaybackUtilityL(); |
135 void createPlaybackUtilityL(); |
135 void DoPlayAllSongsPlaylistL(); |
136 void DoPlayAllSongsPlaylistL(); |
|
137 |
|
138 void DoRetrieveSongDetailsL( int index ); |
|
139 |
136 void DoSavePathL( QByteArray &data ); |
140 void DoSavePathL( QByteArray &data ); |
137 void DoRestorePathL( const QByteArray &data ); |
141 void DoRestorePathL( const QByteArray &data ); |
138 |
142 |
139 private: |
143 private: |
140 |
144 |
148 MpMpxCollectionData *iCollectionData; // Owned |
152 MpMpxCollectionData *iCollectionData; // Owned |
149 MpMpxCollectionData *iIsolatedCollectionData; // Owned |
153 MpMpxCollectionData *iIsolatedCollectionData; // Owned |
150 TBool iFirstIncrementalOpen; |
154 TBool iFirstIncrementalOpen; |
151 CMPXMedia *iUserPlaylists; // Owned |
155 CMPXMedia *iUserPlaylists; // Owned |
152 TInt iNumItemsAdded; |
156 TInt iNumItemsAdded; |
153 TUid mHostUid; |
157 TUid iHostUid; |
154 TBool iRepeatFeature; |
158 TBool iRepeatFeature; |
155 TBool iShuffleFeature; |
159 TBool iShuffleFeature; |
156 TBool iReopen; |
160 TBool iReopen; |
157 TBool iShuffleAll; |
161 TBool iShuffleAll; |
158 TBool iRestoreDefaultPath; |
162 TBool iRestoreDefaultPath; |
159 TInt iRestorePathIndex; |
163 TInt iRestorePathIndex; |
160 TMPXItemId iRestorePathIndexId; |
164 TMPXItemId iRestorePathIndexId; |
|
165 |
|
166 MpSongData *iSongData; // Not owned |
161 |
167 |
162 }; |
168 }; |
163 |
169 |
164 #endif // MPMPXCOLLECTIONFRAMEWORKWRAPPER_P_H |
170 #endif // MPMPXCOLLECTIONFRAMEWORKWRAPPER_P_H |
165 |
171 |