videocollection/mpxmyvideoscollection/src/vcxmyvideosvideocache.cpp
changeset 38 ff53afa8ad05
parent 37 4eb2df7f7cbe
child 39 f6d44a0cd476
equal deleted inserted replaced
37:4eb2df7f7cbe 38:ff53afa8ad05
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:   Video list cache. Contains cached data from MDS.*
    14 * Description:   Video list cache. Contains cached data from MDS.*
    15 */
    15 */
    16 
    16 
    17 // Version : %version: TB101_57 %
    17 // Version : %version: TB101_58 %
    18 
    18 
    19 
    19 
    20 // INCLUDE FILES
    20 // INCLUDE FILES
    21 #include <mpxlog.h>
    21 #include <mpxlog.h>
    22 #include <mpxmedia.h>
    22 #include <mpxmedia.h>
  1502 #endif
  1502 #endif
  1503     
  1503     
  1504     if ( aUpdateCategories )
  1504     if ( aUpdateCategories )
  1505         {
  1505         {
  1506         iCollection.CategoriesL().VideoAddedL( aVideo );
  1506         iCollection.CategoriesL().VideoAddedL( aVideo );
       
  1507         iCollection.AlbumsL().VideoAddedOrRemovedFromCacheL( aVideo );
  1507         }
  1508         }
  1508 
  1509 
  1509     return KErrNone;
  1510     return KErrNone;
  1510     }
  1511     }
  1511 
  1512 
  1561     
  1562     
  1562     if ( aUpdateCategories &&
  1563     if ( aUpdateCategories &&
  1563             pos != KErrNotFound /* no need to update if item is on iPartialVideoList*/ )
  1564             pos != KErrNotFound /* no need to update if item is on iPartialVideoList*/ )
  1564         {
  1565         {
  1565         iCollection.CategoriesL().VideoRemovedL( *video );
  1566         iCollection.CategoriesL().VideoRemovedL( *video );
       
  1567         iCollection.AlbumsL().VideoAddedOrRemovedFromCacheL( *video );
  1566         }
  1568         }
  1567         
  1569         
  1568     if ( pos != KErrNotFound )
  1570     if ( pos != KErrNotFound )
  1569         {
  1571         {
  1570         CMPXMediaArray* cachedVideoArray = iVideoList->Value<CMPXMediaArray>(
  1572         CMPXMediaArray* cachedVideoArray = iVideoList->Value<CMPXMediaArray>(