78 virtual TUint32 AddCategoryItemL(TMPXGeneralCategory aCategory, const TDesC& aName, |
78 virtual TUint32 AddCategoryItemL(TMPXGeneralCategory aCategory, const TDesC& aName, |
79 TInt aDrive, CMPXMessageArray* aItemChangedMessages, TBool& aItemExist) = 0; |
79 TInt aDrive, CMPXMessageArray* aItemChangedMessages, TBool& aItemExist) = 0; |
80 #endif // ABSTRACTAUDIOALBUM_INCLUDED |
80 #endif // ABSTRACTAUDIOALBUM_INCLUDED |
81 // for Album and Artist table |
81 // for Album and Artist table |
82 virtual TUint32 AddCategoryItemL(TMPXGeneralCategory aCategory, const TDesC& aName, |
82 virtual TUint32 AddCategoryItemL(TMPXGeneralCategory aCategory, const TDesC& aName, |
83 TUint32 aArtistId, const TDesC& aArt, |
83 const TDesC& aArtistName, const TDesC& aArt, |
84 TInt aDrive, CMPXMessageArray* aItemChangedMessages, TBool& aItemExist) = 0; |
84 TInt aDrive, CMPXMessageArray* aItemChangedMessages, TBool& aItemExist) = 0; |
85 /** |
85 /** |
86 * Called when the ID of a category item changed for a Music record, for example when |
86 * Called when the ID of a category item changed for a Music record, for example when |
87 * the artist name changed for a song. The implementation is supposed to update the |
87 * the artist name changed for a song. The implementation is supposed to update the |
88 * category record and add corresponding item changed messages to the array parameter. |
88 * category record and add corresponding item changed messages to the array parameter. |
526 |
526 |
527 /** |
527 /** |
528 * Get the ID of Artist which belongs to the specified Album |
528 * Get the ID of Artist which belongs to the specified Album |
529 * @param aId, the ID of Album |
529 * @param aId, the ID of Album |
530 */ |
530 */ |
531 TUint32 CMPXDbMusic::ArtistForAlbumL(const TUint32 aId); |
531 TUint32 ArtistForAlbumL(const TUint32 aId); |
532 |
532 |
533 /** |
533 /** |
534 * Get the Albumart of song which belongs to the specified Album |
534 * Get the Albumart of song which belongs to the specified Album |
535 * @param aId, the ID of Album |
535 * @param aId, the ID of Album |
536 * @param aArt, AlbumArt uri |
536 * @param aArt, AlbumArt uri |
686 */ |
686 */ |
687 TBool UpdateCategoryFieldL(TMPXGeneralCategory aCategory, const CMPXMedia& aMedia, |
687 TBool UpdateCategoryFieldL(TMPXGeneralCategory aCategory, const CMPXMedia& aMedia, |
688 const TMPXAttribute& aAttribute, TUint32 aOldId, TInt aDriveId, |
688 const TMPXAttribute& aAttribute, TUint32 aOldId, TInt aDriveId, |
689 CMPXMessageArray* aItemChangedMessages, TUint32& aItemId); |
689 CMPXMessageArray* aItemChangedMessages, TUint32& aItemId); |
690 |
690 |
691 TBool UpdateCategoryFieldL(TMPXGeneralCategory aCategory, const CMPXMedia& aMedia, |
|
692 const TMPXAttribute& aAttribute, TUint32 aOldId, TInt aDriveId, |
|
693 CMPXMessageArray* aItemChangedMessages, TUint32& aItemId, TUint32 aArtistId); |
|
694 /** |
691 /** |
695 * Checks if extra attributes are required. The "standard attribute set includes: |
692 * Checks if extra attributes are required. The "standard attribute set includes: |
696 * EMPXMediaGeneralId, EMPXMediaGeneralType, EMPXMediaGeneralCategory, |
693 * EMPXMediaGeneralId, EMPXMediaGeneralType, EMPXMediaGeneralCategory, |
697 * EMPXMediaGeneralTitle, EMPXMediaGeneralUri, and EMPXMediaGeneralFlags |
694 * EMPXMediaGeneralTitle, EMPXMediaGeneralUri, and EMPXMediaGeneralFlags |
698 * @param aAttrs attributes to be checked |
695 * @param aAttrs attributes to be checked |
705 * @param aMedia media to be tested |
702 * @param aMedia media to be tested |
706 * @return ETrue if the media contains one or more supported attribute; |
703 * @return ETrue if the media contains one or more supported attribute; |
707 * otherwise EFalse. |
704 * otherwise EFalse. |
708 */ |
705 */ |
709 TBool IsSupported(const CMPXMedia& aMedia); |
706 TBool IsSupported(const CMPXMedia& aMedia); |
|
707 |
|
708 /** |
|
709 * Query all songs from the database and add results to the |
|
710 * iAllSongsQueryResult cache array. |
|
711 */ |
|
712 void ExecuteQueryAllSongsL(const TArray<TMPXAttribute>& aAttrs); |
710 |
713 |
711 private: // from MMPXTable |
714 private: // from MMPXTable |
712 |
715 |
713 /** |
716 /** |
714 * @see MMPXTable |
717 * @see MMPXTable |
807 CDesCArrayFlat* iExtensionsDrm; |
810 CDesCArrayFlat* iExtensionsDrm; |
808 MMPXDbMusicObserver& iObserver; |
811 MMPXDbMusicObserver& iObserver; |
809 #ifdef ABSTRACTAUDIOALBUM_INCLUDED |
812 #ifdef ABSTRACTAUDIOALBUM_INCLUDED |
810 TBool iArtNeedUpdated; |
813 TBool iArtNeedUpdated; |
811 #endif // ABSTRACTAUDIOALBUM_INCLUDED |
814 #endif // ABSTRACTAUDIOALBUM_INCLUDED |
|
815 RPointerArray<CMPXMedia> iAllSongsQueryResult; |
812 }; |
816 }; |
813 |
817 |
814 #endif // MPXDBMUSIC_H |
818 #endif // MPXDBMUSIC_H |
815 |
819 |
816 // End of File |
820 // End of File |