252 TUint8 origin = EVcxMyVideosOriginOther; |
252 TUint8 origin = EVcxMyVideosOriginOther; |
253 |
253 |
254 if ( aVideo.IsSupported( KVcxMediaMyVideosOrigin ) ) |
254 if ( aVideo.IsSupported( KVcxMediaMyVideosOrigin ) ) |
255 { |
255 { |
256 origin = aVideo.ValueTObjectL<TUint8>( KVcxMediaMyVideosOrigin ); |
256 origin = aVideo.ValueTObjectL<TUint8>( KVcxMediaMyVideosOrigin ); |
257 #ifdef VIDEO_COLLECTION_PLUGIN_TB92 |
257 #ifndef VCX_DOWNLOADS_CATEGORY |
258 if ( origin != EVcxMyVideosOriginCapturedWithCamera ) |
258 if ( origin != EVcxMyVideosOriginCapturedWithCamera ) |
259 { |
259 { |
260 origin = EVcxMyVideosOriginOther; |
260 origin = EVcxMyVideosOriginOther; |
261 } |
261 } |
262 #else |
262 #else |
540 } |
540 } |
541 return aMedia.ValueTObjectL<TUint32>( KVcxMediaMyVideosUint32Value ); |
541 return aMedia.ValueTObjectL<TUint32>( KVcxMediaMyVideosUint32Value ); |
542 } |
542 } |
543 |
543 |
544 // ---------------------------------------------------------------------------- |
544 // ---------------------------------------------------------------------------- |
|
545 // TVcxMyVideosCollectionUtil::CategoryItemCountL |
|
546 // ---------------------------------------------------------------------------- |
|
547 // |
|
548 TUint32 TVcxMyVideosCollectionUtil::CategoryItemCountL( CMPXMedia& aVideo ) |
|
549 { |
|
550 TUint32 categoryItemCount = 0; |
|
551 |
|
552 if ( aVideo.IsSupported( KVcxMediaMyVideosCategoryItemCount ) ) |
|
553 { |
|
554 categoryItemCount = aVideo.ValueTObjectL<TUint32>( KVcxMediaMyVideosCategoryItemCount ); |
|
555 } |
|
556 return categoryItemCount; |
|
557 } |
|
558 |
|
559 // ---------------------------------------------------------------------------- |
|
560 // TVcxMyVideosCollectionUtil::CategoryNewItemCountL |
|
561 // ---------------------------------------------------------------------------- |
|
562 // |
|
563 TUint32 TVcxMyVideosCollectionUtil::CategoryNewItemCountL( CMPXMedia& aVideo ) |
|
564 { |
|
565 TUint32 categoryNewItemCount = 0; |
|
566 |
|
567 if ( aVideo.IsSupported( KVcxMediaMyVideosCategoryNewItemCount ) ) |
|
568 { |
|
569 categoryNewItemCount = aVideo.ValueTObjectL<TUint32>( KVcxMediaMyVideosCategoryNewItemCount ); |
|
570 } |
|
571 return categoryNewItemCount; |
|
572 } |
|
573 |
|
574 // ---------------------------------------------------------------------------- |
|
575 // TVcxMyVideosCollectionUtil::CategoryNewVideoName |
|
576 // ---------------------------------------------------------------------------- |
|
577 // |
|
578 const TDesC& TVcxMyVideosCollectionUtil::CategoryNewVideoName( const CMPXMedia& aVideo ) |
|
579 { |
|
580 if ( aVideo.IsSupported( KVcxMediaMyVideosCategoryNewItemName ) ) |
|
581 { |
|
582 return aVideo.ValueText( KVcxMediaMyVideosCategoryNewItemName ); |
|
583 } |
|
584 else |
|
585 { |
|
586 return KNullDesC; |
|
587 } |
|
588 } |
|
589 |
|
590 // ---------------------------------------------------------------------------- |
545 // TVcxMyVideosCollectionUtil::GetIdsFromMediaArrayL |
591 // TVcxMyVideosCollectionUtil::GetIdsFromMediaArrayL |
546 // ---------------------------------------------------------------------------- |
592 // ---------------------------------------------------------------------------- |
547 // |
593 // |
548 void TVcxMyVideosCollectionUtil::GetIdsFromMediaArrayL( CMPXMediaArray& aMediaArray, |
594 void TVcxMyVideosCollectionUtil::GetIdsFromMediaArrayL( CMPXMediaArray& aMediaArray, |
549 RArray<TUint32>& aIdArray ) |
595 RArray<TUint32>& aIdArray ) |