equal
deleted
inserted
replaced
28 |
28 |
29 class MMPXDbAlbumObserver |
29 class MMPXDbAlbumObserver |
30 { |
30 { |
31 public: |
31 public: |
32 virtual TInt HandleIsUnknownArtistL(TUint32 aId) = 0; |
32 virtual TInt HandleIsUnknownArtistL(TUint32 aId) = 0; |
33 virtual TUint32 HandleArtistForAlbumL( const TUint32 aId ) = 0; |
33 virtual HBufC* HandleArtistForAlbumL( const TUint32 aId ) = 0; |
34 /** |
34 /** |
35 * HandleAlbumartForAlbumL. |
35 * HandleAlbumartForAlbumL. |
36 * @param aId, The album ID. |
36 * @param aId, The album ID. |
37 * @param aArt, The albumart uri. |
37 * @param aArt, The albumart uri. |
38 * @returns alternative albumart retrieved in the specified Album. |
38 * @returns alternative albumart retrieved in the specified Album. |
84 * ETrue if a new row is created in the table; otherwise EFalse. |
84 * ETrue if a new row is created in the table; otherwise EFalse. |
85 * @param aCaseSensitive indicates whether case sensitivity should be taken |
85 * @param aCaseSensitive indicates whether case sensitivity should be taken |
86 * into consideration when generating the unique row id |
86 * into consideration when generating the unique row id |
87 * @return The unique id of the row added. |
87 * @return The unique id of the row added. |
88 */ |
88 */ |
89 TUint32 AddItemL(const TDesC& aName, TUint32 aArtist, const TDesC& aArt, TInt aDriveId, TBool& aNewRecord, |
89 TUint32 AddItemL(const TDesC& aName, const TDesC& aArtistName, const TDesC& aArt, TInt aDriveId, TBool& aNewRecord, |
90 TBool aCaseSensitive = ETrue); |
90 TBool aCaseSensitive = ETrue); |
91 |
91 |
92 /** |
92 /** |
93 * Decrement the number of songs for the item. If the count gets to 0, remove |
93 * Decrement the number of songs for the item. If the count gets to 0, remove |
94 * the item. |
94 * the item. |
169 CDesCArray& aFields, CDesCArray& aValues); |
169 CDesCArray& aFields, CDesCArray& aValues); |
170 |
170 |
171 |
171 |
172 TBool IsUnknownArtistL(TUint32 aId); |
172 TBool IsUnknownArtistL(TUint32 aId); |
173 |
173 |
174 TUint32 ArtistForAlbumL(const TUint32 aId); |
174 /** |
|
175 * Get the ArtistName of song which belongs to the specified Album. |
|
176 * @param aId The ID of the album |
|
177 * @returns alternative artistname retrieved in the specified Album. |
|
178 */ |
|
179 HBufC* ArtistForAlbumL(const TUint32 aId); |
175 /** |
180 /** |
176 * Get the Albumart of song which belongs to the specified Album. |
181 * Get the Albumart of song which belongs to the specified Album. |
177 * @param aId The ID of the album |
182 * @param aId The ID of the album |
178 * @param aArt albumart with the song is deleted. |
183 * @param aArt albumart with the song is deleted. |
179 * @returns alternative albumart retrieved in the specified Album. |
184 * @returns alternative albumart retrieved in the specified Album. |
212 * Column indexes in the category tables |
217 * Column indexes in the category tables |
213 */ |
218 */ |
214 enum TAlbumColumns |
219 enum TAlbumColumns |
215 { |
220 { |
216 EAlbumUniqueId = KMPXTableDefaultIndex, |
221 EAlbumUniqueId = KMPXTableDefaultIndex, |
|
222 EAlbumArtistName, |
217 EAlbumName, |
223 EAlbumName, |
218 EAlbumSongCount, |
224 EAlbumSongCount, |
219 EAlbumArtist, |
|
220 EAlbumArt, |
225 EAlbumArt, |
221 EAlbumArtistName, |
|
222 EAlbumFieldCount |
226 EAlbumFieldCount |
223 }; |
227 }; |
224 |
228 |
225 private: // Data |
229 private: // Data |
226 MMPXDbAlbumObserver& iObserver; |
230 MMPXDbAlbumObserver& iObserver; |