videocollection/mpxmyvideoscollection/src/vcxmyvideosmdsalbums.cpp
branchRCL_3
changeset 56 839377eedc2b
parent 26 67eb01668b0e
child 57 befca0ec475f
equal deleted inserted replaced
54:315810614048 56:839377eedc2b
   335     CMdELogicCondition& rootCondition = iVideoQuery->Conditions();
   335     CMdELogicCondition& rootCondition = iVideoQuery->Conditions();
   336     CMdERelationCondition& relationCondition = 
   336     CMdERelationCondition& relationCondition = 
   337             rootCondition.AddRelationConditionL( *iContainsRelationDef );
   337             rootCondition.AddRelationConditionL( *iContainsRelationDef );
   338 
   338 
   339     CMdELogicCondition& leftCondition = relationCondition.LeftL();
   339     CMdELogicCondition& leftCondition = relationCondition.LeftL();
   340     CMdELogicCondition& rightCondition = relationCondition.RightL();
       
   341 
   340 
   342     //...left side is an album...
   341     //...left side is an album...
   343     leftCondition.AddObjectConditionL( *iAlbumObjectDef );
   342     leftCondition.AddObjectConditionL( *iAlbumObjectDef );
   344     //...and left id is aAlbumId..
   343     //...and left id is aAlbumId..
   345     leftCondition.AddObjectConditionL( aAlbumId );
   344     leftCondition.AddObjectConditionL( aAlbumId );
   444     // MDS ID
   443     // MDS ID
   445     
   444     
   446     // TITLE (NAME)
   445     // TITLE (NAME)
   447     if ( aAlbum.IsSupported( KMPXMediaGeneralTitle ) )
   446     if ( aAlbum.IsSupported( KMPXMediaGeneralTitle ) )
   448         {
   447         {
       
   448         if ( TVcxMyVideosCollectionUtil::Title( aAlbum ).Length() > KVcxMvcMaxTitleLength )
       
   449             {
       
   450             User::Leave( KErrArgument );
       
   451             }
       
   452         
   449         if ( aObject.Property( *iMdsDb.iTitlePropertyDef, property, 0 ) != KErrNotFound )
   453         if ( aObject.Property( *iMdsDb.iTitlePropertyDef, property, 0 ) != KErrNotFound )
   450             {
   454             {
   451             static_cast<CMdETextProperty*>(property)->SetValueL(
   455             static_cast<CMdETextProperty*>(property)->SetValueL(
   452                     aAlbum.ValueText( KMPXMediaGeneralTitle ) );
   456                     aAlbum.ValueText( KMPXMediaGeneralTitle ) );
   453             }
   457             }