videocollection/mpxmyvideoscollection/src/vcxmyvideoscategories.cpp
changeset 36 8aed59de29f9
parent 35 3738fe97f027
child 39 f6d44a0cd476
equal deleted inserted replaced
35:3738fe97f027 36:8aed59de29f9
   449     if ( aAdded )
   449     if ( aAdded )
   450         {
   450         {
   451         MPX_DEBUG1("CVcxMyVideosCategories:: video added");
   451         MPX_DEBUG1("CVcxMyVideosCategories:: video added");
   452         if ( TVcxMyVideosCollectionUtil::FlagsL( aVideo ) & EVcxMyVideosVideoNew )
   452         if ( TVcxMyVideosCollectionUtil::FlagsL( aVideo ) & EVcxMyVideosVideoNew )
   453             {
   453             {
   454             TInt64 newItemsDate( 0 );
   454             TInt64 newItemsDate = TVcxMyVideosCollectionUtil::CreationDateL( aVideo );
   455             if ( aVideo.IsSupported( KMPXMediaGeneralDate ) )
   455             TInt64 prevNewDate  = TVcxMyVideosCollectionUtil::CreationDateL( aCategory );
   456                 {
       
   457                 newItemsDate = aVideo.ValueTObjectL<TInt64>( KMPXMediaGeneralDate );
       
   458                 }
       
   459             TInt64 prevNewDate( 0 );
       
   460             if ( aCategory.IsSupported( KMPXMediaGeneralDate ) )
       
   461                 {
       
   462                 prevNewDate = aCategory.ValueTObjectL<TInt64>( KMPXMediaGeneralDate );
       
   463                 }
       
   464 
   456 
   465             if ( static_cast<TInt64>(newItemsDate) > static_cast<TInt64>(prevNewDate) )
   457             if ( static_cast<TInt64>(newItemsDate) > static_cast<TInt64>(prevNewDate) )
   466                 {                    
   458                 {                    
   467                 MPX_DEBUG1("CVcxMyVideosCategories:: EMPXItemInserted -> changing new video name");
   459                 MPX_DEBUG1("CVcxMyVideosCategories:: EMPXItemInserted -> changing new video name");
   468                 aCategory.SetTextValueL( KVcxMediaMyVideosCategoryNewItemName,
   460                 aCategory.SetTextValueL( KVcxMediaMyVideosCategoryNewItemName,