emailuis/emailui/src/FreestyleEmailUiContactHandler.cpp
branchRCL_3
changeset 16 b5fbb9b25d57
parent 12 4ce476e64c59
equal deleted inserted replaced
14:b13141f05c3d 16:b5fbb9b25d57
   428 // ---------------------------------------------------------------------------
   428 // ---------------------------------------------------------------------------
   429 // Searches contacts matching the given address
   429 // Searches contacts matching the given address
   430 // ---------------------------------------------------------------------------
   430 // ---------------------------------------------------------------------------
   431 //
   431 //
   432 void CFSEmailUiContactHandler::SearchMatchesL( const TDesC& aText, 
   432 void CFSEmailUiContactHandler::SearchMatchesL( const TDesC& aText, 
   433     MFSEmailUiContactHandlerObserver* aObserver, CFSMailBox* aMailBox )
   433     MFSEmailUiContactHandlerObserver* aObserver, CFSMailBox* aMailBox,
       
   434     TInt aMode )
   434     {
   435     {
   435     FUNC_LOG;
   436     FUNC_LOG;
   436     if ( (iState == EContactHandlerIdle) ||
   437     if ( (iState == EContactHandlerIdle) ||
   437          (iState == EContactHandlerSearchMatches)  )
   438          (iState == EContactHandlerSearchMatches)  )
   438         {
   439         {
   439         iState = EContactHandlerSearchMatches;
   440         iState = EContactHandlerSearchMatches;
   440         iHandlerObserver = aObserver;
   441         iHandlerObserver = aObserver;
   441         
   442         
   442         iClsListHandler->SetCurrentMailboxL( aMailBox );
   443         iClsListHandler->SetCurrentMailboxL( aMailBox );
   443         
   444         
       
   445         if( aMode != EModeUndefined )
       
   446         	{
       
   447         	iClsListHandler->InputModeChangedL( (TKeyboardModes)aMode );
       
   448         	}
   444         //Async call, CallBack is ArrayUpdatedL (when error: OperationErrorL)
   449         //Async call, CallBack is ArrayUpdatedL (when error: OperationErrorL)
   445         iClsListHandler->SearchMatchesL( aText );
   450         iClsListHandler->SearchMatchesL( aText );
   446         }
   451         }
   447     }
   452     }
   448 
   453