predictivesearch/PcsAlgorithm/Algorithm1/src/CPcsAlgorithm1MultiSearchHelper.cpp
branchRCL_3
changeset 32 2828b4d142c0
parent 21 b3431bff8c19
child 35 4ae315f230bc
equal deleted inserted replaced
26:0d28c1c5b6dd 32:2828b4d142c0
   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