phonebookengines/VirtualPhonebook/VPbkCntModel/src/CFilteredContactView.cpp
branchRCL_3
changeset 14 81f8547efd4f
parent 0 e686773b3f54
child 15 e8e3147d53eb
--- a/phonebookengines/VirtualPhonebook/VPbkCntModel/src/CFilteredContactView.cpp	Fri Feb 19 22:40:27 2010 +0200
+++ b/phonebookengines/VirtualPhonebook/VPbkCntModel/src/CFilteredContactView.cpp	Fri Mar 12 15:41:25 2010 +0200
@@ -145,8 +145,14 @@
             for ( TInt matchPriority = 0;
                  matchPriority <= maxMatchPriority; ++matchPriority )
                 {
-                if ( matchingProperty->Matches(
-                        aFilterType->VersitProperties()[matchPriority]) )
+                TBool versitIsMatched = matchingProperty->Matches(
+                       aFilterType->VersitProperties()[matchPriority]);
+                TBool excludedParmaterIsMatched = 
+                       aFilterType->ExcludedParameters().
+                           ContainsAll(aFieldType.ExcludedParameters());
+                // if the FilterType is matched the Versit Property and 
+                // the excludeParameter of FiledType, it needn't custom filter.
+                if ( versitIsMatched && excludedParmaterIsMatched )
                     {
                     ret = EFalse;
                     break;