changeset 163:d6bc1298a377

mmiSatClassE.c: bogotab fixes
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 18 Nov 2020 22:26:23 +0000
parents 0b97ee8bf778
children 0b8ebd4dd2ef
files src/ui/bmi/mmiSatClassE.c
diffstat 1 files changed, 41 insertions(+), 46 deletions(-) [+]
line wrap: on
line diff
--- a/src/ui/bmi/mmiSatClassE.c	Wed Nov 18 21:50:20 2020 +0000
+++ b/src/ui/bmi/mmiSatClassE.c	Wed Nov 18 22:26:23 2020 +0000
@@ -11,19 +11,18 @@
 
  $Project name: Basic MMI
  $Project code: BMI (6349)
- $Module:   MMI
- $File:       MmiSatClassE.c
- $Revision:   1.0
+ $Module:	MMI
+ $File:		MmiSatClassE.c
+ $Revision:	1.0
 
- $Author:   Condat(UK)
- $Date:       13/03/03
+ $Author:	Condat(UK)
+ $Date:		13/03/03
 
 ********************************************************************************
 
  Description:   Contains the implementation of SAT Class E
 
 
-
 ********************************************************************************
 
  $History: MmiSatClassE.c
@@ -189,9 +188,9 @@
      */
     data->mmi_control.dialog   = (T_DIALOG_FUNC)sat_class_e_exec;
     data->mmi_control.data     = data;
-    data->parent_win             = parent_window;
-    win                                 = ((T_MFW_HDR *)data->win)->data;
-    win->user                        = (MfwUserDataPtr)data;
+    data->parent_win           = parent_window;
+    win                        = ((T_MFW_HDR *)data->win)->data;
+    win->user                  = (MfwUserDataPtr)data;
 
     /*
      * return window handle
@@ -205,11 +204,11 @@
  $Function:     sat_open_channel_cb
 
  $Description:  Callback for accept/reject dialog.
- $Returns:       None.
+ $Returns:      None.
 
  $Arguments:  win: current window
-                    identifier: unique id
-                    reason: event id
+              identifier: unique id
+              reason: event id
 
 *******************************************************************************/
 static void sat_open_channel_cb(T_MFW_HND win, UBYTE identifier, UBYTE reason)
@@ -248,12 +247,11 @@
 
  $Returns:      None.
 
- $Arguments:  alert_dialog: window handle.
+ $Arguments:    alert_dialog: window handle.
 
 *******************************************************************************/
 static void sat_class_e_dialog_destroy(T_MFW_HND win)
 {
-
     T_MFW_WIN       * win_data;
     T_sat_open_channel * data;
 
@@ -297,11 +295,11 @@
  $Function:     sat_class_e_cb
 
  $Description:  Callback for Sat Class E dialogs.
- $Returns:       None.
+ $Returns:      None.
 
  $Arguments:  win: current window
-                    identifier: unique id
-                    reason: event id
+              identifier: unique id
+              reason: event id
 
 *******************************************************************************/
 static void sat_class_e_cb(T_MFW_HND win, UBYTE identifier, UBYTE reason)
@@ -318,10 +316,10 @@
     case INFO_KCD_LEFT:
     case INFO_KCD_RIGHT:
     case INFO_TIMEOUT:
-
         /* Destroy the dialog */
         sat_class_e_dialog_destroy(win);
         break;
+
     default:
         break;
     }
@@ -331,21 +329,20 @@
 
  $Function:    	sat_class_e_exec
 
- $Description:	      Dialog function for Sat Class E window.
+ $Description:  Dialog function for Sat Class E window.
 
- $Returns:		none
+ $Returns:	none
 
- $Arguments:	      win - current window
- 				event - window event
- 				value - unique id
- 				call_setup_parameter - call setup info
+ $Arguments:    win - current window
+		event - window event
+		value - unique id
+		call_setup_parameter - call setup info
 
  SPR#2321 - DS - Corrected misleading comments.
 
 *******************************************************************************/
 void sat_class_e_exec (T_MFW_HND win, USHORT event, SHORT value,  T_SAT_CMD * sat_command)
 {
-
     T_MFW_WIN       * win_data;
     T_sat_open_channel * data;
     char* text_string;
@@ -389,7 +386,7 @@
             if (sat_command != NULL)
             {
 
-		  TRACE_EVENT_P2("dcs: %x, len: %d", sat_command->c.open.alpha_id.code, sat_command->c.open.alpha_id.len);
+		TRACE_EVENT_P2("dcs: %x, len: %d", sat_command->c.open.alpha_id.code, sat_command->c.open.alpha_id.len);
 
                 /* Alpha identifier */
 
@@ -405,16 +402,16 @@
                     data->alpha_id = NULL;
                 }
             }
-	     else
-	     {
-	     	     TRACE_ERROR("ERROR: NULL sat_command!");
-	     }
+	    else
+	    {
+		TRACE_ERROR("ERROR: NULL sat_command!");
+	    }
 
             if (data->alpha_id)
             {
                 text_string = data->alpha_id;
 #ifdef NO_ASCIIZ/*MC SPR 940/2 Add tag to Unicode strings so info dialog displays them correctly*/
-		   sat_add_unicode_tag_if_needed(text_string);
+		sat_add_unicode_tag_if_needed(text_string);
 #endif
             }
             else
@@ -422,15 +419,14 @@
                 text_string = "Open Channel"; //Need to implement for Chinese
             }
 
-
             dlg_initDisplayData_TextStr( &display_info, TxtAccept, TxtReject, text_string, NULL, COLOUR_STATUS);
             dlg_initDisplayData_events( &display_info, (T_VOID_FUNC)sat_open_channel_cb, FOREVER, KEY_LEFT|KEY_RIGHT );
 
             display_info.Identifier   = event;
 
             /*
-            * Call Info Screen
-            */
+             * Call Info Screen
+             */
             info_dialog (win, &display_info);
 
             break;
@@ -466,7 +462,7 @@
             {
                 text_string = data->alpha_id;
 #ifdef NO_ASCIIZ/*MC SPR 940/2 Add tag to Unicode strings so info dialog displays them correctly*/
-		   sat_add_unicode_tag_if_needed(text_string);
+		sat_add_unicode_tag_if_needed(text_string);
 #endif
             }
             else
@@ -474,22 +470,21 @@
                 text_string = "Closing Channel"; //Need to implement for Chinese
             }
 
-
             dlg_initDisplayData_TextStr( &display_info, TxtNull, TxtNull, text_string, NULL, COLOUR_STATUS);
             dlg_initDisplayData_events( &display_info, (T_VOID_FUNC)sat_class_e_cb, THREE_SECS, KEY_LEFT|KEY_RIGHT );
 
             display_info.Identifier   = event;
 
             /*
-            * Call Info Screen
-            */
+             * Call Info Screen
+             */
             info_dialog (win, &display_info);
 
             break;
 
         case SAT_SEND_DATA:
 
-	     TRACE_EVENT("SAT_SEND_DATA");
+	    TRACE_EVENT("SAT_SEND_DATA");
 
             /* Start an info screen to inform the user that the SIM is sending data */
             data->sat_command = sat_command;
@@ -518,7 +513,7 @@
             {
                 text_string = data->alpha_id;
 #ifdef NO_ASCIIZ/*MC SPR 940/2 Add tag to Unicode strings so info dialog displays them correctly*/
-		   sat_add_unicode_tag_if_needed(text_string);
+		sat_add_unicode_tag_if_needed(text_string);
 #endif
             }
             else
@@ -532,15 +527,15 @@
             display_info.Identifier   = event;
 
             /*
-            * Call Info Screen
-            */
+             * Call Info Screen
+             */
             info_dialog (win, &display_info);
 
             break;
 
         case SAT_RECEIVE_DATA:
 
-	     TRACE_EVENT("SAT_RECEIVE_DATA");
+	    TRACE_EVENT("SAT_RECEIVE_DATA");
 
             /* Start an info screen to inform the user that the SIM is receiving data */
             data->sat_command = sat_command;
@@ -569,7 +564,7 @@
             {
                 text_string = data->alpha_id;
 #ifdef NO_ASCIIZ/*MC SPR 940/2 Add tag to Unicode strings so info dialog displays them correctly*/
-		   sat_add_unicode_tag_if_needed(text_string);
+		sat_add_unicode_tag_if_needed(text_string);
 #endif
             }
             else
@@ -583,8 +578,8 @@
             display_info.Identifier   = event;
 
             /*
-            * Call Info Screen
-            */
+             * Call Info Screen
+             */
             info_dialog (win, &display_info);
 
             break;