videocollection/mpxmyvideoscollection/src/vcxmyvideosmdsalbums.cpp
branchRCL_3
changeset 23 befca0ec475f
parent 22 839377eedc2b
equal deleted inserted replaced
22:839377eedc2b 23:befca0ec475f
   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();
   340 
   341 
   341     //...left side is an album...
   342     //...left side is an album...
   342     leftCondition.AddObjectConditionL( *iAlbumObjectDef );
   343     leftCondition.AddObjectConditionL( *iAlbumObjectDef );
   343     //...and left id is aAlbumId..
   344     //...and left id is aAlbumId..
   344     leftCondition.AddObjectConditionL( aAlbumId );
   345     leftCondition.AddObjectConditionL( aAlbumId );
   443     // MDS ID
   444     // MDS ID
   444     
   445     
   445     // TITLE (NAME)
   446     // TITLE (NAME)
   446     if ( aAlbum.IsSupported( KMPXMediaGeneralTitle ) )
   447     if ( aAlbum.IsSupported( KMPXMediaGeneralTitle ) )
   447         {
   448         {
   448         if ( TVcxMyVideosCollectionUtil::Title( aAlbum ).Length() > KVcxMvcMaxTitleLength )
       
   449             {
       
   450             User::Leave( KErrArgument );
       
   451             }
       
   452         
       
   453         if ( aObject.Property( *iMdsDb.iTitlePropertyDef, property, 0 ) != KErrNotFound )
   449         if ( aObject.Property( *iMdsDb.iTitlePropertyDef, property, 0 ) != KErrNotFound )
   454             {
   450             {
   455             static_cast<CMdETextProperty*>(property)->SetValueL(
   451             static_cast<CMdETextProperty*>(property)->SetValueL(
   456                     aAlbum.ValueText( KMPXMediaGeneralTitle ) );
   452                     aAlbum.ValueText( KMPXMediaGeneralTitle ) );
   457             }
   453             }