syncmlfw/syncmlnotifier/src/SyncMLTimedInputTextQuery.cpp
branchRCL_3
changeset 24 13d7c31c74e0
parent 12 9e9792ae22e3
--- a/syncmlfw/syncmlnotifier/src/SyncMLTimedInputTextQuery.cpp	Thu Jul 15 19:36:11 2010 +0300
+++ b/syncmlfw/syncmlnotifier/src/SyncMLTimedInputTextQuery.cpp	Thu Aug 19 10:44:50 2010 +0300
@@ -153,38 +153,43 @@
 // CSyncMLTimedInputTextQuery::HandleQueryEditorStateEventL
 // -----------------------------------------------------------------------------
 //
-TBool CSyncMLTimedInputTextQuery::HandleQueryEditorStateEventL(CAknQueryControl* aQueryControl, TQueryControlEvent aEventType, TQueryValidationStatus aStatus)
+TBool CSyncMLTimedInputTextQuery::HandleQueryEditorStateEventL( 
+        CAknQueryControl* aQueryControl, TQueryControlEvent aEventType, 
+        TQueryValidationStatus aStatus )
 	{
- 	if ( aQueryControl )
-  {
- 		if( EPhoneLayout == aQueryControl->QueryType() )
- 	 	{
-			if (aEventType == EEmergencyCallAttempted)
-        	{
-        	TryExitL(EEikBidCancel);
-        	}
-    	else
-        	{
-        	
-         	TBuf<KSyncMLMaxDefaultResponseMsgLength> PhoneNo;
-         	aQueryControl->GetText( PhoneNo );
-         	TInt posplus = PhoneNo.LocateReverse('+');
-          	if(posplus==0 || posplus==KErrNotFound )
-           	{
-           	CAknQueryDialog::HandleQueryEditorStateEventL(aQueryControl,aEventType,aStatus);	
-           	}
-          	else
-           	{      
-          	MakeLeftSoftkeyVisible(EFalse);
-           	}
-         	}  
-  	 }
-  }
- 	else //For all other layouts 
- 	 {
- 	CAknQueryDialog::HandleQueryEditorStateEventL(aQueryControl,aEventType,aStatus);	
- 	 }
-	return EFalse;
-	}
+    if (aQueryControl)
+        {
+        if (EPhoneLayout == aQueryControl->QueryType())
+            {
+            if (aEventType == EEmergencyCallAttempted)
+                {
+                TryExitL(EEikBidCancel);
+                }
+            else
+                {
+
+                TBuf<KSyncMLMaxDefaultResponseMsgLength> PhoneNo;
+                aQueryControl->GetText(PhoneNo);
+                TInt posplus = PhoneNo.LocateReverse('+');
+                if (posplus == 0 || posplus == KErrNotFound)
+                    {
+                    CAknQueryDialog::HandleQueryEditorStateEventL(
+                            aQueryControl, aEventType, aStatus);
+                    }
+                else
+                    {
+                    MakeLeftSoftkeyVisible(EFalse);
+                    }
+                }
+            }
+
+        else //For all other layouts 
+            {
+            CAknQueryDialog::HandleQueryEditorStateEventL(aQueryControl,
+                    aEventType, aStatus);
+            }
+        }
+    return EFalse;
+    }
 
 //  End of File