mpserviceplugins/mpxsqlitedbhgplugin/inc/mpxdbhandler.h
changeset 38 b93f525c9244
parent 35 fdb31ab341af
child 51 560ce2306a17
equal deleted inserted replaced
37:eb79a7c355bf 38:b93f525c9244
   911         *        affected items
   911         *        affected items
   912         */
   912         */
   913         void DoRemoveSongFromPlaylistL(TUint32 aPlaylistId, const TMPXItemId& aSongId,
   913         void DoRemoveSongFromPlaylistL(TUint32 aPlaylistId, const TMPXItemId& aSongId,
   914             TInt aOrdinal, CMPXMessageArray& aItemChangedMessages);
   914             TInt aOrdinal, CMPXMessageArray& aItemChangedMessages);
   915 
   915 
   916 #ifdef ABSTRACTAUDIOALBUM_INCLUDED  
   916 
   917         /**
       
   918         * Remove all abstractalbum items with no songs associated,
       
   919         * TN and .alb files also removed.
       
   920         *
       
   921         */
       
   922         void RemoveAbstractAlbumsWithNoSongL();
       
   923         
       
   924           /**
       
   925         /* When refresh library, Remove .alb entry from AbstractAlnum table, TN table if .alb files deleted 
       
   926         /* from file manager 
       
   927         */
       
   928         void AbstractAlbumCleanUpL();
       
   929        
       
   930 #endif // ABSTRACTAUDIOALBUM_INCLUDED
       
   931 
   917 
   932         /**
   918         /**
   933         * Deletes all song records marked as deleted.
   919         * Deletes all song records marked as deleted.
   934         */
   920         */
   935         void DoCleanupDeletedRecordsL();
   921         void DoCleanupDeletedRecordsL();
  1050             const TDesC& aName, TInt aDriveId,
  1036             const TDesC& aName, TInt aDriveId,
  1051             CMPXMessageArray* aItemChangedMessages, TBool& aItemExist);
  1037             CMPXMessageArray* aItemChangedMessages, TBool& aItemExist);
  1052 #endif // ABSTRACTAUDIOALBUM_INCLUDED
  1038 #endif // ABSTRACTAUDIOALBUM_INCLUDED
  1053 
  1039 
  1054        virtual TUint32 AddCategoryItemL(TMPXGeneralCategory aCategory, const TDesC& aName,
  1040        virtual TUint32 AddCategoryItemL(TMPXGeneralCategory aCategory, const TDesC& aName,
  1055             TUint32 aArtist, const TDesC& aArt,
  1041            const TDesC& aArtistName, const TDesC& aArt,
  1056             TInt aDrive, CMPXMessageArray* aItemChangedMessages, TBool& aItemExist);
  1042             TInt aDrive, CMPXMessageArray* aItemChangedMessages, TBool& aItemExist);
  1057 
  1043 
  1058        virtual void UpdateCategoryItemL(TMPXGeneralCategory aCategory, TUint32 aCategoryId,
  1044        virtual void UpdateCategoryItemL(TMPXGeneralCategory aCategory, TUint32 aCategoryId,
  1059             const CMPXMedia& aMedia, TInt aDrive, CMPXMessageArray* aItemChangedMessages);
  1045             const CMPXMedia& aMedia, TInt aDrive, CMPXMessageArray* aItemChangedMessages);
  1060 
  1046 
  1089     private:    // From MMPXDbAlbumObserver
  1075     private:    // From MMPXDbAlbumObserver
  1090     /**
  1076     /**
  1091     * @see MMPXDbAlbumObserver
  1077     * @see MMPXDbAlbumObserver
  1092     */
  1078     */
  1093     virtual TBool HandleIsUnknownArtistL(TUint32 aArtistId);
  1079     virtual TBool HandleIsUnknownArtistL(TUint32 aArtistId);
  1094     virtual TUint32 HandleArtistForAlbumL(const TUint32 aAlbumId);
  1080     /**
       
  1081     * Get the Artistname of song which belongs to the specified Album.     
       
  1082     * @param aId, The Album ID.
       
  1083 	* @returns alternative artistname retrieved in the specified Album.
       
  1084     */
       
  1085     virtual HBufC* HandleArtistForAlbumL(const TUint32 aAlbumId);
  1095         
  1086         
  1096     /**
  1087     /**
  1097     * Get the Albumart of song which belongs to the specified Album.     
  1088     * Get the Albumart of song which belongs to the specified Album.     
  1098     * @param aId, The Album ID.
  1089     * @param aId, The Album ID.
  1099     * @param aArt, the AlbumArt uri.
  1090     * @param aArt, the AlbumArt uri.