mpxplugins/serviceplugins/collectionplugins/mpxsqlitedbhgplugin/inc/mpxdbmusic.h
branchRCL_3
changeset 17 70a8526f03f2
parent 15 a1247965635c
child 21 cb96c29156b2
equal deleted inserted replaced
15:a1247965635c 17:70a8526f03f2
   127         * @param Id to search for
   127         * @param Id to search for
   128         * @return name matching the ID
   128         * @return name matching the ID
   129         */
   129         */
   130         virtual HBufC* HandleGetAlbumNameFromIdL( TUint32 aId ) = 0;
   130         virtual HBufC* HandleGetAlbumNameFromIdL( TUint32 aId ) = 0;
   131 #endif // ABSTRACTAUDIOALBUM_INCLUDED    
   131 #endif // ABSTRACTAUDIOALBUM_INCLUDED    
   132 	};
   132     };
   133 
   133 
   134 /**
   134 /**
   135 * Responsible for managing the Music table
   135 * Responsible for managing the Music table
   136 *
   136 *
   137 * @lib MPXDbPlugin.lib
   137 * @lib MPXDbPlugin.lib
   243         * @param aAlbumId returns the artist ID
   243         * @param aAlbumId returns the artist ID
   244         * @param aGenreId returns the artist ID
   244         * @param aGenreId returns the artist ID
   245         * @param aComposerId returns the artist ID
   245         * @param aComposerId returns the artist ID
   246         * @param aAbstractAlbumId returns the AbstractAlbum ID
   246         * @param aAbstractAlbumId returns the AbstractAlbum ID
   247         * @param aDriveId returns the song drive
   247         * @param aDriveId returns the song drive
       
   248         * @param aArt returns the albumart uri
   248         * @return song URI. The ownership is transferred.
   249         * @return song URI. The ownership is transferred.
   249         */
   250         */
   250         HBufC* GetSongInfoL(TUint32 aSongId, TUint32& aArtistId, TUint32& aAlbumId,
   251         HBufC* GetSongInfoL(TUint32 aSongId, TUint32& aArtistId, TUint32& aAlbumId,
   251             TUint32& aGenreId, TUint32& aComposerId, TUint32& aAbstractAlbumId, TInt& aDriveId);
   252             TUint32& aGenreId, TUint32& aComposerId, TUint32& aAbstractAlbumId, TInt& aDriveId, HBufC*& aArt);
   252 #else 
   253 #else 
   253         /**
   254         /**
   254         * Get the drive and category IDs for a specified song
   255         * Get the drive and category IDs for a specified song
   255         * @param aSongId song to be retrieved
   256         * @param aSongId song to be retrieved
   256         * @param aArtistId returns the artist ID
   257         * @param aArtistId returns the artist ID
   257         * @param aAlbumId returns the artist ID
   258         * @param aAlbumId returns the artist ID
   258         * @param aGenreId returns the artist ID
   259         * @param aGenreId returns the artist ID
   259         * @param aComposerId returns the artist ID
   260         * @param aComposerId returns the artist ID
   260         * @param aDriveId returns the song drive
   261         * @param aDriveId returns the song drive
       
   262         * @param aArt returns the albumart uri
   261         * @return song URI. The ownership is transferred.
   263         * @return song URI. The ownership is transferred.
   262         */
   264         */
   263         HBufC* GetSongInfoL(TUint32 aSongId, TUint32& aArtistId, TUint32& aAlbumId,
   265         HBufC* GetSongInfoL(TUint32 aSongId, TUint32& aArtistId, TUint32& aAlbumId,
   264             TUint32& aGenreId, TUint32& aComposerId, TInt& aDriveId);
   266             TUint32& aGenreId, TUint32& aComposerId, TInt& aDriveId, HBufC*& aArt);
   265 #endif // ABSTRACTAUDIOALBUM_INCLUDED
   267 #endif // ABSTRACTAUDIOALBUM_INCLUDED
   266         /**
   268         /**
   267         * Get the song Id, title, URI, and general flags from the given song Id and/or URI
   269         * Get the song Id, title, URI, and general flags from the given song Id and/or URI
   268         * @param aCriteria search the media by song Id and/or URI
   270         * @param aCriteria search the media by song Id and/or URI
   269         * @param aMedia returns the song details
   271         * @param aMedia returns the song details
   525         /**
   527         /**
   526          * Get the ID of Artist which belongs to the specified Album
   528          * Get the ID of Artist which belongs to the specified Album
   527          * @param aId, the ID of Album
   529          * @param aId, the ID of Album
   528          */
   530          */
   529         TUint32 CMPXDbMusic::ArtistForAlbumL(const TUint32 aId);
   531         TUint32 CMPXDbMusic::ArtistForAlbumL(const TUint32 aId);
       
   532             
       
   533         /**
       
   534         * Get the Albumart of song which belongs to the specified Album
       
   535         * @param aId, the ID of Album
       
   536         * @param aArt, AlbumArt uri
       
   537 		* @returns alternative albumart retrieved in the specified Album.
       
   538         */
       
   539         HBufC* AlbumartForAlbumL(const TUint32 aAlbumId, TPtrC aArt);
       
   540         
   530 
   541 
   531         /*
   542         /*
   532         * Check the integrity of the music basic table
   543         * Check the integrity of the music basic table
   533         */
   544         */
   534         void CheckMusicBasicTableL();
   545         void CheckMusicBasicTableL();