diff -r a1247965635c -r 70a8526f03f2 mpxplugins/serviceplugins/collectionplugins/mpxsqlitedbhgplugin/inc/mpxdbmusic.h --- a/mpxplugins/serviceplugins/collectionplugins/mpxsqlitedbhgplugin/inc/mpxdbmusic.h Tue Apr 27 16:34:37 2010 +0300 +++ b/mpxplugins/serviceplugins/collectionplugins/mpxsqlitedbhgplugin/inc/mpxdbmusic.h Tue May 11 16:10:56 2010 +0300 @@ -129,7 +129,7 @@ */ virtual HBufC* HandleGetAlbumNameFromIdL( TUint32 aId ) = 0; #endif // ABSTRACTAUDIOALBUM_INCLUDED - }; + }; /** * Responsible for managing the Music table @@ -245,10 +245,11 @@ * @param aComposerId returns the artist ID * @param aAbstractAlbumId returns the AbstractAlbum ID * @param aDriveId returns the song drive + * @param aArt returns the albumart uri * @return song URI. The ownership is transferred. */ HBufC* GetSongInfoL(TUint32 aSongId, TUint32& aArtistId, TUint32& aAlbumId, - TUint32& aGenreId, TUint32& aComposerId, TUint32& aAbstractAlbumId, TInt& aDriveId); + TUint32& aGenreId, TUint32& aComposerId, TUint32& aAbstractAlbumId, TInt& aDriveId, HBufC*& aArt); #else /** * Get the drive and category IDs for a specified song @@ -258,10 +259,11 @@ * @param aGenreId returns the artist ID * @param aComposerId returns the artist ID * @param aDriveId returns the song drive + * @param aArt returns the albumart uri * @return song URI. The ownership is transferred. */ HBufC* GetSongInfoL(TUint32 aSongId, TUint32& aArtistId, TUint32& aAlbumId, - TUint32& aGenreId, TUint32& aComposerId, TInt& aDriveId); + TUint32& aGenreId, TUint32& aComposerId, TInt& aDriveId, HBufC*& aArt); #endif // ABSTRACTAUDIOALBUM_INCLUDED /** * Get the song Id, title, URI, and general flags from the given song Id and/or URI @@ -527,6 +529,15 @@ * @param aId, the ID of Album */ TUint32 CMPXDbMusic::ArtistForAlbumL(const TUint32 aId); + + /** + * Get the Albumart of song which belongs to the specified Album + * @param aId, the ID of Album + * @param aArt, AlbumArt uri + * @returns alternative albumart retrieved in the specified Album. + */ + HBufC* AlbumartForAlbumL(const TUint32 aAlbumId, TPtrC aArt); + /* * Check the integrity of the music basic table