diff src/ui/bmi/mmiSmsMenu.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 44d6af34c75a
line wrap: on
line diff
--- a/src/ui/bmi/mmiSmsMenu.c	Sun Nov 08 05:12:05 2020 +0000
+++ b/src/ui/bmi/mmiSmsMenu.c	Sun Nov 08 06:39:16 2020 +0000
@@ -33,29 +33,29 @@
       Solution     : Earlier, index alone was sufficient to identify messages. Now memory should also be taken care of.
 
 	May 27, 2005    MMI-FIX-29869 x0018858
-   	Description: There is a limitation on the number of messages that can be downloaded from 
+   	Description: There is a limitation on the number of messages that can be downloaded from
    	server even though there is space on the sim.
    	Solution: The limitation has been removed and the number of messages that can be dowloaded
    	has been modified to the masimum number that can be stored.
 
       	March 31, 2005    REF: CRR MMI-SPR-24511   x0012852
-	Bug:The phone crashes when the user selects the 'Delete All' option 
+	Bug:The phone crashes when the user selects the 'Delete All' option
        almost the same time as there's an incoming message.
        Fix:Check added for part message before deleting all messages.
 
  	Feb 24, 2005 REF: CRR MMI-SPR-29102 xnkulkar
-       Description: The phone resets when user presses the ''End All' key while the SMSs are being deleted. 
-       Solution: As the user has already confirmed that all SMS messages are to be deleted, ''End All' key 
+       Description: The phone resets when user presses the ''End All' key while the SMSs are being deleted.
+       Solution: As the user has already confirmed that all SMS messages are to be deleted, ''End All' key
        		press is ignored till the delete operation is over.
-       		
-	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 back into 
+	When the user accesses the editor,the temporary buffer is copied back into
 	the Editor .
 
-	Mar 29, 2004    REF: CRR 12722  Deepa M.D 
-	Mar 24, 2004    REF: CRR 15746  Deepa M.D 
+	Mar 29, 2004    REF: CRR 12722  Deepa M.D
+	Mar 24, 2004    REF: CRR 15746  Deepa M.D
 	25/10/00      Original Condat(UK) BMI version.
 
  $End
@@ -326,7 +326,7 @@
 T_SmsMenu_state g_SmsMenu_state = SMS_DISPLAY;
 MfwHnd g_ChildWindow2;
 UBYTE g_CenterNumber[NUMBER_LENGTH];
-//Jul 13, 2004    REF: CRR 21615  Deepa M.D 
+//Jul 13, 2004    REF: CRR 21615  Deepa M.D
 UBYTE TempTextBuffer[MAX_MSG_LEN_ARRAY]; //Temporary buffer to store the SMS content
 
 /*******************************************************************************
@@ -347,39 +347,39 @@
 {
     T_MFW_HND       win  = eZiTextWin;// SUMIT: mfwParent(mfw_header());
     T_SmsUserData   SmsData;
-	
+
     /* Copy the number and name information to the SMS buffer
-    */ 
+    */
 	/*MC SPR 1257, clear whole buffer in case of Unicode entry*/
-	
+
     /*SPR 2587, check that SMS has been initialised*/
 	if (!smsidle_get_ready_state() || phb_get_mode() == PHB_LOADING)
-	{	
-		
+	{
+
 		mmi_dialog_information_screen(0, TxtPleaseWait, NULL, NULL, NULL);
 		return 0;
-	}	
-	//	Jul 13, 2004    REF: CRR 21615  Deepa M.D 
-	//  Copy the content from the temporary buffer into the editor,so that the 
-	//  previously typed content is retained. 
-#ifdef TI_PS_FF_CONC_SMS		
+	}
+	//	Jul 13, 2004    REF: CRR 21615  Deepa M.D
+	//  Copy the content from the temporary buffer into the editor,so that the
+	//  previously typed content is retained.
+#ifdef TI_PS_FF_CONC_SMS
     if(FFS_flashData.ConcatenateStatus == TRUE)
    	{
 		memset(SmsData.TextBuffer, '\0', MAX_MSG_LEN);
 		memcpy(SmsData.TextBuffer, TempTextBuffer,MAX_MSG_LEN);
    	}
-	
+
     else
-#endif /*TI_PS_FF_CONC_SMS*/		
+#endif /*TI_PS_FF_CONC_SMS*/
 	{
 		memset(SmsData.TextBuffer, '\0', MAX_MSG_LEN_SGL);
 		//Copy only 160 characters ofthe message.
-		memcpy(SmsData.TextBuffer, TempTextBuffer,MAX_MSG_LEN_SGL-1); 
+		memcpy(SmsData.TextBuffer, TempTextBuffer,MAX_MSG_LEN_SGL-1);
 	}
-    
+
     SmsData.NumberBuffer[0]='\0'; //set the number to null.
     SmsData.called_from_reply_item = FALSE;
-    
+
 	SmsSend_SEND_start(win, (void *) &SmsData);
 	return 1;
 }
@@ -633,7 +633,7 @@
 
     data->win =
   win_create (parent_window, 0, E_WIN_VISIBLE, (T_MFW_CB)M_SND_SAV_win_cb);
-    
+
     if (data->win EQ NULL)
   {
       return NULL;
@@ -731,11 +731,11 @@
       data->id = value;
     data->user_data = (T_SmsUserData *)ALLOC_MEMORY (sizeof (T_SmsUserData));
     /*MC SPR 1257, clear whole buffer in case of Unicode entry*/
-#ifdef TI_PS_FF_CONC_SMS	
+#ifdef TI_PS_FF_CONC_SMS
  	if(FFS_flashData.ConcatenateStatus == TRUE)
  		memset( data->user_data->TextBuffer, '\0', MAX_MSG_LEN_SGL);
     else
-#endif /*TI_PS_FF_CONC_SMS*/		
+#endif /*TI_PS_FF_CONC_SMS*/
     	memset( data->user_data->TextBuffer, '\0', MAX_MSG_LEN);
     data->user_data->NumberBuffer[0] = '\0';
 
@@ -985,7 +985,7 @@
     T_M_DEL_ALL     * data;
 
     TRACE_FUNCTION ("M_DEL_ALL_destroy()");
-	
+
     if (own_window)
   {
       win_data = ((T_MFW_HDR *)own_window)->data;
@@ -1042,7 +1042,7 @@
     T_DISPLAY_DATA  DisplayInfo;
 
     TRACE_FUNCTION ("M_DEL_ALL_exec_cb()");
-	
+
     switch (event)
   {
   case E_INIT:
@@ -1076,7 +1076,7 @@
 		{ 	/*SPR 2139, only create an SMS event handler if sms initialised and sms list is not empty*/
 			MfwEvents = E_SMS_MO_AVAIL | E_SMS_ERR | E_SMS_OK;
     		data->sms_hnd = sms_create(data->win,MfwEvents,(MfwCb)M_DEL_ALL_mfw_cb);
-    		
+
      	 	DisplayInfo.TextId       = TxtOkToDelete;
       		DisplayInfo.Time         = FIVE_SECS;
       		DisplayInfo.KeyEvents    = KEY_RIGHT|KEY_LEFT|KEY_CLEAR;
@@ -1192,16 +1192,16 @@
     }
     else
     {
-	
+
       /* there is now anymore sms to delete !! */
       g_SmsMenu_state = SMS_READY;
 
 	/* cq16875 Destroy the previous info dialog if there is one before displaying the new dialog.
-	    When a concatenated message is deleted using the "Delete All" menu option the E_SMS_OK 
+	    When a concatenated message is deleted using the "Delete All" menu option the E_SMS_OK
 	    event is received for each Concat message part that is deleted.
 	    12-02-04 MZ. */
 	if(data->child_dialog != NULL)
-	{	
+	{
 		SEND_EVENT (data->child_dialog, DIALOG_DESTROY, 0,NULL);
 		data->child_dialog = NULL;
 	}
@@ -1384,7 +1384,7 @@
       data->id = value;
 
 	/* SPR#1428 - SH - New Editor changes */
-	
+
 #ifdef NEW_EDITOR
 		AUI_edit_SetDefault(&editor_data);
 		AUI_edit_SetDisplay(&editor_data, ZONE_FULL_SK_TITLE, COLOUR_EDITOR_XX, EDITOR_FONT);
@@ -1395,14 +1395,14 @@
 		// Subject: Right softkey should be "Back" when the editor is empty
 		// Bug : Right softkey should be "Back" when the editor is empty
 		// Solution : Added alternative string for the right softkey tobe displayed when the editor is empty
-		
+
 		AUI_edit_SetAltTextStr(&editor_data, 0, NULL, TRUE, TxtSoftBack);
 		AUI_edit_SetMode(&editor_data, 0, ED_CURSOR_UNDERLINE);
 		AUI_edit_SetBuffer(&editor_data, ATB_DCS_ASCII, (UBYTE *)FFS_flashData.voice_mail, PHB_MAX_LEN);
 
 		 /* SPR#2141 - DS - Set RSK to "Back" when the editor is empty. */
              AUI_edit_SetAltTextStr(&editor_data, 1, NULL, TRUE, TxtSoftBack);
-             
+
         	AUI_edit_Start(win, &editor_data);
 #else /* NEW_EDITOR */
         SmsMenu_loadEditDefault(&editor_data);
@@ -1416,7 +1416,7 @@
 		// Subject: Right softkey should be "Back" when the editor is empty
 		// Bug : Right softkey should be "Back" when the editor is empty
 		// Solution : Added alternative string for the right softkey tobe displayed when the editor is empty
-		
+
 		editor_data.RightSoftKey         = TxtSoftBack;
         editor_data.Identifier        = value;
 
@@ -1637,9 +1637,9 @@
 #ifdef FF_MMI_SMS_DYNAMIC
 	data->g_SmsMenu_messages = (T_MFW_SMS_MSG*)ALLOC_MEMORY (g_max_messages * sizeof(T_MFW_SMS_MSG)  );
 	g_ListLength2 = sms_message_list(MFW_SMS_ALL, data->g_SmsMenu_messages, g_max_messages);
-#else    
+#else
     g_ListLength2 = sms_message_list(MFW_SMS_ALL, data->g_SmsMenu_messages, MAX_MESSAGES);
-#endif   
+#endif
     //NM 22.8 msgsLoadInfoDefaults2(&DisplayInfo);
 
 
@@ -1650,10 +1650,10 @@
    	/* SPR 2139, Removed call to dialog handler, as not needed*/
 
 	// Feb 24, 2005 REF: CRR MMI-SPR-29102 xnkulkar
-	// As the user has already confirmed that all SMS messages are to be deleted, ''End All' key 
+	// As the user has already confirmed that all SMS messages are to be deleted, ''End All' key
        // press is to be ignored. Call function mmi_dialog_information_screen_delete_all() instead of
        // mmi_dialog_information_screen_forever().
-       
+
 	// data->waiting_win = mmi_dialog_information_screen_forever(win,TxtPleaseWait, NULL, COLOUR_STATUS_WAIT);
 
 	data->waiting_win = mmi_dialog_information_screen_delete_all(win,TxtPleaseWait, NULL, COLOUR_STATUS_WAIT);
@@ -1662,14 +1662,14 @@
       	/* for the MFW EVENT "E_SMS_OK"           */
 
     	g_ListLength2 --;
-	 /*a0393213 OMAPS00109953 - memory passed as parameter*/	
-    	sms_msg_delete(data->g_SmsMenu_messages[g_ListLength2].index,data->g_SmsMenu_messages[g_ListLength2].mem);	
+	 /*a0393213 OMAPS00109953 - memory passed as parameter*/
+    	sms_msg_delete(data->g_SmsMenu_messages[g_ListLength2].index,data->g_SmsMenu_messages[g_ListLength2].mem);
     	}
 	//May 27, 2005    MMI-FIX-29869 x0018858
 #ifdef FF_MMI_SMS_DYNAMIC
         if (g_ListLength2 == 0)
 	FREE_MEMORY((U8*)data->g_SmsMenu_messages, g_max_messages * sizeof(T_MFW_SMS_MSG));
-#endif	
+#endif
 	/*SPR 2139, don't need "else" as empty list case handled earlier*/
     return 1;
 
@@ -1708,7 +1708,7 @@
 
     // If the same number then we get the alpha identifier
     cmhPHB_getMfwTagNt((UBYTE*)FFS_flashData.mbn_AlphId, 10, (UBYTE*)mail_alpha, &nlen);
-	
+
     mail_alpha[nlen] = '\0';
 
     return TRUE;
@@ -1934,7 +1934,7 @@
 	// change by Sasken on March 24th 2004
 	// Issue Number : SPR#15746
 	// TextId2 string changed to TxtActivated from TxtActivate
-	
+
 	if (FFS_flashData.ConcatenateStatus ==  TRUE )
 		TextId2    = TxtActivated;
 	else