landmarks/locationlandmarks/localsearchprov/src/EPos_CPosLmLocalTextSearch.cpp
changeset 39 3efc7a0e8755
parent 0 667063e416a2
child 45 6b6920c56e2f
equal deleted inserted replaced
37:e175e2ba2fb0 39:3efc7a0e8755
    70 
    70 
    71     ValidateCriteriaL( criteria );
    71     ValidateCriteriaL( criteria );
    72 
    72 
    73     iAttributes = criteria.AttributesToSearch();
    73     iAttributes = criteria.AttributesToSearch();
    74     criteria.GetPositionFieldsToSearchL( iFields );
    74     criteria.GetPositionFieldsToSearchL( iFields );
    75     iTextPattern.Append(criteria.Text().AllocL());
    75     iTextPattern.AppendL(criteria.Text().AllocL());
    76 
    76 
    77     // Check if the text should be searched in attributes or in position fields
    77     // Check if the text should be searched in attributes or in position fields
    78     // or in both.
    78     // or in both.
    79     if ( iFields.Count() == 0 && iAttributes == CPosLandmark::ENoAttribute )
    79     if ( iFields.Count() == 0 && iAttributes == CPosLandmark::ENoAttribute )
    80         {
    80         {
   795 	    		aFound = ETrue;
   795 	    		aFound = ETrue;
   796 	    		break;
   796 	    		break;
   797 	    	}
   797 	    	}
   798 	    }
   798 	    }
   799 	    if(!aFound)
   799 	    if(!aFound)
   800 	    	iTextPattern.Append(criteria.Text().AllocL());
   800 	    	iTextPattern.AppendL(criteria.Text().AllocL());
   801 	}
   801 	}
   802 	
   802 	
   803 	
   803 	
   804     // Check if the text should be searched in attributes or in position fields
   804     // Check if the text should be searched in attributes or in position fields
   805     // or in both.
   805     // or in both.