phonebookengines/contactsmodel/cntplsql/src/pplcontactitemmanager.cpp
changeset 40 b46a585f6909
parent 31 2a11b5b00470
child 46 efe85016a067
equal deleted inserted replaced
37:fd64c38c277d 40:b46a585f6909
   645 	}
   645 	}
   646 
   646 
   647 CContactIdArray* CPplContactItemManager::MatchPhoneNumberL(const TDesC& aNumber, TInt aMatchLengthFromRight)
   647 CContactIdArray* CPplContactItemManager::MatchPhoneNumberL(const TDesC& aNumber, TInt aMatchLengthFromRight)
   648 	{
   648 	{
   649 	// Call comm address table
   649 	// Call comm address table
   650 	return  static_cast<CPplCommAddrTable*>(iCommAddrTable)->MatchPhoneNumberL(aNumber, aMatchLengthFromRight);
   650 	if (aMatchLengthFromRight == KBestMatchingPhoneNumbers)
       
   651         {
       
   652         return  static_cast<CPplCommAddrTable*>(iCommAddrTable)->BestMatchingPhoneNumberL(aNumber);
       
   653         }
       
   654     else
       
   655         {
       
   656         return  static_cast<CPplCommAddrTable*>(iCommAddrTable)->MatchPhoneNumberL(aNumber, aMatchLengthFromRight);
       
   657         }
   651 	}
   658 	}
   652 
   659 
   653 /**
   660 /**
   654 Utility method used to retrieve an array of card template ids
   661 Utility method used to retrieve an array of card template ids
   655 
   662