phonebookengines/VirtualPhonebook/VPbkCntModel/src/CFilteredContactView.cpp
branchRCL_3
changeset 5 81f8547efd4f
parent 0 e686773b3f54
child 6 e8e3147d53eb
equal deleted inserted replaced
3:04ab22b956c2 5:81f8547efd4f
   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                 if ( matchingProperty->Matches(
   148                 TBool versitIsMatched = 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 )
   150                     {
   156                     {
   151                     ret = EFalse;
   157                     ret = EFalse;
   152                     break;
   158                     break;
   153                     }
   159                     }
   154                 }
   160                 }