FreeCalypso > hg > fc-tourmaline
diff src/ui/bmi/mmiSatClassE.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 | d6bc1298a377 |
line wrap: on
line diff
--- a/src/ui/bmi/mmiSatClassE.c Sun Nov 08 05:12:05 2020 +0000 +++ b/src/ui/bmi/mmiSatClassE.c Sun Nov 08 06:39:16 2020 +0000 @@ -159,10 +159,10 @@ $Description: Creation of an instance for the SAT Class E dialog. - $Returns: mfw window handler + $Returns: mfw window handler $Arguments: parent_window - Parent window handler - + *******************************************************************************/ T_MFW_HND sat_class_e_create (T_MFW_HND parent_window) { @@ -215,12 +215,12 @@ static void sat_open_channel_cb(T_MFW_HND win, UBYTE identifier, UBYTE reason) { TRACE_FUNCTION("sat_open_channel_cb()"); - + if (win EQ NULL) { return; } - + switch (reason) { case INFO_KCD_LEFT: /* user has accepted Open Channel request */ @@ -254,12 +254,12 @@ static void sat_class_e_dialog_destroy(T_MFW_HND win) { - T_MFW_WIN * win_data; + T_MFW_WIN * win_data; T_sat_open_channel * data; - + TRACE_FUNCTION ("sat_class_e_dialog_destroy()"); - if (win == NULL) + if (win == NULL) { TRACE_ERROR("ERROR: win is NULL!"); return; @@ -274,7 +274,7 @@ } data = (T_sat_open_channel *)win_data->user; - + if (win != NULL) { if (data) @@ -307,12 +307,12 @@ static void sat_class_e_cb(T_MFW_HND win, UBYTE identifier, UBYTE reason) { TRACE_FUNCTION("sat_class_e_cb()"); - + if (win EQ NULL) { return; } - + switch (reason) { case INFO_KCD_LEFT: @@ -341,20 +341,20 @@ 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_MFW_WIN * win_data; T_sat_open_channel * data; char* text_string; - + T_DISPLAY_DATA display_info; - + TRACE_FUNCTION ("sat_class_e_exec()"); - if (win == NULL) + if (win == NULL) { TRACE_ERROR("ERROR: win is NULL!"); return; @@ -375,22 +375,22 @@ TRACE_ERROR("ERROR: data is NULL!"); return; } - + switch (event) { case SAT_OPEN_CHANNEL: TRACE_EVENT("SAT_OPEN_CHANNEL"); - + /* Start an info screen to accept or reject the Open Channel request */ - data->sat_command = sat_command; + data->sat_command = sat_command; /* Extract the data from the Open Channel sat command */ 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); - + /* Alpha identifier */ /* Check alpha identifier has valid length */ @@ -415,30 +415,30 @@ 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); -#endif +#endif } else { 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 */ info_dialog (win, &display_info); - + break; - + case SAT_CLOSE_CHANNEL: TRACE_EVENT("SAT_CLOSE_CHANNEL"); - + /* Start an info screen to inform the user that the SIM is closing the open channel*/ data->sat_command = sat_command; @@ -446,7 +446,7 @@ if (sat_command != NULL) { TRACE_EVENT_P2("dcs: %x, len: %d", sat_command->c.close.alpha_id.code, sat_command->c.close.alpha_id.len); - + /* Alpha identifier */ /* SPR#2321 - DS - Check alpha identifier has valid length */ @@ -467,30 +467,30 @@ 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); -#endif +#endif } else { 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 */ info_dialog (win, &display_info); - + break; case 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; @@ -498,7 +498,7 @@ if (sat_command != NULL) { TRACE_EVENT_P2("dcs: %x, len: %d", sat_command->c.send.alpha_id.code, sat_command->c.send.alpha_id.len); - + /* Alpha identifier */ /* SPR#2321 - DS - Check alpha identifier has valid length */ @@ -519,23 +519,23 @@ 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); -#endif +#endif } else { text_string = "Sending Data"; //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 */ info_dialog (win, &display_info); - + break; case SAT_RECEIVE_DATA: @@ -549,7 +549,7 @@ if (sat_command != NULL) { TRACE_EVENT_P2("dcs: %x, len: %d", sat_command->c.receive.alpha_id.code, sat_command->c.receive.alpha_id.len); - + /* Alpha identifier */ /* SPR#2321 - DS - Check alpha identifier has valid length */ @@ -570,23 +570,23 @@ 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); -#endif +#endif } else { text_string = "Receiving Data"; //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 */ info_dialog (win, &display_info); - + break; default: