equal
deleted
inserted
replaced
257 // Use Ps engine to check if the text matches the search query |
257 // Use Ps engine to check if the text matches the search query |
258 CDesCArray* matchSet = new (ELeave) CDesCArrayFlat(10); |
258 CDesCArray* matchSet = new (ELeave) CDesCArrayFlat(10); |
259 CleanupStack::PushL( matchSet ); |
259 CleanupStack::PushL( matchSet ); |
260 |
260 |
261 // Create display name, this will be used in UI. |
261 // Create display name, this will be used in UI. |
262 displayname = TFsEmailUiUtility::CreateDisplayNameLC( firstname, lastname, KNullDesC ); |
262 displayname = TFsEmailUiUtility::CreateDisplayNameLC( |
|
263 firstname, lastname, KNullDesC, iListHandler.UseLastNameFirstOrder() ); |
263 |
264 |
264 RArray<TPsMatchLocation> matchLocation; |
265 RArray<TPsMatchLocation> matchLocation; |
265 CleanupClosePushL( matchLocation ); |
266 CleanupClosePushL( matchLocation ); |
266 iRequestHandler->LookupL( *iQuery, *displayname, *matchSet, matchLocation ); |
267 iRequestHandler->LookupL( *iQuery, *displayname, *matchSet, matchLocation ); |
267 |
268 |
292 |
293 |
293 // Create display name, this will be used in UI. If the |
294 // Create display name, this will be used in UI. If the |
294 // contact does not contain either firstname nor lastname, |
295 // contact does not contain either firstname nor lastname, |
295 // the displayname is left empty. |
296 // the displayname is left empty. |
296 displayname = TFsEmailUiUtility::CreateDisplayNameLC( |
297 displayname = TFsEmailUiUtility::CreateDisplayNameLC( |
297 firstname, lastname ); |
298 firstname, lastname, iListHandler.UseLastNameFirstOrder() ); |
298 |
299 |
299 // Create match text field, containing display field and email address |
300 // Create match text field, containing display field and email address |
300 HBufC* matchText = HBufC::NewLC( displayname->Length() + |
301 HBufC* matchText = HBufC::NewLC( displayname->Length() + |
301 KSpace().Length() + |
302 KSpace().Length() + |
302 emailFields[fieldIndex].Length() ); |
303 emailFields[fieldIndex].Length() ); |