mpxplugins/serviceplugins/collectionplugins/mpxsqlitedbhgplugin/inc/mpxdbcategory.h
branchRCL_3
changeset 17 c8156a91d13c
parent 0 ff3acec5bc43
equal deleted inserted replaced
15:171e07ac910f 17:c8156a91d13c
    59         *        ETrue if a new row is created in the table; otherwise EFalse.
    59         *        ETrue if a new row is created in the table; otherwise EFalse.
    60         * @param aCaseSensitive indicates whether case sensitivity should be taken
    60         * @param aCaseSensitive indicates whether case sensitivity should be taken
    61         *        into consideration when generating the unique row id
    61         *        into consideration when generating the unique row id
    62         * @return The unique id of the row added.
    62         * @return The unique id of the row added.
    63         */
    63         */
       
    64 #ifdef ABSTRACTAUDIOALBUM_INCLUDED
       
    65         virtual TUint32 AddItemL(const TDesC& aName, TInt aDriveId, TBool& aNewRecord,
       
    66             TBool aCaseSensitive = ETrue);
       
    67 #else 
    64         TUint32 AddItemL(const TDesC& aName, TInt aDriveId, TBool& aNewRecord,
    68         TUint32 AddItemL(const TDesC& aName, TInt aDriveId, TBool& aNewRecord,
    65             TBool aCaseSensitive = ETrue);
    69             TBool aCaseSensitive = ETrue);
       
    70 #endif // ABSTRACTAUDIOALBUM_INCLUDED
    66 
    71 
    67         /**
    72         /**
    68         * Get the name field for a given ID.
    73         * Get the name field for a given ID.
    69         * @param aId identifies the category item
    74         * @param aId identifies the category item
    70         * @return name that matches aId. Ownership is abandoned.
    75         * @return name that matches aId. Ownership is abandoned.
    98         * @param aItemChangedMessages if valid on return contains a deleted message if the
   103         * @param aItemChangedMessages if valid on return contains a deleted message if the
    99         *                  category was deleted
   104         *                  category was deleted
   100         * @param aItemExist Out parameter, ETrue if the category is not deleted after the delete,
   105         * @param aItemExist Out parameter, ETrue if the category is not deleted after the delete,
   101         *        EFalse otherwise
   106         *        EFalse otherwise
   102         */
   107         */
       
   108 #ifdef ABSTRACTAUDIOALBUM_INCLUDED
       
   109         virtual void DecrementSongsForCategoryL(TUint32 aId, TInt aDriveId,
       
   110             CMPXMessageArray* aItemChangedMessages, TBool& aItemExist, TBool aMtpInUse = EFalse);
       
   111 #else
   103         void DecrementSongsForCategoryL(TUint32 aId, TInt aDriveId,
   112         void DecrementSongsForCategoryL(TUint32 aId, TInt aDriveId,
   104             CMPXMessageArray* aItemChangedMessages, TBool& aItemExist);
   113             CMPXMessageArray* aItemChangedMessages, TBool& aItemExist);
   105 
   114 #endif // ABSTRACTAUDIOALBUM_INCLUDED
   106         /**
   115         /**
   107         * Deletes a category.
   116         * Deletes a category.
   108         * @param aId identifies the category
   117         * @param aId identifies the category
   109         * @param aDriveId category drive
   118         * @param aDriveId category drive
   110         */
   119         */
   165         * @param aId identifies the category item
   174         * @param aId identifies the category item
   166         * @return value of the CountSongs field.
   175         * @return value of the CountSongs field.
   167         */
   176         */
   168         TInt GetSongsCountL(TInt aDriveId, TUint32 aId);
   177         TInt GetSongsCountL(TInt aDriveId, TUint32 aId);
   169 
   178 
   170 		/**
   179         /**
   171 	    * Update a category item.
   180         * Update a category item.
   172 	    * @param aId: The ID of the category to update
   181         * @param aId: The ID of the category to update
   173 	    * @param aMedia: The media data
   182         * @param aMedia: The media data
   174 	    * @param aDriveId: The Drive Id the name (category) belongs
   183         * @param aDriveId: The Drive Id the name (category) belongs
   175 	    * @param aItemChangedMessages: if valid on return contains a updated message if the
   184         * @param aItemChangedMessages: if valid on return contains a updated message if the
   176         * category was updated
   185         * category was updated
   177         */
   186         */
   178 		void UpdateItemL(TUint32 aId, const CMPXMedia& aMedia, TInt aDriveId, CMPXMessageArray* aItemChangedMessages);
   187         void UpdateItemL(TUint32 aId, const CMPXMedia& aMedia, TInt aDriveId, CMPXMessageArray* aItemChangedMessages);
   179 
   188 
   180     protected:
   189     protected:
   181 
   190 
   182         /**
   191         /**
   183         * Updates the media with information from the table
   192         * Updates the media with information from the table