videocollection/mpxmyvideoscollection/src/vcxmyvideoscategories.cpp
changeset 39 f6d44a0cd476
parent 36 8aed59de29f9
child 40 13331705e488
equal deleted inserted replaced
38:ff53afa8ad05 39:f6d44a0cd476
   200         {
   200         {
   201         TUint8 origin = EVcxMyVideosOriginOther;
   201         TUint8 origin = EVcxMyVideosOriginOther;
   202         
   202         
   203         media = videoListArray->AtL( i );
   203         media = videoListArray->AtL( i );
   204         
   204         
   205         if ( media->IsSupported( KVcxMediaMyVideosOrigin ) )
   205         origin = TVcxMyVideosCollectionUtil::OriginL( *media );
   206             {
   206                 
   207             origin = media->ValueTObjectL<TUint8>( KVcxMediaMyVideosOrigin );                
       
   208             }
       
   209         
       
   210         TBool newVideo = EFalse;
   207         TBool newVideo = EFalse;
   211         TUint32 flags  = 0;
   208         TUint32 flags  = 0;
   212         
   209         
   213         if ( media->IsSupported( KMPXMediaGeneralFlags ) )
   210         if ( media->IsSupported( KMPXMediaGeneralFlags ) )
   214             {
   211             {
   547     {
   544     {
   548     switch ( aOrigin )
   545     switch ( aOrigin )
   549         {
   546         {
   550         case -1:
   547         case -1:
   551             return KVcxMyVideosAllVideosCategoryIndex;
   548             return KVcxMyVideosAllVideosCategoryIndex;
   552             
   549                         
   553         case EVcxMyVideosOriginDownloaded:
       
   554             return KVcxMyVideosDownloadsCategoryIndex;
       
   555             
       
   556         case EVcxMyVideosOriginCapturedWithCamera:
   550         case EVcxMyVideosOriginCapturedWithCamera:
   557             return KVcxMyVideosCapturedCategoryIndex;
   551             return KVcxMyVideosCapturedCategoryIndex;
   558                             
   552                             
       
   553         case EVcxMyVideosOriginDownloaded:
       
   554 #ifndef VIDEO_COLLECTION_PLUGIN_TB92
       
   555             return KVcxMyVideosDownloadsCategoryIndex;
       
   556 #endif
   559         case EVcxMyVideosOriginTvRecording:
   557         case EVcxMyVideosOriginTvRecording:
   560             return KVcxMyVideosTvRecordingsCategoryIndex;
       
   561 
       
   562         case EVcxMyVideosOriginSideLoaded:                
   558         case EVcxMyVideosOriginSideLoaded:                
   563         case EVcxMyVideosOriginOther:
   559         case EVcxMyVideosOriginOther:
   564         default:
   560         default:
   565             return KVcxMyVideosOtherCategoryIndex;
   561             return KVcxMyVideosOtherCategoryIndex;
   566         }
   562         }