phoneengine/PhoneCntFinder/ContactService/src/CPhCntContactManager.cpp
branchRCL_3
changeset 39 b8d67d6176f5
parent 34 b68fcd923911
child 58 40a3f856b14d
equal deleted inserted replaced
34:b68fcd923911 39:b8d67d6176f5
   116 //
   116 //
   117 MPhCntContactMatchStrategy* CPhCntContactManager::CreateContactMatchStrategyL(
   117 MPhCntContactMatchStrategy* CPhCntContactManager::CreateContactMatchStrategyL(
   118     MVPbkContactFindObserver& aObserver,
   118     MVPbkContactFindObserver& aObserver,
   119     TBool aRemoveDuplicates )
   119     TBool aRemoveDuplicates )
   120     {
   120     {
       
   121     TUint32 dupesMatch =
       
   122         CVPbkPhoneNumberMatchStrategy::EVPbkDuplicatedContactsMatchFlag |
       
   123         CVPbkPhoneNumberMatchStrategy::EVPbkBestMatchingFlag;
       
   124     TUint32 noDupesMatch = CVPbkPhoneNumberMatchStrategy::EVPbkBestMatchingFlag;
       
   125     
   121     return CPhCntContactMatchStrategy::NewL(
   126     return CPhCntContactMatchStrategy::NewL(
   122         *iContactManager,
   127         *iContactManager,
   123         *iContactStoreUris,
   128         *iContactStoreUris,
   124         aObserver,
   129         aObserver,
   125         aRemoveDuplicates ?
   130         aRemoveDuplicates ? dupesMatch : noDupesMatch );
   126         CVPbkPhoneNumberMatchStrategy::EVPbkDuplicatedContactsMatchFlag :
       
   127         CVPbkPhoneNumberMatchStrategy::EVPbkMatchFlagsNone );
       
   128     }
   131     }
   129 
   132 
   130 // ---------------------------------------------------------------------------
   133 // ---------------------------------------------------------------------------
   131 // From MPhCntContactManager
   134 // From MPhCntContactManager
   132 // Converts contact ids to contact links.
   135 // Converts contact ids to contact links.