phonebookengines/VirtualPhonebook/VPbkSimStoreImpl/src/CVPbkSimContactView.cpp
branchRCL_3
changeset 9 0d28c1c5b6dd
parent 0 e686773b3f54
--- a/phonebookengines/VirtualPhonebook/VPbkSimStoreImpl/src/CVPbkSimContactView.cpp	Wed Apr 14 15:45:35 2010 +0300
+++ b/phonebookengines/VirtualPhonebook/VPbkSimStoreImpl/src/CVPbkSimContactView.cpp	Tue Apr 27 16:23:35 2010 +0300
@@ -1136,4 +1136,40 @@
     // Don't continue idle i.e return false value
     return 0;
     }
+
+// --------------------------------------------------------------------------
+// CVPbkSimContactView::IsMatch
+// --------------------------------------------------------------------------
+//
+TBool CVPbkSimContactView::IsMatch( 
+       const RVPbkSimFieldTypeArray& aSortOrder,
+       TVPbkSimViewConstructionPolicy aConstructionPolicy,
+       const TDesC& aViewName )
+    {
+    TBool result = EFalse;
+    if ( ( iViewName->CompareC( aViewName ) == 0 ) && 
+           ( aConstructionPolicy == iConstructionPolicy ) )
+       {
+       if ( EVPbkUnsortedSimView == aConstructionPolicy )
+           {
+           result = ETrue;
+           }
+       else if ( iSortOrder.Count() == aSortOrder.Count() )
+           {
+           result = ETrue;
+           for ( TInt i=0; i<aSortOrder.Count(); i++ )
+              {
+              if ( aSortOrder[i] != iSortOrder[i] )
+                  {
+                  result = EFalse;
+                  break;
+                  }
+              }
+           }
+       }
+    
+    return result;
+    }
+
+
 //  End of File