408 void CPcsAlgorithm1MultiSearchHelper::ConvertQueryToListL(RPointerArray<CPsQuery>& aSearchQuery, |
408 void CPcsAlgorithm1MultiSearchHelper::ConvertQueryToListL(RPointerArray<CPsQuery>& aSearchQuery, |
409 RPointerArray<HBufC>& aQueryList) |
409 RPointerArray<HBufC>& aQueryList) |
410 { |
410 { |
411 PRINT ( _L("Enter CPcsAlgorithm1MultiSearchHelper::ConvertQueryToListL") ); |
411 PRINT ( _L("Enter CPcsAlgorithm1MultiSearchHelper::ConvertQueryToListL") ); |
412 |
412 |
|
413 CleanupResetAndDestroyPushL( aQueryList ); |
413 for ( TInt queryIndex = 0; queryIndex < aSearchQuery.Count(); queryIndex++ ) |
414 for ( TInt queryIndex = 0; queryIndex < aSearchQuery.Count(); queryIndex++ ) |
414 { |
415 { |
415 TBuf<KPsQueryMaxLen> dataWithKeys; |
416 TBuf<KPsQueryMaxLen> dataWithKeys; |
416 iKeyMap->GetMixedKeyStringForQueryL( *aSearchQuery[queryIndex], dataWithKeys ); |
417 iKeyMap->GetMixedKeyStringForQueryL( *aSearchQuery[queryIndex], dataWithKeys ); |
417 |
418 |
418 HBufC* dWKToAppend = dataWithKeys.AllocLC(); |
419 HBufC* dWKToAppend = dataWithKeys.AllocLC(); |
419 aQueryList.AppendL( dWKToAppend ); |
420 aQueryList.AppendL( dWKToAppend ); |
420 CleanupStack::Pop( dWKToAppend ); // ownership transfered |
421 CleanupStack::Pop( dWKToAppend ); // ownership transfered |
421 } |
422 } |
422 |
423 |
|
424 CleanupStack::Pop( &aQueryList ); |
423 PRINT ( _L("End CPcsAlgorithm1MultiSearchHelper::ConvertQueryToListL") ); |
425 PRINT ( _L("End CPcsAlgorithm1MultiSearchHelper::ConvertQueryToListL") ); |
424 } |
426 } |
425 |
427 |
426 // ---------------------------------------------------------------------------- |
428 // ---------------------------------------------------------------------------- |
427 // CPcsAlgorithm1MultiSearchHelper::FilterResultsMultiL |
429 // CPcsAlgorithm1MultiSearchHelper::FilterResultsMultiL |