diff src/ui/bmi/mmiSmsSend.c @ 92:c0052fe355d3

src/ui/bmi/*.[ch]: rm trailing white space
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 08 Nov 2020 06:39:16 +0000
parents 67bfe9f274f6
children 6838be2e9067
line wrap: on
line diff
--- a/src/ui/bmi/mmiSmsSend.c	Sun Nov 08 05:12:05 2020 +0000
+++ b/src/ui/bmi/mmiSmsSend.c	Sun Nov 08 06:39:16 2020 +0000
@@ -2,28 +2,28 @@
 
 					CONDAT (UK)
 
-********************************************************************************                                                                              
+********************************************************************************
 
  This software product is the property of Condat (UK) Ltd and may not be
- disclosed to any third party without the express permission of the owner.                                 
-                                                                              
+ disclosed to any third party without the express permission of the owner.
+
 ********************************************************************************
 
- $Project name:	Basic MMI                                                      
- $Project code:	BMI                                                            
+ $Project name:	Basic MMI
+ $Project code:	BMI
  $Module:		SMS
  $File:		    MmiSmsSend.c
- $Revision:		1.0                                                       
-                                                                              
- $Author:		Condat(UK)                                                         
- $Date:		    25/10/00                                                      
-                                                                               
+ $Revision:		1.0
+
+ $Author:		Condat(UK)
+ $Date:		    25/10/00
+
 ********************************************************************************
-                                                                              
+
  Description:
- 
+
     Implementation template for MMI yyy dynamic menu handling
-                        
+
 ********************************************************************************
 
 
@@ -31,7 +31,7 @@
 
     June 4 2007  REF: ACT_X0073106-BMI-5X-OMAPS00133906
     Description:Sending SMS fails when the sender's number contain '+' international symbol in it.
-    Solution:In file mmiSmsSend.c, In SmsSend_NBEDIT_edit_cb function, case INFO_KCD_LEFT i changed  if condition. 	
+    Solution:In file mmiSmsSend.c, In SmsSend_NBEDIT_edit_cb function, case INFO_KCD_LEFT i changed  if condition.
 
     Mar 22 2007 ER:OMAPS00113882 x0061088 (Prachi)
     Description:SMS alphanumeric address
@@ -39,7 +39,7 @@
     "ED_MODE_ALPHA" in  the function SmsSend_R_OPTExeSend(). Also MMI is checking whether user
     have entered Numeric oralphanumeric address in the function sms_submit() and
     sms_submit before calling sAT_PlusCMGS() and sAT_PlusCMGW() respectively.
- 
+
  	Jun 15, 2006      REF: OMAPS00067510   xreddymn
  	Description: MMI Hangs when SMS Memory is full and while reading a message
  	Solution: msgBuffer is now released after sending or saving a message, so that this heap
@@ -47,29 +47,29 @@
 
 	Jan 18, 2006      REF: OMAPS00049169 x0pleela
 	Description:  MS sends SMS with RP wrong destination address. Anite TC 34.2.8 was failing.
-	Solution: Removed the code where global variable reply_path_bit was reset to 0 in function 
+	Solution: Removed the code where global variable reply_path_bit was reset to 0 in function
 	SmsSend_SEND_mfw_cb(), switch case E_SMS_MO_AVAIL
-	
+
        March 2, 2005    REF: CRR 11536 x0018858
        Description: Reply path not supported while sending a reply.
        Solution: Added menu option for the reply path.
 
 	Feb 02, 2005   REF: CRR 28479   xnkulkar
-	Bug: While saving a SMS, if the user presses LSK while the 'Saved' dialog is displayed, the 'Saved' 
+	Bug: While saving a SMS, if the user presses LSK while the 'Saved' dialog is displayed, the 'Saved'
 	dialog doesn't get dismissed.
-	Solution: Only RSK and Hangup keys dismiss the 'Saved' info screen and all other key presses 
-       are ignored. 
-	              
+	Solution: Only RSK and Hangup keys dismiss the 'Saved' info screen and all other key presses
+       are ignored.
+
 	Aug 16, 2004    REF: CRR 24323   Deepa M.D
 	Bug:Clenup of sprintf used for tracing
 	Fix:Replace the char buf[]; sprintf (buf, "...", ...); TRACE_EVENT (buf); statements by TRACE_EVENT_PX
 
-	Aug 16, 2004    REF: CRR 24281  Deepa M.D 
+	Aug 16, 2004    REF: CRR 24281  Deepa M.D
 	Bug:Go-lite  Optimization  Remove the unsed variable  temp_conv_buffer
 	Fix:Removed the unused  variable static UBYTE temp_conv_buffer[MAX_MSG_LEN_ARRAY].
 
 
-    Sep 01, 2004    REF: CRR 21380  Deepa M.D 
+    Sep 01, 2004    REF: CRR 21380  Deepa M.D
 	Bug:Not getting proper display, When Messages Memory is Full.
 	Fix:A new Dialog displaying "Full Not Saved" will be displayed,
 	when memory is full and saving a message fails.
@@ -77,14 +77,14 @@
 
 
 
-	Jul 13, 2004    REF: CRR 21615  Deepa M.D 
+	Jul 13, 2004    REF: CRR 21615  Deepa M.D
 	Bug:Message once entered into message editor not storing in memory.
 	Fix:When a SMS is typed in the Editor, it is stored in a temporary buffer.
-	When the user accesses the editor,the temporary buffer is copied into the 
+	When the user accesses the editor,the temporary buffer is copied into the
 	Editor back.
 
-	25/10/00			Original Condat(UK) BMI version.	
-	   
+	25/10/00			Original Condat(UK) BMI version.
+
  $End
 
 *******************************************************************************/
@@ -228,7 +228,7 @@
 
 UBYTE SmsSend_set_SrvCntr_number (T_MFW_SMS_INFO *config_data);
 UBYTE SmsSend_set_dcs_number (T_MFW_SMS_INFO *config_data);
-//Jul 13, 2004    REF: CRR 21615  Deepa M.D 
+//Jul 13, 2004    REF: CRR 21615  Deepa M.D
 extern UBYTE TempTextBuffer[MAX_MSG_LEN_ARRAY];
 
 extern UBYTE reply_path_bit ;
@@ -274,7 +274,7 @@
 	T_MMI_CONTROL   mmi_control;
 	T_MFW_HND       win;
 	T_MFW_HND       parent;
-	T_MFW_HND       child_dialog;/* to keep the window of dialog          */    
+	T_MFW_HND       child_dialog;/* to keep the window of dialog          */
 	T_MFW_HND       sms_handler;
 	SHORT           id;
 	/*SPR1991, removed edt_data: not needed*/
@@ -298,7 +298,7 @@
 /* !!! **************************************** modify here **************************************** !!!*/
 static int SmsSend_R_OPT_kbd_cb (MfwEvt e, MfwKbd *k);
 static int SmsSend_R_OPT_mnu_cb (MfwEvt e, MfwMnu *m);
-//Sep 01, 2004    REF: CRR 21380  Deepa M.D 
+//Sep 01, 2004    REF: CRR 21380  Deepa M.D
 static UBYTE memfull=FALSE; //Variable used check whether E_SMS_MEM_FULL event has been received.
 /* !!! **************************************** end modify here **************************************** !!! */
 
@@ -345,7 +345,7 @@
 	int i;
     UBYTE* temp_conv_buffer = outText;
 
-	if (ipText[0] == 0x80) 
+	if (ipText[0] == 0x80)
 	{	//skip first 2 chars
 		*outLen = 0;
 		for (i=0;i<MAX_MSG_LEN/2;i++)
@@ -356,8 +356,8 @@
 
 
 
-			if ((*outLen ==0) && 
-				(temp_conv_buffer[i*2] == 0x00) && 
+			if ((*outLen ==0) &&
+				(temp_conv_buffer[i*2] == 0x00) &&
 				(temp_conv_buffer[i*2+1] == 0x00))
 				*outLen = i*2+2;
 		}
@@ -373,7 +373,7 @@
 
 	}
 	else
-	{	
+	{
 		*outLen = strlen((char*)ipText);
 		/*MC SPR1319, use string's actual length to convert to GSM alphabet*/
 		/*SPR2175, use new function for conversion*/
@@ -387,22 +387,22 @@
  $Function:    	SmsSend_R_OPTExeSend
 
  $Description:	Start the creation of the main window for SMS Send.
- 
+
  $Returns:		none
 
  $Arguments:	m - Menu handle
  				i - Menu item selected.
- 
+
 *******************************************************************************/
 
 static int SmsSend_R_OPTExeSend(MfwMnu* m, MfwMnuItem* i)
-{	
+{
     T_MFW_HND     	   win      = mfwParent(mfw_header());
     T_MFW_WIN        * win_data = ((T_MFW_HDR *)win)->data;
     T_SMSSEND_R_OPT  * data     = (T_SMSSEND_R_OPT *)win_data->user;
 	/* access to data from parent   */
     T_SEND  * parent_data =  (T_SEND *)data->parent_data;
-	
+
 
 #ifdef NEW_EDITOR
 	T_AUI_EDITOR_DATA editor_data;	/* SPR#1428 - SH - New Editor data */
@@ -419,7 +419,7 @@
 			AUI_edit_SetTextStr(&editor_data, TxtSend, TxtDelete, TxtTo, NULL);
 			AUI_edit_SetAltTextStr(&editor_data, 1, TxtNames, TRUE, TxtSoftBack);
 	// Mar 22 2007 ER:OMAPS00113882 x0061088 (Prachi)
-	//Mode is changed to alphanumeric mode		
+	//Mode is changed to alphanumeric mode
 			AUI_edit_SetMode(&editor_data, ED_MODE_ALPHA, ED_CURSOR_UNDERLINE);
 			AUI_edit_SetBuffer(&editor_data, ATB_DCS_ASCII, parent_data->edt_data.NumberBuffer, PHB_MAX_LEN);
 			parent_data->number_editor = AUI_edit_Start(parent_data->win, &editor_data);
@@ -427,21 +427,21 @@
 
 			SmsSend_loadEditDefault(&editor_data);
 
-			bookSetEditAttributes( PHNO_EDITOR, COLOUR_EDITOR_XX, 0, edtCurBar1, 0, 
+			bookSetEditAttributes( PHNO_EDITOR, COLOUR_EDITOR_XX, 0, edtCurBar1, 0,
 			(char *) parent_data->edt_data.NumberBuffer, /*MAX_SEARCH_CHAR*/NUMBER_LENGTH, &editor_data.editor_attr);
-			editor_data.editor_attr.text     = (char *)parent_data->edt_data.NumberBuffer; 
-
-			editor_data.editor_attr.size     = PHB_MAX_LEN; 
-
-			editor_data.TextId               = TxtSmsEnterNumber;  				 							  
+			editor_data.editor_attr.text     = (char *)parent_data->edt_data.NumberBuffer;
+
+			editor_data.editor_attr.size     = PHB_MAX_LEN;
+
+			editor_data.TextId               = TxtSmsEnterNumber;
 			editor_data.LeftSoftKey          = TxtSend;
 			editor_data.AlternateLeftSoftKey = TxtNames;
 			editor_data.RightSoftKey         = TxtDelete;
-			editor_data.Identifier           = SMSSEND_ID_NBEDIT ; 
+			editor_data.Identifier           = SMSSEND_ID_NBEDIT ;
 			editor_data.mode				 = E_EDIT_DIGITS_MODE;
 			editor_data.Callback             = (T_EDIT_CB)SmsSend_NBEDIT_edit_cb;
 			editor_data.destroyEditor		 = FALSE;
-			parent_data->number_editor = editor_start(parent_data->win, &editor_data);  /* start the editor */ 
+			parent_data->number_editor = editor_start(parent_data->win, &editor_data);  /* start the editor */
 #endif /* NEW_EDITOR */
 	return 1;  // ADDED BY RAVI - 28-11-2005
 
@@ -451,13 +451,13 @@
 
  $Function:    	SmsSend_R_OPTExeDiscard
 
- $Description:	
- 
+ $Description:
+
  $Returns:		execution status
 
  $Arguments:	m - Menu handle
  				i - Menu item selected.
- 
+
 *******************************************************************************/
 
 static int SmsSend_R_OPTExeDiscard(MfwMnu* m, MfwMnuItem* i)
@@ -490,7 +490,7 @@
 	parent_data->text_editor = 0;
 	SmsSend_SEND_destroy(parent_data->win);
 
-	
+
 	return 1;
 }
 
@@ -500,12 +500,12 @@
  $Function:    	SmsSend_R_OPTExeSave
 
  $Description:	called when the user press Call sender in the Option menu
- 
+
  $Returns:		execution status
 
  $Arguments:	m - Menu handle
  				i - Menu item selected.
- 
+
 *******************************************************************************/
 
 static int SmsSend_R_OPTExeSave(MfwMnu* m, MfwMnuItem* i)
@@ -537,12 +537,12 @@
  $Function:    	SmsSend_OPT_start
 
  $Description:	called when the user press Call sender in the Option menu
- 
+
  $Returns:		execution status
 
  $Arguments:	parent_window -parent window handle
  				menuAttr - Menu attributes.
- 
+
 *******************************************************************************/
 
 T_MFW_HND SmsSend_OPT_start(T_MFW_HND parent_window, MfwMnuAttr *menuAttr)
@@ -565,11 +565,11 @@
  $Function:    	SmsSend_R_OPT_create
 
  $Description:	Create the Option window
- 
+
  $Returns:		mfw window handle
 
  $Arguments:	parent_window -parent window handle
- 			
+
 *******************************************************************************/
 
 static T_MFW_HND SmsSend_R_OPT_create(MfwHnd parent_window)
@@ -583,13 +583,13 @@
      * Create window handler
      */
 
-    data->win = 
+    data->win =
 	win_create (parent_window, 0, E_WIN_VISIBLE, (T_MFW_CB)SmsSend_R_OPT_win_cb);
     if (data->win EQ NULL)
 	{
 	    return NULL;
 	}
-    /* 
+    /*
      * connect the dialog data to the MFW-window
      */
 
@@ -611,11 +611,11 @@
  $Function:    	SmsSend_R_OPT_destroy
 
  $Description:	Destroy the Option window
- 
+
  $Returns:		mfw window handle
 
  $Arguments:	own_window - current window
- 			
+
 *******************************************************************************/
 
 static void SmsSend_R_OPT_destroy(MfwHnd own_window)
@@ -634,11 +634,11 @@
 		{
 		    /*
 		     * Delete WIN handler
-		     */ 
+		     */
 			data->parent_data->options_win = 0;
 		    win_delete (data->win);
 
-		    /*     
+		    /*
 		     * Free Memory
 		     */
 		    FREE_MEMORY ((void *)data, sizeof (T_SMSSEND_R_OPT));
@@ -655,14 +655,14 @@
  $Function:    	SmsSend_R_OPT_exec_cb
 
  $Description:	Exec callback function for the Option window
- 
+
  $Returns:		none
 
  $Arguments:	win - current window
  				event - event id
  				value - unique id
  				parameter - optional data.
- 			
+
 *******************************************************************************/
 
 void SmsSend_R_OPT_exec_cb (T_MFW_HND win, USHORT event, SHORT value, void * parameter)
@@ -677,17 +677,17 @@
     T_SEND  * parent_data =  (T_SEND *)win_data2->user;
 
 //	T_MFW_EVENT         MfwEvents;   // RAVI
-	
+
     TRACE_FUNCTION ("SmsSend_R_OPT_exec_cb()");
 
 
     switch (event)
 	{
 	case E_INIT:
-		
+
 		TRACE_EVENT("SmsSend_R_OPT_exec_cb() Event:5.E_INIT");
 	    /* initialization of administrative data */
-		data->parent_data = parent_data;		
+		data->parent_data = parent_data;
 	    data->id = value;
 		data->kbd =      kbdCreate(data->win,KEY_ALL,         (MfwCb)SmsSend_R_OPT_kbd_cb);
     	data->kbd_long = kbdCreate(data->win,KEY_ALL|KEY_LONG,(MfwCb)SmsSend_R_OPT_kbd_cb);
@@ -707,7 +707,7 @@
  $Function:    	SmsSend_R_OPT_mnu_cb
 
  $Description:	Menu callback function for the Option window
- 
+
  $Returns:		none
 
  $Arguments:	e - event id
@@ -715,13 +715,13 @@
 *******************************************************************************/
 
 static int SmsSend_R_OPT_mnu_cb (MfwEvt e, MfwMnu *m)
-    
+
 {
     T_MFW_HND    win  = mfwParent(mfw_header());
     T_MFW_WIN  * win_data = ((T_MFW_HDR *)win)->data;
     T_SMSSEND_R_OPT      * data = (T_SMSSEND_R_OPT *)win_data->user;
 //    T_MFW_HND  * l_parent;   // RAVI
-//    SHORT        l_id;		    // RAVI	
+//    SHORT        l_id;		    // RAVI
 
     TRACE_FUNCTION ("SmsRead_R_OPT_mnu_cb()");
 
@@ -741,11 +741,11 @@
  $Function:    	SmsSend_R_OPT_win_cb
 
  $Description:	Window callback function for the Option window
- 
+
  $Returns:		execution status
 
  $Arguments:	e - event id
- 				w - window handle 
+ 				w - window handle
 *******************************************************************************/
 
 static int SmsSend_R_OPT_win_cb (MfwEvt e, MfwWin *w)
@@ -771,7 +771,7 @@
  $Function:    	SmsSend_R_OPT_kbd_cb
 
  $Description:	Exec callback function for the Option window
- 
+
  $Returns:		execution status
 
  $Arguments:	e - event id
@@ -830,7 +830,7 @@
  $Function:    	SmsSend_SEND_start
 
  $Description:	Create SMS send window
- 
+
  $Returns:		execution status
 
  $Arguments:	parent_window - parent window.
@@ -858,11 +858,11 @@
  $Function:    	SmsSend_SEND_create
 
  $Description:	Create a window for entering the text
- 
+
  $Returns:		window handle
 
  $Arguments:	parent_window - parent window.
- 				
+
 *******************************************************************************/
 
 static T_MFW_HND SmsSend_SEND_create(MfwHnd parent_window)
@@ -896,29 +896,29 @@
  $Function:    	SmsSend_SEND_destroy
 
  $Description:	Destroy the windows for entering the text
- 
+
  $Returns:		none
 
  $Arguments:	own_window - window.
- 				
+
 *******************************************************************************/
 
 static void SmsSend_SEND_destroy(MfwHnd own_window)
 {
   T_MFW_WIN * win_data;
-  T_SEND    * data = NULL; 
+  T_SEND    * data = NULL;
 
   TRACE_FUNCTION ("SmsSend_SEND_destroy()");
 
   if (own_window)
 	{
 	  win_data = ((T_MFW_HDR *)own_window)->data;
-		if (win_data != NULL) 
+		if (win_data != NULL)
 			data = (T_SEND *)win_data->user;
 
 	  if (data)
 		{
-			
+
 			// Delete sms handle
 			if (data->sms_handler != NULL)
 				sms_delete(data->sms_handler);
@@ -931,17 +931,17 @@
 			if (data->text_editor != NULL)
 			{
 				TRACE_EVENT("current_editor not deleted?");
-				
+
 
 			}
 
 
-			// Delete WIN handler 
+			// Delete WIN handler
 		  win_delete (data->win);
 
 		  // Free Memory
 			FREE_MEMORY ((void *)data, sizeof (T_SEND));
-			//win_data->user = NULL; 
+			//win_data->user = NULL;
 		}
 	  else
 		{
@@ -955,7 +955,7 @@
  $Function:    	SmsSend_main_exec_cb
 
  $Description:	Main callback handler for events sent to to trigger execution
- 
+
  $Returns:		none
 
  $Arguments:	win - current window
@@ -965,7 +965,7 @@
 *******************************************************************************/
 
 static void SmsSend_main_exec_cb (T_MFW_HND win, USHORT event, SHORT identifier, void * parameter)
-{	
+{
 	TRACE_FUNCTION ("SmsSend_main_exec_cb()");
 
 	/* In this field we get the identifier of the window sending the event */
@@ -978,11 +978,11 @@
 			break;
 		case PHBK_ID:
 			SmsSend_PHBK_exec_cb(win, event, parameter);
-			break; 
+			break;
 		case SMSSEND_ID_TEXTEDIT:
 			SmsSend_TEXTEDIT_exec_cb(win, event, parameter);
 			break;
-		case SMSSEND_ID_SC_NOT_READY: 
+		case SMSSEND_ID_SC_NOT_READY:
 			/* MZ cq11074 delete the info dialog window. */
 			SmsSend_SEND_destroy(win);
 			break;
@@ -1003,7 +1003,7 @@
  $Function:    	SmsSend_SEND_exec_cb
 
  $Description:	Callback handler for events sent by the window itself
- 
+
  $Returns:		none
 
  $Arguments:	win - current window
@@ -1036,12 +1036,12 @@
 			MfwEvents = E_SMS_ERR | E_SMS_MO_AVAIL;
 			data->sms_handler = sms_create(data->win,MfwEvents,(MfwCb)SmsSend_SEND_mfw_cb);
 			data->child_dialog = NULL;
-			
+
 			/* store NUMBER and TEXT */
 			memcpy(&(data->edt_data), (T_SmsUserData *)parameter, sizeof(T_SmsUserData));
-      		/* in case of reply the sms we have to 
+      		/* in case of reply the sms we have to
 			   use the service center number from the
-			   caller 
+			   caller
 			 */
 			 TRACE_EVENT_P1("data->edt_data.called_from_reply_item is %d",data->edt_data.called_from_reply_item);
 			if (data->edt_data.called_from_reply_item EQ FALSE)
@@ -1064,7 +1064,7 @@
 			&& (data->edt_data.TextBuffer[0]==0x00 || data->edt_data.TextBuffer[0] ==0x80))
 		{
 			T_CHINESE_DATA chinese_data;
-		
+
 			chinese_data.TextString = (char*) data->edt_data.TextBuffer;
 
 			chinese_data.TextString[0] = (char)0x80;
@@ -1073,11 +1073,11 @@
 			chinese_data.Identifier = SMSSEND_ID_TEXTEDIT ;
 			chinese_data.LeftSoftKey = TxtSoftOptions;
 			chinese_data.DestroyEditor = FALSE;
-#ifdef TI_PS_FF_CONC_SMS			
+#ifdef TI_PS_FF_CONC_SMS
 			if(FFS_flashData.ConcatenateStatus == TRUE)
 				chinese_data.EditorSize = (USHORT)((MAX_MSG_LEN_CHI)/2 - 1);
 			else
-#endif /*TI_PS_FF_CONC_SMS*/				
+#endif /*TI_PS_FF_CONC_SMS*/
 				chinese_data.EditorSize = (USHORT)((MAX_MSG_LEN_SGL_CHI)/2 - 1);
 			data->text_editor = chinese_input(win, &chinese_data);
 		}
@@ -1085,7 +1085,7 @@
 #endif /* CHINESE_MMI && EASY_TEXT_ENABLED */
 		/* We're opening up an ascii or unicode latin editor */
 		{
-			
+
 			AUI_edit_SetDefault(&editor_data);
 
 			/* Set the appropriate mode if easy text is enabled */
@@ -1096,15 +1096,15 @@
 #endif /* EASY_TEXT_ENABLED */
 
 			/* Check if concatenated SMS is enabled */
-#ifdef TI_PS_FF_CONC_SMS			
+#ifdef TI_PS_FF_CONC_SMS
 			if(FFS_flashData.ConcatenateStatus == TRUE)
 				size     = MAX_MSG_LEN;
 			else
-#endif /*TI_PS_FF_CONC_SMS*/				
+#endif /*TI_PS_FF_CONC_SMS*/
 				size     = MAX_MSG_LEN_SGL;
 
 			/* Set the DCS type of the message */
-			
+
 			if (data->edt_data.TextBuffer[0]==0x80)
 			{
 				TRACE_EVENT("Unicode SMS message starting 0x80");
@@ -1126,28 +1126,28 @@
 #else /* NEW_EDITOR */
 
 	/* END OF NEW EDITOR CODE */
-	
+
  /*SPR 1434*/
 #if defined(CHINESE_MMI) && defined(EASY_TEXT_ENABLED)
 /*MC SPR1242, merged section in from b-sample build*/
 	if (Mmi_getCurrentLanguage() == CHINESE_LANGUAGE)
 	{	T_CHINESE_DATA chinese_data;
-	
+
 		chinese_data.TextString = (char*) data->edt_data.TextBuffer;
 		/*if empty or unicode string, add unicode tag*/
 		if(chinese_data.TextString[0] ==0x00 || chinese_data.TextString[0] ==0x80)
 		{	chinese_data.TextString[0] = 0x80;
 			chinese_data.TextString[1] = MAX_MSG_LEN;
-			
+
 			chinese_data.Callback = (T_EDIT_CB)SmsSend_TEXTEDIT_edit_cb;
 		chinese_data.Identifier = SMSSEND_ID_TEXTEDIT ;
 		chinese_data.LeftSoftKey = TxtSoftOptions;
 		chinese_data.DestroyEditor = FALSE;
-#ifdef TI_PS_FF_CONC_SMS		
+#ifdef TI_PS_FF_CONC_SMS
 		if(FFS_flashData.ConcatenateStatus == TRUE)
 			chinese_data.EditorSize = (USHORT)((MAX_MSG_LEN_CHI)/2 - 1);
 		else
-#endif /*TI_PS_FF_CONC_SMS*/			
+#endif /*TI_PS_FF_CONC_SMS*/
 			chinese_data.EditorSize = (USHORT)((MAX_MSG_LEN_SGL_CHI)/2 - 1);
 		data->text_editor = chinese_input(win, &chinese_data);
 
@@ -1156,17 +1156,17 @@
 		{	SmsSend_loadEditDefault(&editor_data);
 			editor_data.editor_attr.text     = (char *)data->edt_data.TextBuffer;
 			//1227 - API - 05/10/02 - Size of Editor dependent on whether Conc_Switch is TRUE or FALSE
-#ifdef TI_PS_FF_CONC_SMS			
+#ifdef TI_PS_FF_CONC_SMS
 			if(FFS_flashData.ConcatenateStatus == TRUE)
 				editor_data.editor_attr.size     = MAX_MSG_LEN;
 			else
-#endif /*TI_PS_FF_CONC_SMS*/				
+#endif /*TI_PS_FF_CONC_SMS*/
 				editor_data.editor_attr.size     = MAX_MSG_LEN_SGL;
-			editor_data.min_enter						 = 0; 			 								
+			editor_data.min_enter						 = 0;
 			editor_data.LeftSoftKey          = TxtSoftOptions;
 			editor_data.AlternateLeftSoftKey = TxtSoftOptions;
 			editor_data.RightSoftKey         = TxtDelete;
-			editor_data.Identifier           = SMSSEND_ID_TEXTEDIT ; 
+			editor_data.Identifier           = SMSSEND_ID_TEXTEDIT ;
 			editor_data.Callback             = (T_EDIT_CB)SmsSend_TEXTEDIT_edit_cb;
 			editor_data.destroyEditor 		 = FALSE;
 			data->text_editor = editor_start(win,&editor_data);  /* start the editor */
@@ -1178,11 +1178,11 @@
 {
 #ifdef EASY_TEXT_ENABLED
 			editor_data.hide									= FALSE;
-			editor_data.TextId               = '\0';  
-			editor_data.Identifier           =  0; 
-			editor_data.TextString           = NULL;  
+			editor_data.TextId               = '\0';
+			editor_data.Identifier           =  0;
+			editor_data.TextString           = NULL;
 			editor_data.timeout			  = FOREVER;  // Avoid to return empty strings
-			editor_data.mode                 = ALPHA_MODE; 
+			editor_data.mode                 = ALPHA_MODE;
 			editor_attr_init_pred(&editor_data.editor_attr, ZONE_FULL_SK_TITLE, edtCurBar1,  NULL, (char *)data->edt_data.TextBuffer, MAX_MSG_LEN, COLOUR_EDITOR);
 #else /* EASY_TEXT_ENABLED */
 			SmsSend_loadEditDefault(&editor_data);
@@ -1191,18 +1191,18 @@
 
 			editor_data.editor_attr.text     = (char *)data->edt_data.TextBuffer;
 			//1227 - API - 05/10/02 - Size of Editor dependent on whether Conc_Switch is TRUE or FALSE
-#ifdef TI_PS_FF_CONC_SMS			
+#ifdef TI_PS_FF_CONC_SMS
 			if(FFS_flashData.ConcatenateStatus == TRUE)
 				editor_data.editor_attr.size     = MAX_MSG_LEN;
 			else
-#endif /*TI_PS_FF_CONC_SMS*/				
+#endif /*TI_PS_FF_CONC_SMS*/
 				editor_data.editor_attr.size     = MAX_MSG_LEN_SGL;
-			editor_data.min_enter						 = 0; 				 								
+			editor_data.min_enter						 = 0;
 			editor_data.LeftSoftKey          = TxtSoftOptions;
 			editor_data.AlternateLeftSoftKey = TxtSoftOptions;
 			editor_data.RightSoftKey         = TxtDelete;
 
-			editor_data.Identifier           = SMSSEND_ID_TEXTEDIT ; 
+			editor_data.Identifier           = SMSSEND_ID_TEXTEDIT ;
 			editor_data.Callback             = (T_EDIT_CB)SmsSend_TEXTEDIT_edit_cb;
 			editor_data.destroyEditor 		 = FALSE;
 			data->text_editor = editor_start(win,&editor_data);  /* start the editor */
@@ -1233,7 +1233,7 @@
             /* Marcus: Issue 1170: 07/10/2002: Start */
 
 			break;
-	case E_RETURN: 
+	case E_RETURN:
 		break;
 	case E_EXIT:
 		if(data->sc_number_editor != NULL)
@@ -1243,7 +1243,7 @@
 			SmsSend_get_config_data(&sms_parameter);
 
 			if (Mmi_getCurrentLanguage() == CHINESE_LANGUAGE)
-			{	//We have a chinese text message - set dcs parameter to 
+			{	//We have a chinese text message - set dcs parameter to
 				sms_parameter.dcs = MFW_DCS_UCS2;
     		}
 			else
@@ -1266,7 +1266,7 @@
 #endif /* NEW_EDITOR */
 			data->sc_number_editor = NULL;
 		}
-		
+
 		break;
 	default:
 		TRACE_EVENT("Err: Default");
@@ -1279,7 +1279,7 @@
  $Function:    	SmsSend_PHBK_exec_cb
 
  $Description:	Callback handler for events sent by the phonebook window
- 
+
  $Returns:		none
 
  $Arguments:	win - current window
@@ -1316,7 +1316,7 @@
 			/* SPR#1428 - SH - Insert service centre number into editor */
 		case SMSSC_PHBK_NUMBER:
 			memcpy(data->edt_data.CentreBuffer, (char *)parameter, MINIMUM(sizeof(data->edt_data.CentreBuffer) - 1, strlen((char *)parameter)+1));
-			break;			
+			break;
 #endif /* NEW_EDITOR */
 		default:
 			TRACE_EVENT("Err: Default");
@@ -1330,7 +1330,7 @@
  $Function:    	SmsSend_TEXTEDIT_exec_cb
 
  $Description:	Callback handler for events sent by the TEXTEDIT editor
- 
+
  $Returns:		none
 
  $Arguments:	win - current window
@@ -1368,7 +1368,7 @@
 *******************************************************************************/
 
 static void SmsSend_NBEDIT_exec_cb(T_MFW_HND win, USHORT event, void *parameter)
-{	
+{
     T_MFW_WIN      * win_data = ((T_MFW_HDR *) win)->data;
     T_SEND         * data = (T_SEND *)win_data->user;
 	T_MFW_SMS_INFO sms_parameter;
@@ -1390,11 +1390,11 @@
 			}
 			else
 			{
-				
+
 				if (!smsidle_get_ready_state())
 				{
 					// SMS init processing not ready to access SIM to store the SMS
-					/* MZ cq11074 do not invoke the editor until SMS Service Centre number has been read, 
+					/* MZ cq11074 do not invoke the editor until SMS Service Centre number has been read,
 					    display info dialog. */
 					mmi_dialog_information_screen(win,TxtPleaseWait, "NOT READY", (T_VOID_FUNC)SmsSend_standard_dialog_cb, SMSSEND_ID_SC_NOT_READY );
 					return;
@@ -1418,7 +1418,7 @@
 			}
 
 			/* SPR#1428 - SH - New Editor changes */
-			
+
 #ifdef NEW_EDITOR
 			AUI_edit_SetDefault(&editor_data);
 			AUI_edit_SetDisplay(&editor_data, CENTRE_EDITOR, COLOUR_EDITOR_XX, EDITOR_FONT);
@@ -1432,24 +1432,24 @@
 
 	    	SmsSend_loadEditDefault(&editor_data);
 
-			bookSetEditAttributes( CENTRE_EDITOR, COLOUR_EDITOR_XX,0,edtCurBar1, 0, 
+			bookSetEditAttributes( CENTRE_EDITOR, COLOUR_EDITOR_XX,0,edtCurBar1, 0,
 			(char *) data->edt_data.CentreBuffer, NUMBER_LENGTH, &editor_data.editor_attr);
-			
-			editor_data.TextId            = TxtServiceCentre;  
-			editor_data.editor_attr.text     = (char *)data->edt_data.CentreBuffer;  
-			editor_data.editor_attr.size     = NUMBER_LENGTH; 
+
+			editor_data.TextId            = TxtServiceCentre;
+			editor_data.editor_attr.text     = (char *)data->edt_data.CentreBuffer;
+			editor_data.editor_attr.size     = NUMBER_LENGTH;
 			editor_data.LeftSoftKey        = TxtSoftOK;
 			editor_data.AlternateLeftSoftKey = TxtNames;
 			editor_data.RightSoftKey       = TxtDelete;
-			editor_data.Identifier           = NULL; 
+			editor_data.Identifier           = NULL;
 			editor_data.Callback           = (T_EDIT_CB)SmsSend_SCNBEDIT_edit_cb;
 			editor_data.mode		    = E_EDIT_DIGITS_MODE;
 			editor_data.destroyEditor		 = FALSE;
-			data->number_editor = editor_start(data->win,&editor_data);  
+			data->number_editor = editor_start(data->win,&editor_data);
 #endif /* NEW_EDITOR */
 
-		/* start the editor */ 
-			
+		/* start the editor */
+
 			break;
 		default:
 			TRACE_EVENT("Err: Default");
@@ -1471,7 +1471,7 @@
 *******************************************************************************/
 
 static void SmsSend_CENTREEDIT_exec_cb(T_MFW_HND win, USHORT event, void *parameter)
-{	
+{
 	T_MFW_WIN      * win_data = ((T_MFW_HDR *) win)->data;
 	T_SEND         * data = (T_SEND *)win_data->user;
 
@@ -1499,25 +1499,25 @@
 #else /* NEW_EDITOR */
 
 			SmsSend_loadEditDefault(&editor_data);
-			bookSetEditAttributes( CENTRE_EDITOR, COLOUR_EDITOR_XX, 0, edtCurBar1, 0, 
+			bookSetEditAttributes( CENTRE_EDITOR, COLOUR_EDITOR_XX, 0, edtCurBar1, 0,
 			(char *) data->edt_data.CentreBuffer, NUMBER_LENGTH, &editor_data.editor_attr);
-			
-			editor_data.TextId            = TxtServiceCentre;  
-			editor_data.editor_attr.text     = (char *)data->edt_data.CentreBuffer;  
-			editor_data.editor_attr.size     = PHB_MAX_LEN; 
+
+			editor_data.TextId            = TxtServiceCentre;
+			editor_data.editor_attr.text     = (char *)data->edt_data.CentreBuffer;
+			editor_data.editor_attr.size     = PHB_MAX_LEN;
 			editor_data.LeftSoftKey        = TxtSoftOK;
 			editor_data.RightSoftKey       = TxtDelete;
 			editor_data.Identifier 	    = *(USHORT*)parameter;
 			editor_data.Callback           = (T_EDIT_CB)SmsSend_CENTREEDIT_edit_cb;
 			editor_data.mode		    = E_EDIT_DIGITS_MODE;
-			editor_data.destroyEditor        = TRUE ; 
-			data->sc_number_editor = editor_start(data->win,&editor_data);  
-		/* start the Service Centre Number editor */ 
+			editor_data.destroyEditor        = TRUE ;
+			data->sc_number_editor = editor_start(data->win,&editor_data);
+		/* start the Service Centre Number editor */
 #endif /* NEW_EDITOR */
 		break;
-		
+
 	case E_RETURN:
-		
+
 		break;
 	default:
 		TRACE_EVENT("Err: Default");
@@ -1542,24 +1542,24 @@
 {
 	T_MFW_WIN			* win_data = ((T_MFW_HDR *) win)->data;
 	T_SEND				* data     = (T_SEND *)win_data->user;
-	
+
 	TRACE_FUNCTION ("SmsSend_TEXTEDIT_edit_cb()");
-	
-	//	Jul 13, 2004    REF: CRR 21615  Deepa M.D 
+
+	//	Jul 13, 2004    REF: CRR 21615  Deepa M.D
 	//Copy the sms content from the editor buffer into the temporary buffer.
 	memcpy(TempTextBuffer,data->edt_data.TextBuffer,MAX_MSG_LEN);
-	
+
 	switch (reason)
 	{
 	case INFO_KCD_ALTERNATELEFT:
 	case INFO_KCD_LEFT:
 		data->options_win = SmsSend_OPT_start(win,(MfwMnuAttr*)&SmsSend_R_OPTAttrib);
-		
-		/* Create number editor:                                 
+
+		/* Create number editor:
 		-the editor min length is 1
 		*/
 		break;
-		
+
 	case INFO_KCD_RIGHT:
 	case INFO_KCD_HUP:
 		// Commit suicide so come back to previous menu
@@ -1568,18 +1568,18 @@
 			chinese_input_destroy(data->text_editor);
 		else
 #endif
-			
+
 			/* SPR#1428 - SH - New Editor changes */
 #ifdef NEW_EDITOR
 			AUI_edit_Destroy(data->text_editor);
 #else /* NEW_EDITOR */
 		editor_destroy(data->text_editor);
 #endif /* NEW_EDITOR */
-		
+
 		data->text_editor = 0;
 		SmsSend_SEND_destroy(data->win);
 		break;
-		
+
 	default:
 		TRACE_EVENT("Err: Default");
 		break;
@@ -1601,29 +1601,29 @@
 *******************************************************************************/
 
 static void SmsSend_NBEDIT_edit_cb (T_MFW_HND win, USHORT Identifier, SHORT reason)
-{	
+{
 	T_MFW_WIN   * win_data = ((T_MFW_HDR *) win)->data;
 	T_SEND      * data     = (T_SEND *)win_data->user;
 
 	T_MFW_SMS_INFO	sms_parameter;
 	USHORT parameter;
-	
+
 	TRACE_FUNCTION ("SmsSend_NBEDIT_edit_cb()");
 
-	
+
 	switch (reason)
 	{
 		case INFO_KCD_LEFT:
 	  		// Check if we can go to the next stage
 			if ( (phb_check_number(data->edt_data.NumberBuffer) EQ MFW_PHB_FAIL) && (phb_get_mode() EQ PHB_RESTRICTED))//ACT_X0073106-BMI-5X-OMAPS00133906
 			{
-				
+
 				mmi_dialog_information_screen(win,TxtNotImplemented, "NOT ALLOWED", (T_VOID_FUNC)SmsSend_standard_dialog_cb, SMSSEND_ID_NOT_ALLOWED);
 
 			}
 			else
 			{
-				
+
 				if (!smsidle_get_ready_state())
 				{
 					// SMS init processing not ready to access SIM to store the SMS
@@ -1656,13 +1656,13 @@
 								   TRACE_EVENT_P1("serviceNr:%s",data->edt_data.CentreBuffer);
 								   /***************************Go-lite Optimization changes end***********************/
 							   }
-															
+
 						}
 						else
 						{
 							TRACE_EVENT("from the caller, reply");
-						
-							/* in case of reply the sms, we took already the 
+
+							/* in case of reply the sms, we took already the
 							   the service center number from the caller !!!*/
 
 								{
@@ -1689,7 +1689,7 @@
 			SmsSend_R_OPT_destroy(data->options_win);
 
 		break;
-          
+
 		case INFO_KCD_ALTERNATELEFT:
 			bookPhonebookStart(win, PhbkFromSms);
 			break;
@@ -1724,7 +1724,7 @@
 *******************************************************************************/
 
 static void SmsSend_CENTREEDIT_edit_cb (T_MFW_HND win, USHORT Identifier, SHORT reason)
-{	
+{
 //	T_MFW_WIN   * win_data = ((T_MFW_HDR *) win)->data;   // RAVI
 //	T_SEND      * data     = (T_SEND *)win_data->user;           // RAVI
 
@@ -1736,19 +1736,19 @@
 		if (Identifier==SMSSEND_ID_CENTREEDIT)
 			{
 				TRACE_EVENT("SmsSend_CENTREEDIT_edit_cb,INFO_KCD_LEFT Send to mfw ");
-				
+
 				//Submit the SMS message to the service centre.
 				SmsSend_send_to_mfw(win);
 			}
 		break;
-  
+
 	case INFO_KCD_RIGHT:
 	case INFO_KCD_HUP:
 		/* send an event that will lead to the display of the number edition window */
 	    SEND_EVENT (win, E_RETURN, SMSSEND_ID_CENTREEDIT, NULL);
 		break;
 	default:
-		
+
 		break;
 	}
 }
@@ -1780,19 +1780,19 @@
 	{
 		case E_SMS_MO_AVAIL:
 			TRACE_EVENT ("Sent was successful -> ok");
-			/* Sent was successful */ 
-			/* abort the current Dialog "Please wait" */ 
+			/* Sent was successful */
+			/* abort the current Dialog "Please wait" */
 			if (data->child_dialog != NULL)
 			{
 				SEND_EVENT (data->child_dialog, DIALOG_DESTROY, 0, NULL);
-				data->child_dialog = NULL; 
+				data->child_dialog = NULL;
 			}
 			//GW Display sent not send
 			/* FTA 34.2.2 - CQ 101443 - API & MZ pass NULL instead of win to the dialog window*/
-			//Sep 01, 2004    REF: CRR 21380  Deepa M.D 
+			//Sep 01, 2004    REF: CRR 21380  Deepa M.D
 			//Second string is same as the TextId .Hence passed NULL.
 			mmi_dialog_information_screen(NULL,TxtSent, NULL, (T_VOID_FUNC)SmsSend_standard_dialog_cb, SMSSEND_ID_SENT);
-			data->id = SMSSEND_ID_SENT; 
+			data->id = SMSSEND_ID_SENT;
 
 			/* xreddymn OMAPS00067510 Jun-15-2006 */
 			if (msgBuffer != NULL)
@@ -1801,17 +1801,17 @@
 		  		msgBuffer = NULL;
 			}
 			break;
-			
+
 		case E_SMS_ERR:
 			// Waiting dialog is destroyed
 			if (data->child_dialog != NULL)
 			{
 				SEND_EVENT (data->child_dialog, DIALOG_DESTROY, 0, NULL);
-				data->child_dialog = NULL; 
+				data->child_dialog = NULL;
 			}
 			// and the status dialog is displayed during 3 secs.
 			/* FTA 34.2.2 - CQ 101443 - API & MZ pass NULL instead of win to the dialog window */
-			 //Sep 01, 2004    REF: CRR 21380  Deepa M.D 
+			 //Sep 01, 2004    REF: CRR 21380  Deepa M.D
 			//Second string is same as the TextId .Hence passed NULL.
 			mmi_dialog_information_screen(NULL,TxtNotSent, NULL, (T_VOID_FUNC)SmsSend_standard_dialog_cb, SMSSEND_ID_NOT_SENT);
 			data->id = SMSSEND_ID_NOT_SENT; //TB3
@@ -1823,10 +1823,10 @@
 		  		msgBuffer = NULL;
 			}
 			break;
-       	
+
     default:
 			TRACE_EVENT("Err: default");
-			return 0;      	   
+			return 0;
    	}
 
 	return 1;
@@ -1840,7 +1840,7 @@
 
  $Returns:		mfw window handle
 
- $Arguments:	parent_window - parent window 
+ $Arguments:	parent_window - parent window
  				UserData - SMS info
 
 *******************************************************************************/
@@ -1868,7 +1868,7 @@
 
  $Returns:		mfw window handle
 
- $Arguments:	parent_window - parent window 
+ $Arguments:	parent_window - parent window
 
 *******************************************************************************/
 
@@ -1888,7 +1888,7 @@
 		return NULL;
 	}
 
-	/* 
+	/*
 	 * connect the dialog data to the MFW-window
 	 */
 	data->mmi_control.dialog = (T_DIALOG_FUNC)SmsSend_SAVE_exec_cb;
@@ -1910,21 +1910,21 @@
 
  $Returns:		none
 
- $Arguments:	own_window - current window 
+ $Arguments:	own_window - current window
 
 *******************************************************************************/
 
 static void SmsSend_SAVE_destroy(MfwHnd own_window)
 {
   T_MFW_WIN * win_data;
-  T_SAVE    * data = NULL; 
+  T_SAVE    * data = NULL;
 
   TRACE_FUNCTION ("SmsSend_SAVE_destroy()");
 
   if (own_window)
 	{
 	  win_data = ((T_MFW_HDR *)own_window)->data;
-		if (win_data) 
+		if (win_data)
 	    data = (T_SAVE *)win_data->user;
 
 	  if (data)
@@ -1938,12 +1938,12 @@
 				TRACE_EVENT("child_dialog not deleted?");
 			}
 
-			// Delete WIN handler 
+			// Delete WIN handler
 		  win_delete (data->win);
 
 		  // Free Memory
 		  FREE_MEMORY ((void *)data, sizeof (T_SAVE));
-			
+
 		}
 	  else
 		{
@@ -1960,7 +1960,7 @@
 
  $Returns:		none
 
- $Arguments:	own_window - current window 
+ $Arguments:	own_window - current window
 
 *******************************************************************************/
 
@@ -1979,13 +1979,13 @@
 
 	switch (event)
 	{
-		case E_INIT:		
-			
+		case E_INIT:
+
 			/*MZ issue 10202 only alloc memory when you need it */
 			if (msgBuffer ==NULL)
 				msgBuffer = (UBYTE*)ALLOC_MEMORY(MAX_MSG_LEN_ARRAY);
-			
-			data->child_dialog = NULL; 
+
+			data->child_dialog = NULL;
 
 			/* Create a sms handler to receive events  */
 			data->sms_handler = sms_create(data->win,
@@ -1997,7 +1997,7 @@
 			using up more dynamic memory*/
 			message_parameter = parameter;
 			if (message_parameter->TextBuffer[0] == 0x80)
-			{	//String is unicode - 
+			{	//String is unicode -
 				sms_parameter.dcs = MFW_DCS_UCS2;
 			}
 			else
@@ -2015,7 +2015,7 @@
 
 					store_status = sms_store(MFW_SMS_SUBMIT, (char*)message_parameter->NumberBuffer, msgBuffer, outLen, NULL);
 			}
-			#else		
+			#else
 			{
 				convertToUnicodeForOutput(data->edt_data.TextBuffer,msgBuffer, &outLen);
 				store_status = sms_store(MFW_SMS_SUBMIT, (char*)message_parameter->NumberBuffer, msgBuffer, outLen, NULL);
@@ -2033,39 +2033,39 @@
 				if (data->child_dialog == NULL)
 				{
 					// Feb 02, 2005   REF: CRR 28479   xnkulkar
-					// Call function "mmi_dialog_information_screen_save_sms" which has only 
+					// Call function "mmi_dialog_information_screen_save_sms" which has only
 	       			// KEY_RIGHT and  KEY_HUP registered instead of KEY_ALL
 					//data->child_dialog = mmi_dialog_information_screen(win,TxtPleaseWait, "SAVING", (T_VOID_FUNC)SmsSend_standard_dialog_cb, SMSSEND_ID_WAIT_SAVE);
 					data->child_dialog = mmi_dialog_information_screen_save_sms(win,TxtPleaseWait, "SAVING", (T_VOID_FUNC)SmsSend_standard_dialog_cb, SMSSEND_ID_WAIT_SAVE);
 				}
-				
+
 			}
 			else
 			{
 				TRACE_EVENT ("Save operation -> failed");
-				//Sep 01, 2004    REF: CRR 21380  Deepa M.D 
+				//Sep 01, 2004    REF: CRR 21380  Deepa M.D
 				//If E_SMS_MEM_FULL event  has already been received, then destroy the Messagefull Dialog
 				//and dispaly a new dialog "Full NOT SAVED".
 				if(memfull==TRUE)
 				{
 					// Feb 02, 2005   REF: CRR 28479   xnkulkar
-					// Call function "mmi_dialog_information_screen_save_sms" which has only 
+					// Call function "mmi_dialog_information_screen_save_sms" which has only
 	       			// KEY_RIGHT and  KEY_HUP registered instead of KEY_ALL
 					//mmi_dialog_information_screen(win, TxtFull,"NOT SAVED", (T_VOID_FUNC)SmsSend_standard_dialog_cb, SMSSEND_ID_NOT_SAVED);
 					mmi_dialog_information_screen_save_sms(win, TxtFull,"NOT SAVED", (T_VOID_FUNC)SmsSend_standard_dialog_cb, SMSSEND_ID_NOT_SAVED);
 					memfull=FALSE;//Set the memful flag to False.
-					
+
 				}
 				// If the saving message failed due to other reason than memory full, display this message
 				else if (data->child_dialog == NULL)
 				{
 					// Feb 02, 2005   REF: CRR 28479   xnkulkar
-					// Call function "mmi_dialog_information_screen_save_sms" which has only 
+					// Call function "mmi_dialog_information_screen_save_sms" which has only
 	       			// KEY_RIGHT and  KEY_HUP registered instead of KEY_ALL
 					//mmi_dialog_information_screen(win, TxtFailed,"NOT SAVED", (T_VOID_FUNC)SmsSend_standard_dialog_cb, SMSSEND_ID_NOT_SAVED);
 					mmi_dialog_information_screen_save_sms(win, TxtFailed,"NOT SAVED", (T_VOID_FUNC)SmsSend_standard_dialog_cb, SMSSEND_ID_NOT_SAVED);
 				}
-				
+
 			}
 		/*SPr 1991, check memory allocated before deallocatting it*/
 		/* MZ 10202 Remove the memory deallocation until later.*/
@@ -2076,7 +2076,7 @@
 		TRACE_EVENT("Err: default");
 	break;
 	}
-   
+
     return;
 }
 
@@ -2101,27 +2101,27 @@
 	T_SAVE     * data     = (T_SAVE *)win_data->user;
 
 //	T_DISPLAY_DATA display_info;
-  
+
 	TRACE_FUNCTION ("SmsSend_SAVE_mfw_cb");
 
 	switch (event)
 	{
-		/* Save is successful */   
+		/* Save is successful */
     case E_SMS_SAVE_AVAIL:
 		// Waiting dialog is destroyed
-		
+
 		if (data->child_dialog != NULL)
 		{
 			SEND_EVENT (data->child_dialog, DIALOG_DESTROY, 0, NULL);
-			data->child_dialog = NULL; 
+			data->child_dialog = NULL;
 		}
-		//Sep 01, 2004    REF: CRR 21380  Deepa M.D 
+		//Sep 01, 2004    REF: CRR 21380  Deepa M.D
 		//Second string is same as the TextId .Hence passed NULL.
 
 		// Feb 02, 2005   REF: CRR 28479   xnkulkar
-		// Call function "mmi_dialog_information_screen_save_sms" which has only 
+		// Call function "mmi_dialog_information_screen_save_sms" which has only
 	       // KEY_RIGHT and  KEY_HUP registered instead of KEY_ALL
-	       
+
 		// mmi_dialog_information_screen(win, TxtSaved,NULL, (T_VOID_FUNC)SmsSend_standard_dialog_cb, SMSSEND_ID_SAVED);
 		mmi_dialog_information_screen_save_sms(win, TxtSaved,NULL, (T_VOID_FUNC)SmsSend_standard_dialog_cb, SMSSEND_ID_SAVED);
 
@@ -2132,22 +2132,22 @@
 	  		msgBuffer = NULL;
 		}
 		break;
-		
+
 	case E_SMS_MEM_FULL:
-		//Sep 01, 2004    REF: CRR 21380  Deepa M.D 
+		//Sep 01, 2004    REF: CRR 21380  Deepa M.D
 		//Flag to check E_SMS_MEM_FULL event has already been received.
 		memfull=TRUE;
 		TRACE_EVENT ("Memory for sms save is full");
-		
+
 		if (data->child_dialog != NULL)
 		{
 			// Waiting dialog is destroyed
 			SEND_EVENT (data->child_dialog, DIALOG_DESTROY, 0, NULL);
-			data->child_dialog = NULL; 
+			data->child_dialog = NULL;
 		}
 		// and the status dialog is displayed during 3 secs.
 		// set data->child_dialog as message received before sms_store is ended
-		//Sep 01, 2004    REF: CRR 21380  Deepa M.D 
+		//Sep 01, 2004    REF: CRR 21380  Deepa M.D
 		//Second string is same as the TextId .Hence passed NULL.
 		mmi_dialog_information_screen(win,TxtFull, NULL, (T_VOID_FUNC)SmsSend_standard_dialog_cb, SMSSEND_ID_LIST_FULL);
 
@@ -2159,15 +2159,15 @@
 		}
 		return MFW_EVENT_PASSED; /*SPR 2640, pass event along to idle screen*/
 	//	break;   // RAVI
-		
+
     case E_SMS_ERR:
 		TRACE_EVENT ("Save sms failed -> nok");
-		
+
 		if (data->child_dialog != NULL)
 		{
 			// Waiting dialog is destroyed
 			SEND_EVENT (data->child_dialog, DIALOG_DESTROY, 0, NULL);
-			data->child_dialog = NULL; 
+			data->child_dialog = NULL;
 		}
 		// and the status dialog is displayed during 3 secs.
 		// set data->child_dialog if message received before sms_store is ended
@@ -2180,11 +2180,11 @@
 	  		msgBuffer = NULL;
 		}
 		break;
-		
+
 	default:
 		TRACE_EVENT("Err: default");
 		return 0;
-   	}	
+   	}
 	return 1;
 }
 
@@ -2204,7 +2204,7 @@
 *******************************************************************************/
 
 static int SmsSend_send_to_mfw (T_MFW_HND win)
-{  
+{
 	T_MFW_WIN				* win_data = ((T_MFW_HDR *)win)->data;
 	T_SEND					* data     = (T_SEND *)win_data->user;
 	T_MFW						submit_status;   /* Result of SMS send operation. */
@@ -2217,7 +2217,7 @@
 		msgBuffer = (UBYTE*)ALLOC_MEMORY(MAX_MSG_LEN_ARRAY);
 	TRACE_FUNCTION ("SmsSend_send_to_mfw()");
 	if (data->edt_data.TextBuffer[0] == 0x80)
-	{	//String is unicode - 
+	{	//String is unicode -
 		sms_parameter.dcs = MFW_DCS_UCS2;
 	}
 	else
@@ -2227,9 +2227,9 @@
 
 	SmsSend_set_dcs_number (&sms_parameter);
 	/* Send the SMS */
-        
-  
-	
+
+
+
 	#ifdef NO_ASCIIZ
 	{
 
@@ -2266,14 +2266,14 @@
 
 	}
 	#endif
-		
-	
+
+
 
 	/*  display "Please wait" for sent sms */
 	if (submit_status EQ MFW_SMS_OK)
 	{
 		T_DISPLAY_DATA display_info;
-	
+
 		TRACE_EVENT ("to give SMS to MFW -> ok");
 		/* show the use "Please wait" for send sms */
 		dlg_initDisplayData_TextId( &display_info, TxtNull, TxtNull, TxtSending, TxtMessage , COLOUR_STATUS);
@@ -2287,7 +2287,7 @@
 	{
 		TRACE_EVENT ("to give SMS to MFW -> failed");
 		/* the result operation of sent was NOT OK*/
-		//Sep 01, 2004    REF: CRR 21380  Deepa M.D 
+		//Sep 01, 2004    REF: CRR 21380  Deepa M.D
 		//Second string is same as the TextId .Hence passed NULL.
 		mmi_dialog_information_screen(win,TxtNotSent, NULL, (T_VOID_FUNC)SmsSend_standard_dialog_cb, SMSSEND_ID_NOT_SENT);
 		// No forever dialog to be destroyed
@@ -2317,13 +2317,13 @@
 	T_MFW Submit_Status;   /* store theh result of SMS send operation. */
 
   TRACE_FUNCTION ("SmsSend_get_config_data()");
-  // get the current config data from SIM 
+  // get the current config data from SIM
 	Submit_Status = sms_parameter(config_data, TRUE);
 
 	if (Submit_Status == MFW_SMS_FAIL)
 	{
 		TRACE_EVENT  ("ret MFW_SMS_FAIL");
-		return FALSE;		
+		return FALSE;
 	}
 	else
 	{
@@ -2348,13 +2348,13 @@
 	T_MFW Submit_Status;   /* store theh result of SMS send operation. */
 
   TRACE_FUNCTION ("SmsSend_set_SrvCntr_number()");
-  // get the current config data from SIM 
+  // get the current config data from SIM
 	Submit_Status = sms_set_SrvCntr_number(config_data);
 
 	if (Submit_Status == MFW_SMS_FAIL)
 	{
 		TRACE_EVENT  ("ret MFW_SMS_FAIL");
-		return FALSE;		
+		return FALSE;
 	}
 	else
 	{
@@ -2367,13 +2367,13 @@
 	T_MFW Submit_Status;   /* store theh result of SMS send operation. */
 
   TRACE_EVENT ("SmsSend_set_dcs_number()");
-  // get the current config data from SIM 
+  // get the current config data from SIM
 	Submit_Status = sms_set_dcs_number(config_data);
 
 	if (Submit_Status == MFW_SMS_FAIL)
 	{
 		TRACE_EVENT  ("ret MFW_SMS_FAIL");
-		return FALSE;		
+		return FALSE;
 	}
 	else
 	{
@@ -2391,7 +2391,7 @@
  $Description:	Configure T_EDITOR_DATA structure with default editor settings.
 
  $Returns:		none
- 
+
  $Arguments:	editor_data - editor data.
 
 *******************************************************************************/
@@ -2404,9 +2404,9 @@
 		editor_data_init(editor_data, NULL, TxtSoftSelect, TxtSoftBack, 0, 1, ALPHA_MODE, FOREVER);
 		editor_data->hide									= FALSE;
 		editor_data->AlternateLeftSoftKey = TxtNull;
-		editor_data->Identifier           =  0; 
-		editor_data->TextString           = NULL;  
-		editor_data->destroyEditor        = TRUE ; 
+		editor_data->Identifier           =  0;
+		editor_data->TextString           = NULL;
+		editor_data->destroyEditor        = TRUE ;
 }
 
 
@@ -2417,7 +2417,7 @@
  $Description:	Configure T_EDITOR2_DATA structure with default editor settings.
 
  $Returns:		none
- 
+
  $Arguments:	editor_data - editor data.
 
 *******************************************************************************/
@@ -2427,7 +2427,7 @@
 	TRACE_FUNCTION ("SmsSend_loadUCS2EditDefault()");
 
 	memset(editor_data, 0, sizeof(T_EDITOR_DATA));
-	editor_data->hide							= FALSE; 
+	editor_data->hide							= FALSE;
 	editor_data->LeftSoftKey					= TxtSend;
 	editor_data->AlternateLeftSoftKey			= TxtSend;
 	editor_data->RightSoftKey					= TxtSave;
@@ -2447,9 +2447,9 @@
  $Description:	Callback function for standard dialogs in smssend module
 
  $Returns:		none
- 
+
  $Arguments:	win - current window
- 				Identifier - unique id 
+ 				Identifier - unique id
  				Reason - event id
 
 *******************************************************************************/
@@ -2459,22 +2459,22 @@
 	T_MFW_WIN   * win_data		= ((T_MFW_HDR *) win)->data;
 	T_SAVE		  * save_data		= NULL;
 	T_SEND			* send_data		= NULL;
-  	T_MFW_HND   * l_parent		= NULL; 
-  
+  	T_MFW_HND   * l_parent		= NULL;
+
     TRACE_FUNCTION ("SmsSend_standard_dialog_cb()");
-	
+
 
 
 	switch (Identifier)
 	{
-	
+
 		case SMSSEND_ID_SAVE_NOT_READY:
 		case SMSSEND_ID_SC_NOT_READY:
 			// SEND an event to recreate the text editor
 			// or to recreate the destination address number editor
 			SEND_EVENT (win, E_RETURN, Identifier, NULL);
 			break;
-			
+
 		case SMSSEND_ID_WAIT_SEND:
 			if (win_data != NULL)
 				{
@@ -2495,7 +2495,7 @@
 						save_data->child_dialog = NULL;
 				}
 			break;
-		
+
 		// Destroy the window then send the EXIT event to the SEND window->display of the text editor
 		case SMSSEND_ID_SENT:
 		case SMSSEND_ID_NOT_SENT:
@@ -2523,7 +2523,7 @@
 				// This will make SEND frame to recreate the text editor
 				if (l_parent != NULL)
 					SEND_EVENT(l_parent, E_EXIT, SAVE_ID, NULL);
-				
+
 			}
 			break;
 
@@ -2539,11 +2539,11 @@
 
  $Function:    	SmsSend_convert_to_inter
 
- $Description:	Transform a phone number in T_MFW_SMS_ADDR format to a string 
+ $Description:	Transform a phone number in T_MFW_SMS_ADDR format to a string
  				with a '+' character if international number
- 				
+
  $Returns:		none
- 
+
  $Arguments:	source_number - calling number
  				dest_number - called number
 *******************************************************************************/
@@ -2574,20 +2574,20 @@
  $Function:    	SmsSend_R_OPTExeCentreEdit
 
  $Description:	Create editor for entering the Service center number.
- 
+
  $Returns:		none
- 
+
  $Arguments:	m - menu handler
  				i - menu item selected.
 *******************************************************************************/
 
 
-int SmsSend_R_OPTExeCentreEdit(MfwMnu* m, MfwMnuItem* i) 
+int SmsSend_R_OPTExeCentreEdit(MfwMnu* m, MfwMnuItem* i)
 {
 	T_MFW_HND parent_win = mfw_parent(mfw_header());
 	T_MFW_HND win = SmsSend_SEND_create(parent_win);
 	SEND_EVENT(win,E_INIT,SMSSEND_ID_NBEDIT,0);
-	return 1;   // ADDED BY RAVI-28-11-2005	
+	return 1;   // ADDED BY RAVI-28-11-2005
 }
 /*******************************************************************************
 
@@ -2606,13 +2606,13 @@
 {
 	T_MFW_WIN   * win_data = ((T_MFW_HDR *) win)->data;
 	T_SEND      * data     = (T_SEND *)win_data->user;
-	
+
 	T_MFW_SMS_INFO	sms_parameter;
 
 
 	TRACE_FUNCTION ("SmsSend_SCNBEDIT_edit_cb()");
 
-	
+
 	switch (reason)
 	{
 		case INFO_KCD_LEFT:
@@ -2620,20 +2620,20 @@
 				//GW Read config data to get value of dcs
 				SmsSend_get_config_data(&sms_parameter);
 				if (Mmi_getCurrentLanguage() == CHINESE_LANGUAGE)
-				{	//We have a chinese text message - set dcs parameter to 
+				{	//We have a chinese text message - set dcs parameter to
 					sms_parameter.dcs = MFW_DCS_UCS2;
     			}
 				else
 				{
 					sms_parameter.dcs = MFW_DCS_7bits;
 				}
-				//copy the sevice center number into the 
-				
+				//copy the sevice center number into the
+
 				strcpy((char*)sms_parameter.sc_addr,(char*)data->edt_data.CentreBuffer);
 				// store the Service center number into the SIM.
 				SmsSend_set_SrvCntr_number (&sms_parameter);
 				SmsSend_set_dcs_number (&sms_parameter);
-				
+
 				/* SPR#1428 - SH - New Editor changes */
 #ifdef NEW_EDITOR
 				AUI_edit_Destroy(data->number_editor);
@@ -2643,9 +2643,9 @@
 
 				SmsSend_SEND_destroy(win);
 				data->number_editor = 0;
-		
+
 		break;
-          
+
 		case INFO_KCD_ALTERNATELEFT:
 			TRACE_EVENT("INFO_KCD_ALTERNATELEFT");
 
@@ -2663,7 +2663,7 @@
 
 			SmsSend_SEND_destroy(win);
 			data->number_editor = 0;
-			
+
 			break;
 
 		default:
@@ -2673,9 +2673,9 @@
 }
 
 // Feb 02, 2005   REF: CRR 28479   xnkulkar
-// Bug: While saving a SMS, if the user presses LSK while the 'Saved' dialog is displayed, the 'Saved' 
+// Bug: While saving a SMS, if the user presses LSK while the 'Saved' dialog is displayed, the 'Saved'
 // dialog doesn't get dismissed.
-// Solution: New function "mmi_dialog_information_screen_save_sms" which has only 
+// Solution: New function "mmi_dialog_information_screen_save_sms" which has only
 // KEY_RIGHT and  KEY_HUP registered instead of KEY_ALL
 /*******************************************************************************
 
@@ -2683,9 +2683,9 @@
 
  $Description:	 Function to display SMS "Saved" info screen
 
- $Returns:	info_dialog	
-
- $Arguments:	
+ $Returns:	info_dialog
+
+ $Arguments:
 
 *******************************************************************************/
 T_MFW_HND mmi_dialog_information_screen_save_sms(T_MFW_HND parent_win, int TxtId, char* text, T_VOID_FUNC call_back, USHORT identifier)
@@ -2693,10 +2693,10 @@
 	T_DISPLAY_DATA display_info;
 	dlg_initDisplayData_TextId( &display_info, TxtNull,  TxtNull, TxtId, TxtNull, COLOUR_STATUS);
 	dlg_initDisplayData_events( &display_info, call_back, THREE_SECS, KEY_RIGHT | KEY_HUP );
-	display_info.TextString2   = text; 
+	display_info.TextString2   = text;
 	display_info.Identifier   = identifier;
 	return info_dialog(parent_win,&display_info); //information screen
-		
+
 }
 
 #undef MMI_SMSSEND_C