diff -r 67eb01668b0e -r baf439b22ddd videocollection/mpxmyvideoscollection/src/vcxmyvideoscollectionutil.cpp --- a/videocollection/mpxmyvideoscollection/src/vcxmyvideoscollectionutil.cpp Wed Jun 09 09:44:23 2010 +0300 +++ b/videocollection/mpxmyvideoscollection/src/vcxmyvideoscollectionutil.cpp Mon Jun 21 15:43:03 2010 +0300 @@ -254,7 +254,7 @@ if ( aVideo.IsSupported( KVcxMediaMyVideosOrigin ) ) { origin = aVideo.ValueTObjectL( KVcxMediaMyVideosOrigin ); -#ifdef VIDEO_COLLECTION_PLUGIN_TB92 +#ifndef VCX_DOWNLOADS_CATEGORY if ( origin != EVcxMyVideosOriginCapturedWithCamera ) { origin = EVcxMyVideosOriginOther; @@ -542,6 +542,52 @@ } // ---------------------------------------------------------------------------- +// TVcxMyVideosCollectionUtil::CategoryItemCountL +// ---------------------------------------------------------------------------- +// +TUint32 TVcxMyVideosCollectionUtil::CategoryItemCountL( CMPXMedia& aVideo ) + { + TUint32 categoryItemCount = 0; + + if ( aVideo.IsSupported( KVcxMediaMyVideosCategoryItemCount ) ) + { + categoryItemCount = aVideo.ValueTObjectL( KVcxMediaMyVideosCategoryItemCount ); + } + return categoryItemCount; + } + +// ---------------------------------------------------------------------------- +// TVcxMyVideosCollectionUtil::CategoryNewItemCountL +// ---------------------------------------------------------------------------- +// +TUint32 TVcxMyVideosCollectionUtil::CategoryNewItemCountL( CMPXMedia& aVideo ) + { + TUint32 categoryNewItemCount = 0; + + if ( aVideo.IsSupported( KVcxMediaMyVideosCategoryNewItemCount ) ) + { + categoryNewItemCount = aVideo.ValueTObjectL( KVcxMediaMyVideosCategoryNewItemCount ); + } + return categoryNewItemCount; + } + +// ---------------------------------------------------------------------------- +// TVcxMyVideosCollectionUtil::CategoryNewVideoName +// ---------------------------------------------------------------------------- +// +const TDesC& TVcxMyVideosCollectionUtil::CategoryNewVideoName( const CMPXMedia& aVideo ) + { + if ( aVideo.IsSupported( KVcxMediaMyVideosCategoryNewItemName ) ) + { + return aVideo.ValueText( KVcxMediaMyVideosCategoryNewItemName ); + } + else + { + return KNullDesC; + } + } + +// ---------------------------------------------------------------------------- // TVcxMyVideosCollectionUtil::GetIdsFromMediaArrayL // ---------------------------------------------------------------------------- //