mpxplugins/serviceplugins/collectionplugins/mpxsqlitedbhgplugin/inc/mpxdbalbum.h
branchRCL_3
changeset 21 cb96c29156b2
parent 17 70a8526f03f2
child 24 26a1709b9fec
equal deleted inserted replaced
19:a12246c97fcc 21:cb96c29156b2
    28 
    28 
    29 class MMPXDbAlbumObserver
    29 class MMPXDbAlbumObserver
    30     {
    30     {
    31     public:
    31     public:
    32         virtual TInt HandleIsUnknownArtistL(TUint32 aId) = 0;
    32         virtual TInt HandleIsUnknownArtistL(TUint32 aId) = 0;
    33         virtual TUint32 HandleArtistForAlbumL( const TUint32 aId ) = 0;
    33         virtual HBufC* HandleArtistForAlbumL( const TUint32 aId ) = 0;
    34         /**
    34         /**
    35         * HandleAlbumartForAlbumL.
    35         * HandleAlbumartForAlbumL.
    36         * @param aId, The album ID.
    36         * @param aId, The album ID.
    37         * @param aArt, The albumart uri.
    37         * @param aArt, The albumart uri.
    38         * @returns alternative albumart retrieved in the specified Album.
    38         * @returns alternative albumart retrieved in the specified Album.
    84         *        ETrue if a new row is created in the table; otherwise EFalse.
    84         *        ETrue if a new row is created in the table; otherwise EFalse.
    85         * @param aCaseSensitive indicates whether case sensitivity should be taken
    85         * @param aCaseSensitive indicates whether case sensitivity should be taken
    86         *        into consideration when generating the unique row id
    86         *        into consideration when generating the unique row id
    87         * @return The unique id of the row added.
    87         * @return The unique id of the row added.
    88         */
    88         */
    89         TUint32 AddItemL(const TDesC& aName, TUint32 aArtist, const TDesC& aArt, TInt aDriveId, TBool& aNewRecord,
    89         TUint32 AddItemL(const TDesC& aName, const TDesC& aArtistName, const TDesC& aArt, TInt aDriveId, TBool& aNewRecord,
    90             TBool aCaseSensitive = ETrue);
    90             TBool aCaseSensitive = ETrue);
    91 
    91 
    92         /**
    92         /**
    93         * Decrement the number of songs for the item. If the count gets to 0, remove
    93         * Decrement the number of songs for the item. If the count gets to 0, remove
    94         * the item.
    94         * the item.
   161             CDesCArray& aFields, CDesCArray& aValues);
   161             CDesCArray& aFields, CDesCArray& aValues);
   162 
   162 
   163 
   163 
   164         TBool IsUnknownArtistL(TUint32 aId);
   164         TBool IsUnknownArtistL(TUint32 aId);
   165 
   165 
   166         TUint32 ArtistForAlbumL(const TUint32 aId);
   166         /**
       
   167         * Get the ArtistName of song which belongs to the specified Album.
       
   168         * @param aId The ID of the album
       
   169         * @returns alternative artistname retrieved in the specified Album.
       
   170         */
       
   171         HBufC* ArtistForAlbumL(const TUint32 aId);
   167         /**
   172         /**
   168         * Get the Albumart of song which belongs to the specified Album.
   173         * Get the Albumart of song which belongs to the specified Album.
   169         * @param aId The ID of the album
   174         * @param aId The ID of the album
   170         * @param aArt albumart with the song is deleted.
   175         * @param aArt albumart with the song is deleted.
   171         * @returns alternative albumart retrieved in the specified Album.
   176         * @returns alternative albumart retrieved in the specified Album.
   204         * Column indexes in the category tables
   209         * Column indexes in the category tables
   205         */
   210         */
   206         enum TAlbumColumns
   211         enum TAlbumColumns
   207             {
   212             {
   208             EAlbumUniqueId = KMPXTableDefaultIndex,
   213             EAlbumUniqueId = KMPXTableDefaultIndex,
       
   214             EAlbumArtistName,
   209             EAlbumName,
   215             EAlbumName,
   210             EAlbumSongCount,
   216             EAlbumSongCount,      
   211             EAlbumArtist,
       
   212             EAlbumArt,
   217             EAlbumArt,
   213             EAlbumArtistName,
       
   214             EAlbumFieldCount
   218             EAlbumFieldCount
   215             };
   219             };
   216 
   220 
   217     private:    // Data
   221     private:    // Data
   218         MMPXDbAlbumObserver& iObserver;
   222         MMPXDbAlbumObserver& iObserver;