mpxplugins/serviceplugins/collectionplugins/mpxsqlitedbhgplugin/inc/mpxdbmusic.h
branchRCL_3
changeset 21 a1247965635c
parent 18 c54d95799c80
child 26 70a8526f03f2
equal deleted inserted replaced
18:c54d95799c80 21:a1247965635c
   419         void GetSongsForComposerL(TUint aComposerId, const TArray<TMPXAttribute>& aAttrs,
   419         void GetSongsForComposerL(TUint aComposerId, const TArray<TMPXAttribute>& aAttrs,
   420             CMPXMediaArray& aMediaArray);
   420             CMPXMediaArray& aMediaArray);
   421 
   421 
   422 
   422 
   423 #ifdef ABSTRACTAUDIOALBUM_INCLUDED
   423 #ifdef ABSTRACTAUDIOALBUM_INCLUDED
   424 	    /**
   424         /**
   425         * Returns all songs for a given abstractalbum.
   425         * Returns all songs for a given abstractalbum.
   426         * @param aDrive drive ID AbstractAlbum stored
       
   427         * @param aAbstractAlbumId abstractalbum to get the songs for
   426         * @param aAbstractAlbumId abstractalbum to get the songs for
   428         * @param aAttrs attributes to be retrieved
   427         * @param aAttrs attributes to be retrieved
   429         * @param aMediaArray returns the song attributes.
   428         * @param aMediaArray returns the song attributes.
   430         */
   429         */
   431         void GetAllSongsForAbstractAlbumL(TInt aDrive, TInt aAbstractAlbumId,
   430         void GetAllSongsForAbstractAlbumL(TUint aAbstractAlbumId,
   432             const TArray<TMPXAttribute>& aAttrs, CMPXMediaArray& aMediaArray);
   431             const TArray<TMPXAttribute>& aAttrs, CMPXMediaArray& aMediaArray);
   433 #endif // ABSTRACTAUDIOALBUM_INCLUDED
   432 #endif // ABSTRACTAUDIOALBUM_INCLUDED
   434         /**
   433         /**
   435         * Returns the duration of all songs.
   434         * Returns the duration of all songs.
   436         * @return the duration value
   435         * @return the duration value
   677         TBool UpdateCategoryFieldL(TMPXGeneralCategory aCategory, const CMPXMedia& aMedia,
   676         TBool UpdateCategoryFieldL(TMPXGeneralCategory aCategory, const CMPXMedia& aMedia,
   678             const TMPXAttribute& aAttribute, TUint32 aOldId, TInt aDriveId,
   677             const TMPXAttribute& aAttribute, TUint32 aOldId, TInt aDriveId,
   679             CMPXMessageArray* aItemChangedMessages, TUint32& aItemId);
   678             CMPXMessageArray* aItemChangedMessages, TUint32& aItemId);
   680 
   679 
   681         TBool UpdateCategoryFieldL(TMPXGeneralCategory aCategory, const CMPXMedia& aMedia,
   680         TBool UpdateCategoryFieldL(TMPXGeneralCategory aCategory, const CMPXMedia& aMedia,
   682         	const TMPXAttribute& aAttribute, TUint32 aOldId, TInt aDriveId,
   681           const TMPXAttribute& aAttribute, TUint32 aOldId, TInt aDriveId,
   683          	CMPXMessageArray* aItemChangedMessages, TUint32& aItemId, TUint32 aArtistId);
   682           CMPXMessageArray* aItemChangedMessages, TUint32& aItemId, TUint32 aArtistId);
   684         /**
   683         /**
   685         * Checks if extra attributes are required. The "standard attribute set includes:
   684         * Checks if extra attributes are required. The "standard attribute set includes:
   686         * EMPXMediaGeneralId, EMPXMediaGeneralType, EMPXMediaGeneralCategory,
   685         * EMPXMediaGeneralId, EMPXMediaGeneralType, EMPXMediaGeneralCategory,
   687         * EMPXMediaGeneralTitle, EMPXMediaGeneralUri, and EMPXMediaGeneralFlags
   686         * EMPXMediaGeneralTitle, EMPXMediaGeneralUri, and EMPXMediaGeneralFlags
   688         * @param aAttrs attributes to be checked
   687         * @param aAttrs attributes to be checked
   694         * Test whether the given media contains any supported attribute
   693         * Test whether the given media contains any supported attribute
   695         * @param aMedia media to be tested
   694         * @param aMedia media to be tested
   696         * @return ETrue if the media contains one or more supported attribute;
   695         * @return ETrue if the media contains one or more supported attribute;
   697         *  otherwise EFalse.
   696         *  otherwise EFalse.
   698         */
   697         */
   699 		TBool IsSupported(const CMPXMedia& aMedia);
   698         TBool IsSupported(const CMPXMedia& aMedia);
   700 
   699 
   701     private:    // from MMPXTable
   700     private:    // from MMPXTable
   702 
   701 
   703         /**
   702         /**
   704         * @see MMPXTable
   703         * @see MMPXTable
   732 
   731 
   733         /**
   732         /**
   734         * Column indexes in the music table
   733         * Column indexes in the music table
   735         */
   734         */
   736         enum TMusicColumns
   735         enum TMusicColumns
   737         	{
   736             {
   738         	EMusicUniqueId = KMPXTableDefaultIndex,
   737             EMusicUniqueId = KMPXTableDefaultIndex,
   739             EMusicDbFlag,
   738             EMusicDbFlag,
   740             EMusicVolumeId,
   739             EMusicVolumeId,
   741             EMusicTitle,
   740             EMusicTitle,
   742             EMusicArtist,
   741             EMusicArtist,
   743             EMusicArt,
   742             EMusicArt,