videocollection/mpxmyvideoscollection/src/vcxmyvideoscollectionutil.cpp
changeset 36 8aed59de29f9
parent 35 3738fe97f027
child 39 f6d44a0cd476
equal deleted inserted replaced
35:3738fe97f027 36:8aed59de29f9
   276         }
   276         }
   277     return flags;
   277     return flags;
   278     }
   278     }
   279 
   279 
   280 // ----------------------------------------------------------------------------
   280 // ----------------------------------------------------------------------------
       
   281 // TVcxMyVideosCollectionUtil::CreationDateL
       
   282 // ----------------------------------------------------------------------------
       
   283 //
       
   284 TInt64 TVcxMyVideosCollectionUtil::CreationDateL( CMPXMedia& aVideo )
       
   285     {
       
   286     TInt64 creationDate = 0;
       
   287                             
       
   288     if ( aVideo.IsSupported( KMPXMediaGeneralDate ) )
       
   289         {
       
   290         creationDate = aVideo.ValueTObjectL<TInt64>( KMPXMediaGeneralDate );                
       
   291         }
       
   292     return creationDate;
       
   293     }
       
   294 
       
   295 // ----------------------------------------------------------------------------
   281 // TVcxMyVideosCollectionUtil::DownloadIdL
   296 // TVcxMyVideosCollectionUtil::DownloadIdL
   282 // ----------------------------------------------------------------------------
   297 // ----------------------------------------------------------------------------
   283 //
   298 //
   284 TUint32 TVcxMyVideosCollectionUtil::DownloadIdL( CMPXMedia& aVideo )
   299 TUint32 TVcxMyVideosCollectionUtil::DownloadIdL( CMPXMedia& aVideo )
   285     {
   300     {
   479 
   494 
   480 // ----------------------------------------------------------------------------
   495 // ----------------------------------------------------------------------------
   481 // TVcxMyVideosCollectionUtil::MediaArrayL
   496 // TVcxMyVideosCollectionUtil::MediaArrayL
   482 // ----------------------------------------------------------------------------
   497 // ----------------------------------------------------------------------------
   483 //
   498 //
   484 CMPXMediaArray* TVcxMyVideosCollectionUtil::MediaArrayL( CMPXMedia& aMedia )
   499 CMPXMediaArray* TVcxMyVideosCollectionUtil::MediaArrayL( const CMPXMedia& aMedia )
   485     {
   500     {
   486     if ( !aMedia.IsSupported( KMPXMediaArrayContents ) )
   501     if ( !aMedia.IsSupported( KMPXMediaArrayContents ) )
   487         {
   502         {
   488         User::Leave( KErrArgument );
   503         User::Leave( KErrArgument );
   489         }
   504         }