903 * affected items |
903 * affected items |
904 */ |
904 */ |
905 void DoRemoveSongFromPlaylistL(TUint32 aPlaylistId, const TMPXItemId& aSongId, |
905 void DoRemoveSongFromPlaylistL(TUint32 aPlaylistId, const TMPXItemId& aSongId, |
906 TInt aOrdinal, CMPXMessageArray& aItemChangedMessages); |
906 TInt aOrdinal, CMPXMessageArray& aItemChangedMessages); |
907 |
907 |
908 #ifdef ABSTRACTAUDIOALBUM_INCLUDED |
908 |
909 /** |
|
910 * Remove all abstractalbum items with no songs associated, |
|
911 * TN and .alb files also removed. |
|
912 * |
|
913 */ |
|
914 void RemoveAbstractAlbumsWithNoSongL(); |
|
915 |
|
916 /** |
|
917 /* When refresh library, Remove .alb entry from AbstractAlnum table, TN table if .alb files deleted |
|
918 /* from file manager |
|
919 */ |
|
920 void AbstractAlbumCleanUpL(); |
|
921 |
|
922 #endif // ABSTRACTAUDIOALBUM_INCLUDED |
|
923 |
909 |
924 /** |
910 /** |
925 * Deletes all song records marked as deleted. |
911 * Deletes all song records marked as deleted. |
926 */ |
912 */ |
927 void DoCleanupDeletedRecordsL(); |
913 void DoCleanupDeletedRecordsL(); |
1042 const TDesC& aName, TInt aDriveId, |
1028 const TDesC& aName, TInt aDriveId, |
1043 CMPXMessageArray* aItemChangedMessages, TBool& aItemExist); |
1029 CMPXMessageArray* aItemChangedMessages, TBool& aItemExist); |
1044 #endif // ABSTRACTAUDIOALBUM_INCLUDED |
1030 #endif // ABSTRACTAUDIOALBUM_INCLUDED |
1045 |
1031 |
1046 virtual TUint32 AddCategoryItemL(TMPXGeneralCategory aCategory, const TDesC& aName, |
1032 virtual TUint32 AddCategoryItemL(TMPXGeneralCategory aCategory, const TDesC& aName, |
1047 TUint32 aArtist, const TDesC& aArt, |
1033 const TDesC& aArtistName, const TDesC& aArt, |
1048 TInt aDrive, CMPXMessageArray* aItemChangedMessages, TBool& aItemExist); |
1034 TInt aDrive, CMPXMessageArray* aItemChangedMessages, TBool& aItemExist); |
1049 |
1035 |
1050 virtual void UpdateCategoryItemL(TMPXGeneralCategory aCategory, TUint32 aCategoryId, |
1036 virtual void UpdateCategoryItemL(TMPXGeneralCategory aCategory, TUint32 aCategoryId, |
1051 const CMPXMedia& aMedia, TInt aDrive, CMPXMessageArray* aItemChangedMessages); |
1037 const CMPXMedia& aMedia, TInt aDrive, CMPXMessageArray* aItemChangedMessages); |
1052 |
1038 |
1081 private: // From MMPXDbAlbumObserver |
1067 private: // From MMPXDbAlbumObserver |
1082 /** |
1068 /** |
1083 * @see MMPXDbAlbumObserver |
1069 * @see MMPXDbAlbumObserver |
1084 */ |
1070 */ |
1085 virtual TBool HandleIsUnknownArtistL(TUint32 aArtistId); |
1071 virtual TBool HandleIsUnknownArtistL(TUint32 aArtistId); |
1086 virtual TUint32 HandleArtistForAlbumL(const TUint32 aAlbumId); |
1072 /** |
|
1073 * Get the Artistname of song which belongs to the specified Album. |
|
1074 * @param aId, The Album ID. |
|
1075 * @returns alternative artistname retrieved in the specified Album. |
|
1076 */ |
|
1077 virtual HBufC* HandleArtistForAlbumL(const TUint32 aAlbumId); |
1087 |
1078 |
1088 /** |
1079 /** |
1089 * Get the Albumart of song which belongs to the specified Album. |
1080 * Get the Albumart of song which belongs to the specified Album. |
1090 * @param aId, The Album ID. |
1081 * @param aId, The Album ID. |
1091 * @param aArt, the AlbumArt uri. |
1082 * @param aArt, the AlbumArt uri. |