videocollection/mpxmyvideoscollection/inc/vcxmyvideosvideocache.h
branchRCL_3
changeset 18 baf439b22ddd
parent 16 67eb01668b0e
equal deleted inserted replaced
16:67eb01668b0e 18:baf439b22ddd
   293         /**
   293         /**
   294         * Adds video to cache (iVideoList or iPartialVideoList). Ownership moves.
   294         * Adds video to cache (iVideoList or iPartialVideoList). Ownership moves.
   295         *
   295         *
   296         * @param aVideo             Video to add.
   296         * @param aVideo             Video to add.
   297         * @param aSortingOrder      Sorting order.
   297         * @param aSortingOrder      Sorting order.
       
   298         * @param aUpdateCategores   If ETrue, then category and album attributes are updated.
   298         * @return                   KErrNone if added, KErrAlreadyExists if already exists and
   299         * @return                   KErrNone if added, KErrAlreadyExists if already exists and
   299         *                           was not added.
   300         *                           was not added.
   300         */
   301         */
   301         TInt AddL( CMPXMedia* aVideo, TVcxMyVideosSortingOrder aSortingOrder );
   302         TInt AddL( CMPXMedia* aVideo, TVcxMyVideosSortingOrder aSortingOrder,
       
   303                 TBool aUpdateCategories = ETrue );
   302         
   304         
   303         /**
   305         /**
   304         * Adds video to iPartialVideoList. Ownership moves.
   306         * Adds video to iPartialVideoList. Ownership moves.
   305         *
   307         *
   306         * @param aVideo  Video to add.
   308         * @param aVideo  Video to add.
   411         * @param aListFetchingWasCanceled  This is set to EFalse if video list fetching from mds
   413         * @param aListFetchingWasCanceled  This is set to EFalse if video list fetching from mds
   412         *                                  had to be cancelled. EFalse otherwise. 
   414         *                                  had to be cancelled. EFalse otherwise. 
   413         * @param aNonVideoIds              If argument given then Ids which were detected to not be
   415         * @param aNonVideoIds              If argument given then Ids which were detected to not be
   414         *                                  videos are written here. Caller owns the array, ownership
   416         *                                  videos are written here. Caller owns the array, ownership
   415         *                                  does not move.
   417         *                                  does not move.
       
   418         * @param aUpdateCategories         If ETrue, then category/album attributes are updated.
   416         */
   419         */
   417         void AddVideosFromMdsL( RArray<TUint32>& aMdsIds, TBool& aListFetchingWasCanceled,
   420         void AddVideosFromMdsL( RArray<TUint32>& aMdsIds, TBool& aListFetchingWasCanceled,
   418                 RArray<TUint32>* aNonVideoIds = NULL );
   421                 RArray<TUint32>* aNonVideoIds = NULL, TBool aUpdateCategories = ETrue );
   419 
   422 
   420         /**
   423         /**
   421         * Deletes old and creates new iVideoList. After the function call iVideoList exists,
   424         * Deletes old and creates new iVideoList. After the function call iVideoList exists,
   422         * but it might not contain any media items yet, only empty array.
   425         * but it might not contain any media items yet, only empty array.
   423         * Media items are added to the list asynchronoysly in
   426         * Media items are added to the list asynchronoysly in