equal
deleted
inserted
replaced
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 } |