phonebookengines/VirtualPhonebook/VPbkCntModel/src/CFilteredContactView.cpp
branchRCL_3
changeset 18 d4f567ce2e7c
parent 17 2666d9724c76
equal deleted inserted replaced
17:2666d9724c76 18:d4f567ce2e7c
   143             const TInt maxMatchPriority =
   143             const TInt maxMatchPriority =
   144                 aFilterType->VersitProperties().Count() - 1;
   144                 aFilterType->VersitProperties().Count() - 1;
   145             for ( TInt matchPriority = 0;
   145             for ( TInt matchPriority = 0;
   146                  matchPriority <= maxMatchPriority; ++matchPriority )
   146                  matchPriority <= maxMatchPriority; ++matchPriority )
   147                 {
   147                 {
   148                 TBool versitIsMatched = matchingProperty->Matches(
   148                 if ( matchingProperty->Matches(
   149                        aFilterType->VersitProperties()[matchPriority]);
   149                     aFilterType->VersitProperties()[matchPriority]) )
   150                 TBool excludedParmaterIsMatched =
       
   151                        aFilterType->ExcludedParameters().
       
   152                            ContainsAll(aFieldType.ExcludedParameters());
       
   153                 // if the FilterType is matched the Versit Property and
       
   154                 // the excludeParameter of FiledType, it needn't custom filter.
       
   155                 if ( versitIsMatched && excludedParmaterIsMatched )
       
   156                     {
   150                     {
   157                     ret = EFalse;
   151                     ret = EFalse;
   158                     break;
   152                     break;
   159                     }
   153                     }
   160                 }
   154                 }