equal
deleted
inserted
replaced
14 * Description: Predictive Contact Search Algorithm 1 main class |
14 * Description: Predictive Contact Search Algorithm 1 main class |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // INCLUDES |
18 // INCLUDES |
19 #include <VPbkEng.rsg> |
19 #include <vpbkeng.rsg> |
20 #include <PtiEngine.h> |
20 #include <PtiEngine.h> |
21 #include <centralrepository.h> |
21 #include <centralrepository.h> |
22 #include <AknFepInternalCRKeys.h> |
22 #include <AknFepInternalCRKeys.h> |
23 |
23 |
24 #include "CPcsAlgorithm2.h" |
24 #include "CPcsAlgorithm2.h" |
299 PRINTQUERY ( _L("CPcsAlgorithm2::PerformSearchL: 2nd search query: "), aQuery ); |
299 PRINTQUERY ( _L("CPcsAlgorithm2::PerformSearchL: 2nd search query: "), aQuery ); |
300 DoSearchL(aSettings, aQuery, tempSearchResults1, aSearchSeqs); |
300 DoSearchL(aSettings, aQuery, tempSearchResults1, aSearchSeqs); |
301 |
301 |
302 |
302 |
303 // Sort rule |
303 // Sort rule |
304 TLinearOrder<CPsData> rule(CPcsAlgorithm2Utils::CompareDataBySortOrder); |
304 TLinearOrder<CPsData> rule(CPcsAlgorithm2Utils::CompareDataBySortOrderL); |
305 |
305 |
306 // Avoid duplicates and add new results |
306 // Avoid duplicates and add new results |
307 TIdentityRelation<CPsData> identityRule(CPsData::CompareById); |
307 TIdentityRelation<CPsData> identityRule(CPsData::CompareById); |
308 const TInt tempSearchResults1Count = tempSearchResults1.Count(); |
308 const TInt tempSearchResults1Count = tempSearchResults1.Count(); |
309 if (aSettings.GetSortType() != EAlphabetical) |
309 if (aSettings.GetSortType() != EAlphabetical) |