217 // iCache.iVideoList is complete |
217 // iCache.iVideoList is complete |
218 if ( aCategoryId == KVcxMvcCategoryIdAll ) |
218 if ( aCategoryId == KVcxMvcCategoryIdAll ) |
219 { |
219 { |
220 MPX_DEBUG1("CVcxMyVideosOpenHandler:: KVcxMvcCategoryIdAll: calling HandleOpen(iCache.iVideoList)"); |
220 MPX_DEBUG1("CVcxMyVideosOpenHandler:: KVcxMvcCategoryIdAll: calling HandleOpen(iCache.iVideoList)"); |
221 iCache.iVideoList->SetCObjectValueL( KMPXMediaGeneralContainerPath, iPath ); |
221 iCache.iVideoList->SetCObjectValueL( KMPXMediaGeneralContainerPath, iPath ); |
|
222 iCache.iVideoList->SetTObjectValueL<TInt>( KVcxMediaMyVideosInt32Value, |
|
223 EVcxMyVideosVideoListComplete ); |
222 iCollection.iObs->HandleOpen( iCache.iVideoList, KErrNone ); |
224 iCollection.iObs->HandleOpen( iCache.iVideoList, KErrNone ); |
223 } |
225 } |
224 else |
226 else |
225 { |
227 { |
226 MPX_DEBUG1("CVcxMyVideosOpenHandler:: other than KVcxMvcCategoryIdAll: creating new category video list"); |
228 MPX_DEBUG1("CVcxMyVideosOpenHandler:: other than KVcxMvcCategoryIdAll: creating new category video list"); |
227 CMPXMedia* videoList = iCache.CreateVideoListByOriginL( origin ); |
229 CMPXMedia* videoList = iCache.CreateVideoListByOriginL( origin ); |
228 MPX_DEBUG1("CVcxMyVideosOpenHandler:: calling HandleOpen(new list)"); |
230 MPX_DEBUG1("CVcxMyVideosOpenHandler:: calling HandleOpen(new list)"); |
229 videoList->SetCObjectValueL( KMPXMediaGeneralContainerPath, iPath ); |
231 videoList->SetCObjectValueL( KMPXMediaGeneralContainerPath, iPath ); |
|
232 iCache.iVideoList->SetTObjectValueL<TInt>( KVcxMediaMyVideosInt32Value, |
|
233 EVcxMyVideosVideoListComplete ); |
230 iCollection.iObs->HandleOpen( videoList, KErrNone ); |
234 iCollection.iObs->HandleOpen( videoList, KErrNone ); |
231 delete videoList; |
235 delete videoList; |
232 } |
236 } |
233 iCollection.iMessageList->AddEventL( KVcxMessageMyVideosListComplete ); |
237 iCollection.iMessageList->AddEventL( KVcxMessageMyVideosListComplete ); |
234 iCollection.iMessageList->SendL(); |
238 iCollection.iMessageList->SendL(); |
401 if ( iCollection.iCache->IsComplete() ) |
405 if ( iCollection.iCache->IsComplete() ) |
402 { |
406 { |
403 //videolist complete |
407 //videolist complete |
404 CMPXMedia* videoList = album->CreateVideoListL(); |
408 CMPXMedia* videoList = album->CreateVideoListL(); |
405 videoList->SetCObjectValueL( KMPXMediaGeneralContainerPath, iPath ); |
409 videoList->SetCObjectValueL( KMPXMediaGeneralContainerPath, iPath ); |
|
410 videoList->SetTObjectValueL<TInt>( KVcxMediaMyVideosInt32Value, |
|
411 EVcxMyVideosVideoListComplete ); |
406 iCollection.iObs->HandleOpen( videoList, KErrNone ); |
412 iCollection.iObs->HandleOpen( videoList, KErrNone ); |
407 delete videoList; |
413 delete videoList; |
408 iCollection.iMessageList->AddEventL( KVcxMessageMyVideosListComplete ); |
414 iCollection.iMessageList->AddEventL( KVcxMessageMyVideosListComplete ); |
409 iCollection.iMessageList->SendL(); |
415 iCollection.iMessageList->SendL(); |
410 } |
416 } |
498 if ( iPendingAlbumOpenId == aAlbumId ) |
504 if ( iPendingAlbumOpenId == aAlbumId ) |
499 { |
505 { |
500 MPX_DEBUG2("CVcxMyVideosOpenHandler:: First videos for album %d arrived, calling HandleOpen()", aAlbumId); |
506 MPX_DEBUG2("CVcxMyVideosOpenHandler:: First videos for album %d arrived, calling HandleOpen()", aAlbumId); |
501 |
507 |
502 iAlbumVideoList->SetCObjectValueL( KMPXMediaGeneralContainerPath, iPath ); |
508 iAlbumVideoList->SetCObjectValueL( KMPXMediaGeneralContainerPath, iPath ); |
|
509 if ( aComplete ) |
|
510 { |
|
511 iAlbumVideoList->SetTObjectValueL<TInt>( KVcxMediaMyVideosInt32Value, |
|
512 EVcxMyVideosVideoListComplete ); |
|
513 } |
503 iCollection.iObs->HandleOpen( iAlbumVideoList, aError ); |
514 iCollection.iObs->HandleOpen( iAlbumVideoList, aError ); |
504 iPendingAlbumOpenId = 0; |
515 iPendingAlbumOpenId = 0; |
505 } |
516 } |
506 |
517 |
507 if ( !aComplete ) |
518 if ( !aComplete ) |