mpxplugins/serviceplugins/collectionplugins/mpxsqlitepodcastdbplugin/inc/mpxdbpodcast.h
branchRCL_3
changeset 15 a1247965635c
parent 0 ff3acec5bc43
equal deleted inserted replaced
14:c54d95799c80 15:a1247965635c
   146         /**
   146         /**
   147         * Remove an episode from the Podcast table
   147         * Remove an episode from the Podcast table
   148         * @param aEpisodeId the ID of the episode to be removed
   148         * @param aEpisodeId the ID of the episode to be removed
   149         * @param aUriArray on return contains the URI of the deleted episode
   149         * @param aUriArray on return contains the URI of the deleted episode
   150         * @param aItemChangedMessages on return contains changed messages
   150         * @param aItemChangedMessages on return contains changed messages
       
   151         * @param IsAdd denotes whether DeleteEpisodeL is called as part of 
       
   152         * adding an episode or deleting an episode ,if called as part of adding
       
   153         * pass ETrue else if part of deletion pass EFalse.
   151         * @param aDeleteRecord indicates whether the client has explictly requested
   154         * @param aDeleteRecord indicates whether the client has explictly requested
   152         *                to delete the records from the database. If ETrue, records
   155         *                to delete the records from the database. If ETrue, records
   153         *                associated with the media will be deleted from the database;
   156         *                associated with the media will be deleted from the database;
   154         *                if EFalse, the record will be marked as deleted only.
   157         *                if EFalse, the record will be marked as deleted only.
   155         */
   158         */
   156         void DeleteEpisodeL(TUint32 aEpisodeId, CDesCArray& aUriArray,
   159         void DeleteEpisodeL(TUint32 aEpisodeId, CDesCArray& aUriArray,
   157             CMPXMessageArray& aItemChangedMessages, TBool aDeleteRecord);
   160             CMPXMessageArray& aItemChangedMessages, TBool IsAdd, TBool aDeleteRecord);
   158 
   161 
   159         /**
   162         /**
   160         * Remove episodes matching a category from the Podcast table
   163         * Remove episodes matching a category from the Podcast table
   161         * @param aCategory the category to remove
   164         * @param aCategory the category to remove
   162         * @param aCategoryId ID of the category to remove
   165         * @param aCategoryId ID of the category to remove
   616         /**
   619         /**
   617         * Remove a episode from the podcast table
   620         * Remove a episode from the podcast table
   618         * @param aRecordset episode record to be removed
   621         * @param aRecordset episode record to be removed
   619         * @param aUriArray, on return will be filled with all the paths that were removed
   622         * @param aUriArray, on return will be filled with all the paths that were removed
   620         * @param aItemChangedMessages: change events as result of the episode removal
   623         * @param aItemChangedMessages: change events as result of the episode removal
       
   624         * @param IsAdd denotes whether DoDeleteEpisodeL is called as part of 
       
   625         * adding an episode or deleting an episode.
   621         * @param aDeleteRecord: indicates whether the client has explictly requested
   626         * @param aDeleteRecord: indicates whether the client has explictly requested
   622         *                to delete the records from the database. If ETrue, records
   627         *                to delete the records from the database. If ETrue, records
   623         *                associated with the media will be deleted from the database;
   628         *                associated with the media will be deleted from the database;
   624         *                if EFalse, whether to mark the records as deleted or to delete
   629         *                if EFalse, whether to mark the records as deleted or to delete
   625         *                the records will be based on other deciding factors.
   630         *                the records will be based on other deciding factors.
   626         * @return Error code.
   631         * @return Error code.
   627         */
   632         */
   628         void DoDeleteEpisodeL(RSqlStatement& aRecordset, CDesCArray& aUriArray,
   633         void DoDeleteEpisodeL(RSqlStatement& aRecordset, CDesCArray& aUriArray,
   629             CMPXMessageArray& aItemChangedMessages, TBool aDeleteRecord = EFalse);
   634             CMPXMessageArray& aItemChangedMessages, TBool IsAdd, TBool aDeleteRecord = EFalse);
   630 
   635 
   631         /**
   636         /**
   632         * Constructs the fields and corresponding values to be written into the Podcast
   637         * Constructs the fields and corresponding values to be written into the Podcast
   633         * table for update and insert statements.
   638         * table for update and insert statements.
   634         * @param aEpisodeId identifies the song
   639         * @param aEpisodeId identifies the song