phonebookengines/VirtualPhonebook/VPbkCntModel/src/CFilteredContactView.cpp
branchRCL_3
changeset 58 d4f567ce2e7c
parent 57 2666d9724c76
child 64 c1e8ba0c2b16
equal deleted inserted replaced
57:2666d9724c76 58: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                 }