videocollection/mpxmyvideoscollection/src/vcxmyvideosmdsdb.cpp
branchRCL_3
changeset 15 8f0df5c82986
parent 14 55fa1ec415c6
child 16 67eb01668b0e
equal deleted inserted replaced
14:55fa1ec415c6 15:8f0df5c82986
  1333             TUint32 flags = static_cast<CMdEUint32Property*>(property)->Value();
  1333             TUint32 flags = static_cast<CMdEUint32Property*>(property)->Value();
  1334             
  1334             
  1335             flags &= ~EVcxMyVideosVideoNew;
  1335             flags &= ~EVcxMyVideosVideoNew;
  1336             
  1336             
  1337             static_cast<CMdEUint32Property*>(property)->SetValueL( flags );
  1337             static_cast<CMdEUint32Property*>(property)->SetValueL( flags );
  1338             }
       
  1339         
       
  1340         // Play pos has really changed -> put the video as last watched
       
  1341         if ( aObject.Property( *iLastPlayPositionPropertyDef, property, 0 ) == KErrNotFound ||
       
  1342              static_cast<CMdEReal32Property*>(property)->Value() != lastPlaybackPos  )
       
  1343             {
       
  1344             if ( !iRepository )
       
  1345                 {
       
  1346                 iRepository = CRepository::NewL( TUid::Uid( KVcxMyVideosCollectionCenrepUid ) );
       
  1347                 }
       
  1348             iRepository->Set( KVcxMyVideosCollectionCenrepKeyLastWatchedMpxId,
       
  1349                                             TInt ( aVideo.ValueTObjectL<TMPXItemId>( KMPXMediaGeneralId ).iId1 ) );
       
  1350             }
  1338             }
  1351         if ( aObject.Property( *iLastPlayPositionPropertyDef, property, 0 ) != KErrNotFound )
  1339         if ( aObject.Property( *iLastPlayPositionPropertyDef, property, 0 ) != KErrNotFound )
  1352             {
  1340             {
  1353             static_cast<CMdEReal32Property*>(property)->SetValueL( lastPlaybackPos );
  1341             static_cast<CMdEReal32Property*>(property)->SetValueL( lastPlaybackPos );
  1354             }
  1342             }