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