349 |
349 |
350 // ---------------------------------------------------------------------------- |
350 // ---------------------------------------------------------------------------- |
351 // CVcxMyVideosAlbums::CalculateAttributesL |
351 // CVcxMyVideosAlbums::CalculateAttributesL |
352 // ---------------------------------------------------------------------------- |
352 // ---------------------------------------------------------------------------- |
353 // |
353 // |
354 void CVcxMyVideosAlbums::CalculateAttributesL() |
354 TBool CVcxMyVideosAlbums::CalculateAttributesL() |
355 { |
355 { |
|
356 TBool eventsAdded = EFalse; |
|
357 TBool modified = EFalse; |
356 TInt count = iAlbums.Count(); |
358 TInt count = iAlbums.Count(); |
357 for ( TInt i = 0; i < count; i++ ) |
359 for ( TInt i = 0; i < count; i++ ) |
358 { |
360 { |
359 iAlbums[i]->CalculateAttributesL(); |
361 modified = iAlbums[i]->CalculateAttributesL(); |
360 } |
362 if ( modified ) |
|
363 { |
|
364 iCollection.iMessageList->AddEventL( |
|
365 TMPXItemId( iAlbums[i]->iMdsId, KVcxMvcMediaTypeAlbum ), |
|
366 EMPXItemModified, 0 ); |
|
367 eventsAdded = ETrue; |
|
368 } |
|
369 } |
|
370 return eventsAdded; |
361 } |
371 } |
362 |
372 |
363 // ---------------------------------------------------------------------------- |
373 // ---------------------------------------------------------------------------- |
364 // CVcxMyVideosAlbums::AddAlbumsFromMdsL |
374 // CVcxMyVideosAlbums::AddAlbumsFromMdsL |
365 // From MDS insert event, no need to fetch content since the album was just |
375 // From MDS insert event, no need to fetch content since the album was just |