videocollection/mpxmyvideoscollection/src/vcxmyvideosmdsalbums.cpp
changeset 46 adbe7d5ba2f5
parent 28 c48470be1ba7
child 59 a76e86df7ccd
equal deleted inserted replaced
28:c48470be1ba7 46:adbe7d5ba2f5
   444     // MDS ID
   444     // MDS ID
   445     
   445     
   446     // TITLE (NAME)
   446     // TITLE (NAME)
   447     if ( aAlbum.IsSupported( KMPXMediaGeneralTitle ) )
   447     if ( aAlbum.IsSupported( KMPXMediaGeneralTitle ) )
   448         {
   448         {
       
   449         if ( TVcxMyVideosCollectionUtil::Title( aAlbum ).Length() > KVcxMvcMaxTitleLength )
       
   450             {
       
   451             User::Leave( KErrArgument );
       
   452             }
       
   453         
   449         if ( aObject.Property( *iMdsDb.iTitlePropertyDef, property, 0 ) != KErrNotFound )
   454         if ( aObject.Property( *iMdsDb.iTitlePropertyDef, property, 0 ) != KErrNotFound )
   450             {
   455             {
   451             static_cast<CMdETextProperty*>(property)->SetValueL(
   456             static_cast<CMdETextProperty*>(property)->SetValueL(
   452                     aAlbum.ValueText( KMPXMediaGeneralTitle ) );
   457                     aAlbum.ValueText( KMPXMediaGeneralTitle ) );
   453             }
   458             }