equal
deleted
inserted
replaced
636 __LOGLB( ELogServer, "-> Find Continue" ); |
636 __LOGLB( ELogServer, "-> Find Continue" ); |
637 |
637 |
638 CMdSFindEngine* findEngine = NULL; |
638 CMdSFindEngine* findEngine = NULL; |
639 |
639 |
640 const TUint32 queryId = (TUint32)aMsg.Int0(); |
640 const TUint32 queryId = (TUint32)aMsg.Int0(); |
641 |
641 |
642 const TInt count = iFindEngines.Count(); |
|
643 |
|
644 TInt feIndex = 0; |
642 TInt feIndex = 0; |
645 |
643 |
646 for( TInt i = 0; i < count; i++ ) |
644 for( TInt i = iFindEngines.Count() - 1; i >=0; i-- ) |
647 { |
645 { |
648 if( queryId == iFindEngines[i]->QueryId() ) |
646 if( queryId == iFindEngines[i]->QueryId() ) |
649 { |
647 { |
650 findEngine = iFindEngines[i]; |
648 findEngine = iFindEngines[i]; |
651 |
649 |
682 { |
680 { |
683 __LOGLB( ELogServer, "-> Find Cancel" ); |
681 __LOGLB( ELogServer, "-> Find Cancel" ); |
684 |
682 |
685 const TUint32 queryId = (TUint32)aMsg.Int0(); |
683 const TUint32 queryId = (TUint32)aMsg.Int0(); |
686 |
684 |
687 const TInt count = iFindEngines.Count(); |
685 for( TInt i = iFindEngines.Count() - 1; i >=0; i-- ) |
688 |
|
689 for( TInt i = 0; i < count; i++ ) |
|
690 { |
686 { |
691 CMdSFindEngine* findEngine = iFindEngines[i]; |
687 CMdSFindEngine* findEngine = iFindEngines[i]; |
692 |
688 |
693 if( queryId == findEngine->QueryId() ) |
689 if( queryId == findEngine->QueryId() ) |
694 { |
690 { |
1193 // --------------------------------------------------------------------------- |
1189 // --------------------------------------------------------------------------- |
1194 // |
1190 // |
1195 void CMdSServerSession::ShutdownL( const RMessage2& /*aMsg*/ ) |
1191 void CMdSServerSession::ShutdownL( const RMessage2& /*aMsg*/ ) |
1196 { |
1192 { |
1197 __LOGLB( ELogServer, "-> Shutdown session" ); |
1193 __LOGLB( ELogServer, "-> Shutdown session" ); |
1198 |
1194 |
1199 const TInt count = iFindEngines.Count(); |
1195 for( TInt i = iFindEngines.Count() - 1; i >=0; i-- ) |
1200 |
|
1201 for( TInt i = 0; i < count; i++ ) |
|
1202 { |
1196 { |
1203 CMdSFindEngine* fe = iFindEngines[i]; |
1197 CMdSFindEngine* fe = iFindEngines[i]; |
1204 |
1198 |
1205 fe->Cancel( KErrNone ); |
1199 fe->Cancel( KErrNone ); |
1206 } |
1200 } |