syncmlfw/syncmlnotifier/src/SyncMLTimedInputTextQuery.cpp
branchRCL_3
changeset 14 9e9792ae22e3
parent 0 b497e44ab2fc
child 59 13d7c31c74e0
equal deleted inserted replaced
13:06f47423ecee 14:9e9792ae22e3
   153 // CSyncMLTimedInputTextQuery::HandleQueryEditorStateEventL
   153 // CSyncMLTimedInputTextQuery::HandleQueryEditorStateEventL
   154 // -----------------------------------------------------------------------------
   154 // -----------------------------------------------------------------------------
   155 //
   155 //
   156 TBool CSyncMLTimedInputTextQuery::HandleQueryEditorStateEventL(CAknQueryControl* aQueryControl, TQueryControlEvent aEventType, TQueryValidationStatus aStatus)
   156 TBool CSyncMLTimedInputTextQuery::HandleQueryEditorStateEventL(CAknQueryControl* aQueryControl, TQueryControlEvent aEventType, TQueryValidationStatus aStatus)
   157 	{
   157 	{
   158  
   158  	if ( aQueryControl )
   159  	if( EPhoneLayout == aQueryControl->QueryType() )
   159   {
   160  	 {
   160  		if( EPhoneLayout == aQueryControl->QueryType() )
   161 		if (aEventType == EEmergencyCallAttempted)
   161  	 	{
       
   162 			if (aEventType == EEmergencyCallAttempted)
   162         	{
   163         	{
   163         	TryExitL(EEikBidCancel);
   164         	TryExitL(EEikBidCancel);
   164         	}
   165         	}
   165     	else
   166     	else
   166         	{
   167         	{
   167         	if ( aQueryControl )
   168         	
   168          	{
       
   169          	TBuf<KSyncMLMaxDefaultResponseMsgLength> PhoneNo;
   169          	TBuf<KSyncMLMaxDefaultResponseMsgLength> PhoneNo;
   170          	aQueryControl->GetText( PhoneNo );
   170          	aQueryControl->GetText( PhoneNo );
   171          	TInt posplus = PhoneNo.LocateReverse('+');
   171          	TInt posplus = PhoneNo.LocateReverse('+');
   172           	if(posplus==0 || posplus==KErrNotFound )
   172           	if(posplus==0 || posplus==KErrNotFound )
   173            	{
   173            	{
   175            	}
   175            	}
   176           	else
   176           	else
   177            	{      
   177            	{      
   178           	MakeLeftSoftkeyVisible(EFalse);
   178           	MakeLeftSoftkeyVisible(EFalse);
   179            	}
   179            	}
   180          	}
   180          	}  
   181         
       
   182         	}   
       
   183   	 }
   181   	 }
       
   182   }
   184  	else //For all other layouts 
   183  	else //For all other layouts 
   185  	 {
   184  	 {
   186  	CAknQueryDialog::HandleQueryEditorStateEventL(aQueryControl,aEventType,aStatus);	
   185  	CAknQueryDialog::HandleQueryEditorStateEventL(aQueryControl,aEventType,aStatus);	
   187  	 }
   186  	 }
   188 	return EFalse;
   187 	return EFalse;