equal
deleted
inserted
replaced
599 |
599 |
600 find->FindL( userLevel ); |
600 find->FindL( userLevel ); |
601 |
601 |
602 CleanupStack::Pop( find ); |
602 CleanupStack::Pop( find ); |
603 |
603 |
604 iFindEngines.AppendL( find ); |
604 iFindEngines.Append( find ); |
605 } |
605 } |
606 |
606 |
607 // --------------------------------------------------------------------------- |
607 // --------------------------------------------------------------------------- |
608 // FindAsyncL |
608 // FindAsyncL |
609 // --------------------------------------------------------------------------- |
609 // --------------------------------------------------------------------------- |
639 |
639 |
640 find->FindAsyncL( userLevel ); |
640 find->FindAsyncL( userLevel ); |
641 |
641 |
642 CleanupStack::Pop( find ); |
642 CleanupStack::Pop( find ); |
643 |
643 |
644 iFindEngines.AppendL( find ); |
644 iFindEngines.Append( find ); |
645 } |
645 } |
646 |
646 |
647 // --------------------------------------------------------------------------- |
647 // --------------------------------------------------------------------------- |
648 // FindContinueAsyncL |
648 // FindContinueAsyncL |
649 // --------------------------------------------------------------------------- |
649 // --------------------------------------------------------------------------- |
676 } |
676 } |
677 // find engine is already complete |
677 // find engine is already complete |
678 else if( findEngine->IsComplete() ) |
678 else if( findEngine->IsComplete() ) |
679 { |
679 { |
680 delete findEngine; |
680 delete findEngine; |
681 findEngine = NULL; |
|
682 |
681 |
683 iFindEngines.Remove( feIndex ); |
682 iFindEngines.Remove( feIndex ); |
684 |
683 |
685 User::Leave( KErrCompletion ); |
684 User::Leave( KErrCompletion ); |
686 } |
685 } |
707 if( queryId == findEngine->QueryId() ) |
706 if( queryId == findEngine->QueryId() ) |
708 { |
707 { |
709 findEngine->Cancel( aError ); |
708 findEngine->Cancel( aError ); |
710 |
709 |
711 delete findEngine; |
710 delete findEngine; |
712 findEngine = NULL; |
|
713 |
711 |
714 iFindEngines.Remove( i ); |
712 iFindEngines.Remove( i ); |
715 |
713 |
716 aMsg.Complete( aError ); |
714 aMsg.Complete( aError ); |
717 return; |
715 return; |
864 aMsg.WriteL( 1, findEngine->ResultsL().Buffer() ); |
862 aMsg.WriteL( 1, findEngine->ResultsL().Buffer() ); |
865 |
863 |
866 if ( serverRequest != EAsyncFindSetReady ) |
864 if ( serverRequest != EAsyncFindSetReady ) |
867 { |
865 { |
868 delete findEngine; |
866 delete findEngine; |
869 findEngine = NULL; |
|
870 |
867 |
871 iFindEngines.Remove( findEngineIndex ); |
868 iFindEngines.Remove( findEngineIndex ); |
872 iFindEngines.Compress(); |
869 iFindEngines.Compress(); |
873 } |
870 } |
874 } |
871 } |