diff -r 3de6c4cf6b67 -r 2cbbefa9af78 mpxplugins/serviceplugins/collectionplugins/mpxsqlitedbhgplugin/inc/mpxdbhandler.h --- a/mpxplugins/serviceplugins/collectionplugins/mpxsqlitedbhgplugin/inc/mpxdbhandler.h Wed Sep 01 12:32:02 2010 +0100 +++ b/mpxplugins/serviceplugins/collectionplugins/mpxsqlitedbhgplugin/inc/mpxdbhandler.h Tue Sep 14 21:14:08 2010 +0300 @@ -65,7 +65,6 @@ class CMPXDbHandler : public CBase, public MMPXDbMusicObserver, - public MMPXDbArtistObserver, public MMPXDbAlbumObserver, public MMPXDbPlaylistObserver { @@ -1009,39 +1008,30 @@ private: // From MMPXDbMusicObserver -#ifdef ABSTRACTAUDIOALBUM_INCLUDED /** * @see MMPXDbMusicObserver */ - virtual TUint32 AddCategoryItemL(TMPXGeneralCategory aCategory, - const TDesC& aName, - TInt aDriveId, - CMPXMessageArray* aItemChangedMessages, TBool& aItemExist, - const TDesC& aUri, - const TDesC& aAlbumArtist=KNullDesC); -#else +#ifdef ABSTRACTAUDIOALBUM_INCLUDED + virtual TUint32 AddAbstractAlbumItemL(const TDesC& aName, + TInt aDriveId, CMPXMessageArray* aItemChangedMessages, TBool& aItemExist, + const TDesC& aUri, const TDesC& aAlbumArtist=KNullDesC); +#endif // ABSTRACTAUDIOALBUM_INCLUDED + + virtual TUint32 AddCategoryItemL(TMPXGeneralCategory aCategory, const CMPXMedia& aMedia, + TInt aDrive, CMPXMessageArray* aItemChangedMessages, TBool& aItemExist); + + virtual void UpdateCategoryItemL(TMPXGeneralCategory aCategory, TUint32 aCategoryId, + const CMPXMedia& aMedia, TInt aDrive, CMPXMessageArray* aItemChangedMessages); + + virtual TUint32 GenerateUniqueIdForAlbumL(const CMPXMedia& aMedia); + + virtual TBool IsUnknownAlbumL(const TUint32 aId); /** * @see MMPXDbMusicObserver */ - virtual TUint32 AddCategoryItemL(TMPXGeneralCategory aCategory, - const TDesC& aName, TInt aDriveId, - CMPXMessageArray* aItemChangedMessages, TBool& aItemExist); -#endif // ABSTRACTAUDIOALBUM_INCLUDED - - virtual TUint32 AddCategoryItemL(TMPXGeneralCategory aCategory, const TDesC& aName, - const TDesC& aArtistName, const TDesC& aArt, - TInt aDrive, CMPXMessageArray* aItemChangedMessages, TBool& aItemExist); - - virtual void UpdateCategoryItemL(TMPXGeneralCategory aCategory, TUint32 aCategoryId, - const CMPXMedia& aMedia, TInt aDrive, CMPXMessageArray* aItemChangedMessages); - - /** - * @see MMPXDbMusicObserver - */ - virtual void DeleteSongForCategoryL(TMPXGeneralCategory aCategory, - TUint32 aCategoryId, TInt aDriveId, CMPXMessageArray* aItemChangedMessages, - TBool& aItemExist); + virtual void DeleteSongForCategoryL(TMPXGeneralCategory aCategory, TUint32 aCategoryId, + TInt aDrive, CMPXMessageArray* aItemChangedMessages, TBool& aItemExist, const TDesC& aArt = KNullDesC); /** * @see MMPXDbMusicObserver @@ -1058,41 +1048,35 @@ */ virtual HBufC* HandleGetAlbumNameFromIdL(TUint32 aId); #endif // ABSTRACTAUDIOALBUM_INCLUDED - private: // From MMPXDbArtistObserver - /** - * @see MMPXDbArtistObser - */ - virtual TInt HandleGetAlbumsCountForArtistL(TUint32 aArtistId); + + private: // From MMPXDbAlbumObserver + /** + * Get the Albumart of song which belongs to the specified Album. + * @param aId, The Album ID. + * @param aArt, the AlbumArt uri. + * @returns alternative albumart retrieved in the specified Album. + */ + virtual HBufC* HandleAlbumartForAlbumL(const TUint32 aAlbumId, TPtrC aArt); + + /** + * @see MMPXDbAlbumObserver + */ + virtual void DeleteAlbumForArtistL(TUint32 aCategoryId, + TInt aDrive, CMPXMessageArray* aItemChangedMessages); - private: // From MMPXDbAlbumObserver - /** - * @see MMPXDbAlbumObserver - */ - virtual TBool HandleIsUnknownArtistL(TUint32 aArtistId); - /** - * Get the Artistname of song which belongs to the specified Album. - * @param aId, The Album ID. - * @returns alternative artistname retrieved in the specified Album. - */ - virtual HBufC* HandleArtistForAlbumL(const TUint32 aAlbumId); - - /** - * Get the Albumart of song which belongs to the specified Album. - * @param aId, The Album ID. - * @param aArt, the AlbumArt uri. - * @returns alternative albumart retrieved in the specified Album. - */ - virtual HBufC* HandleAlbumartForAlbumL(const TUint32 aAlbumId, TPtrC aArt); + /** + * @see MMPXDbAlbumObserver + */ + virtual TUint32 AddAlbumArtistL(const TDesC& aName, const TDesC& aArt, TInt aDriveId); private: // From MMPXDbPlaylistObserver - /** - * @see MMPXDbPlaylistObserver - */ + /** + * @see MMPXDbPlaylistObserver + */ virtual TInt HandlePlaylistDurationL(TUint32 aPlaylistId); virtual void HandlePlaylistInfoL(TUint32 aPlaylistId, TInt& aCount, TInt& aDuration); private: - /** * C++ constructor. * @param file session