FreeCalypso > hg > fc-tourmaline
comparison src/ui/bmi/mmiSatCall.c @ 162:0b97ee8bf778
mmiSatCall.c: bogotab fixes
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Wed, 18 Nov 2020 21:50:20 +0000 |
| parents | c0052fe355d3 |
| children |
comparison
equal
deleted
inserted
replaced
| 161:b89fc69b96e1 | 162:0b97ee8bf778 |
|---|---|
| 1 /******************************************************************************* | 1 /******************************************************************************* |
| 2 | 2 |
| 3 CONDAT (UK) | 3 CONDAT (UK) |
| 4 | 4 |
| 5 ******************************************************************************** | 5 ******************************************************************************** |
| 6 | 6 |
| 7 This software product is the property of Condat (UK) Ltd and may not be | 7 This software product is the property of Condat (UK) Ltd and may not be |
| 8 disclosed to any third party without the express permission of the owner. | 8 disclosed to any third party without the express permission of the owner. |
| 9 | 9 |
| 10 ******************************************************************************** | 10 ******************************************************************************** |
| 11 | 11 |
| 12 $Project name: Basic MMI | 12 $Project name: Basic MMI |
| 13 $Project code: BMI | 13 $Project code: BMI |
| 14 $Module: SMS | 14 $Module: SMS |
| 15 $File: mmiSatInfo.c | 15 $File: mmiSatInfo.c |
| 16 $Revision: 1.0 | 16 $Revision: 1.0 |
| 17 | 17 |
| 18 $Author: Condat(UK) | 18 $Author: Condat(UK) |
| 19 $Date: 25/10/00 | 19 $Date: 25/10/00 |
| 20 | 20 |
| 21 ******************************************************************************** | 21 ******************************************************************************** |
| 22 | 22 |
| 23 Description: | 23 Description: |
| 24 | 24 |
| 123 T_MMI_CONTROL mmi_control; | 123 T_MMI_CONTROL mmi_control; |
| 124 T_MFW_HND parent_win; | 124 T_MFW_HND parent_win; |
| 125 T_MFW_HND win; | 125 T_MFW_HND win; |
| 126 T_SAT_CMD *sat_command; /* pointer to sat_command in parent */ | 126 T_SAT_CMD *sat_command; /* pointer to sat_command in parent */ |
| 127 T_SAT_call_setup_parameter * call_setup_parameter; | 127 T_SAT_call_setup_parameter * call_setup_parameter; |
| 128 T_MFW_HND redial_tim; | 128 T_MFW_HND redial_tim; |
| 129 } T_sat_call_setup; | 129 } T_sat_call_setup; |
| 130 | 130 |
| 131 extern BOOL sat_call_active; // Marcus: Issue 1812: 13/03/2003 | 131 extern BOOL sat_call_active; // Marcus: Issue 1812: 13/03/2003 |
| 132 /* Nov 17, 2006 REF:DR:OMAPS00104580 x0039928 | 132 /* Nov 17, 2006 REF:DR:OMAPS00104580 x0039928 |
| 133 -Deleted Redial flag enabling/disabling code*/ | 133 -Deleted Redial flag enabling/disabling code*/ |
| 140 /******************************************************************************* | 140 /******************************************************************************* |
| 141 | 141 |
| 142 $Function: sat_call_setup_create | 142 $Function: sat_call_setup_create |
| 143 | 143 |
| 144 $Description: Creation of an instance for the SAT CALL dialog.Window must be | 144 $Description: Creation of an instance for the SAT CALL dialog.Window must be |
| 145 available after reception of SAT command only one instance. | 145 available after reception of SAT command only one instance. |
| 146 | 146 |
| 147 $Returns: mfw window handler | 147 $Returns: mfw window handler |
| 148 | 148 |
| 149 $Arguments: parent_window - Parent window handler | 149 $Arguments: parent_window - Parent window handler |
| 150 | 150 |
| 151 *******************************************************************************/ | 151 *******************************************************************************/ |
| 152 T_MFW_HND sat_call_setup_create (T_MFW_HND parent_window) | 152 T_MFW_HND sat_call_setup_create (T_MFW_HND parent_window) |
| 180 | 180 |
| 181 $Function: sat_call_setup_destroy | 181 $Function: sat_call_setup_destroy |
| 182 | 182 |
| 183 $Description: Destroy the sat call dialog. | 183 $Description: Destroy the sat call dialog. |
| 184 | 184 |
| 185 $Returns: none | 185 $Returns: none |
| 186 | 186 |
| 187 $Arguments: own_window - Current window | 187 $Arguments: own_window - Current window |
| 188 | 188 |
| 189 *******************************************************************************/ | 189 *******************************************************************************/ |
| 190 static void sat_call_setup_destroy (T_MFW_HND own_window) | 190 static void sat_call_setup_destroy (T_MFW_HND own_window) |
| 191 { | 191 { |
| 192 T_MFW_WIN * win_data = ((T_MFW_HDR *)own_window)->data; | 192 T_MFW_WIN * win_data = ((T_MFW_HDR *)own_window)->data; |
| 193 T_sat_call_setup * data = (T_sat_call_setup *)win_data->user; | 193 T_sat_call_setup * data = (T_sat_call_setup *)win_data->user; |
| 194 | 194 |
| 195 if (own_window == NULL) | 195 if (own_window == NULL) |
| 196 { | 196 { |
| 197 TRACE_EVENT ("Error : sat_call_setup_destroy called with NULL Pointer"); | 197 TRACE_EVENT ("Error : sat_call_setup_destroy called with NULL Pointer"); |
| 198 return; | 198 return; |
| 199 } | 199 } |
| 200 | 200 |
| 201 if (data) | 201 if (data) |
| 202 { | 202 { |
| 203 /* | 203 /* |
| 204 * Delete WIN Handler | 204 * Delete WIN Handler |
| 216 | 216 |
| 217 $Function: sat_call_setup_exec | 217 $Function: sat_call_setup_exec |
| 218 | 218 |
| 219 $Description: Dialog function for sat_call_setup_exec window. | 219 $Description: Dialog function for sat_call_setup_exec window. |
| 220 | 220 |
| 221 $Returns: none | 221 $Returns: none |
| 222 | 222 |
| 223 $Arguments: win - current window | 223 $Arguments: win - current window |
| 224 event - window event | 224 event - window event |
| 225 value - unique id | 225 value - unique id |
| 226 call_setup_parameter - call setup info | 226 call_setup_parameter - call setup info |
| 227 | 227 |
| 228 *******************************************************************************/ | 228 *******************************************************************************/ |
| 229 static void sat_call_setup_exec (T_MFW_HND win, USHORT event, SHORT value, T_SAT_call_setup_parameter * call_setup_parameter) | 229 static void sat_call_setup_exec (T_MFW_HND win, USHORT event, SHORT value, T_SAT_call_setup_parameter * call_setup_parameter) |
| 230 { | 230 { |
| 231 | 231 |
| 249 data->call_setup_parameter = call_setup_parameter; | 249 data->call_setup_parameter = call_setup_parameter; |
| 250 | 250 |
| 251 /* SPR#1700 - DS - Modified so SAT will not display "Setup call?" if the first alpha id has been supplied by the SIM | 251 /* SPR#1700 - DS - Modified so SAT will not display "Setup call?" if the first alpha id has been supplied by the SIM |
| 252 */ | 252 */ |
| 253 | 253 |
| 254 if (call_setup_parameter->TextString) /* Alpha id supplied by SIM */ | 254 if (call_setup_parameter->TextString) /* Alpha id supplied by SIM */ |
| 255 { | 255 { |
| 256 /* 01-06-2006, x0045876 (OMAPS00070741) */ | 256 /* 01-06-2006, x0045876 (OMAPS00070741) */ |
| 257 dlg_initDisplayData_TextStr( &display_info, TxtAccept, TxtReject, call_setup_parameter->TextString, " ", COLOUR_STATUS); | 257 dlg_initDisplayData_TextStr( &display_info, TxtAccept, TxtReject, call_setup_parameter->TextString, " ", COLOUR_STATUS); |
| 258 //x0035544 Feb 07, 2006 DR:OMAPS00061467 | 258 //x0035544 Feb 07, 2006 DR:OMAPS00061467 |
| 259 #ifdef FF_MMI_SAT_ICON | 259 #ifdef FF_MMI_SAT_ICON |
| 260 if(call_setup_parameter->IconInfo.dst != NULL) | 260 if(call_setup_parameter->IconInfo.dst != NULL) |
| 261 { | 261 { |
| 262 display_info.IconData.width = call_setup_parameter->IconInfo.width; | 262 display_info.IconData.width = call_setup_parameter->IconInfo.width; |
| 263 display_info.IconData.height = call_setup_parameter->IconInfo.height; | 263 display_info.IconData.height = call_setup_parameter->IconInfo.height; |
| 264 display_info.IconData.dst = call_setup_parameter->IconInfo.dst; | 264 display_info.IconData.dst = call_setup_parameter->IconInfo.dst; |
| 265 display_info.IconData.selfExplanatory = call_setup_parameter->IconInfo.selfExplanatory; | 265 display_info.IconData.selfExplanatory = call_setup_parameter->IconInfo.selfExplanatory; |
| 266 } | |
| 267 #endif | |
| 268 | |
| 266 } | 269 } |
| 267 #endif | |
| 268 | |
| 269 } | |
| 270 | 270 |
| 271 else /* No alpha id supplied so show "Setup call?" */ | 271 else /* No alpha id supplied so show "Setup call?" */ |
| 272 { | 272 { |
| 273 //x0035544 Mar 14, 2006 DR:OMAPS00061467 | 273 //x0035544 Mar 14, 2006 DR:OMAPS00061467 |
| 274 //added missing '?' to the string "Setup call" as below | 274 //added missing '?' to the string "Setup call" as below |
| 311 case SAT_CALL_END: | 311 case SAT_CALL_END: |
| 312 | 312 |
| 313 TRACE_EVENT("sat_call_setup_exec(): SAT_CALL_END"); | 313 TRACE_EVENT("sat_call_setup_exec(): SAT_CALL_END"); |
| 314 | 314 |
| 315 /* Nov 17, 2006 REF:DR:OMAPS00104580 x0039928 | 315 /* Nov 17, 2006 REF:DR:OMAPS00104580 x0039928 |
| 316 -Deleted Redial flag enabling/disabling code*/ | 316 -Deleted Redial flag enabling/disabling code*/ |
| 317 | 317 |
| 318 /* clean up after end of call */ | 318 /* clean up after end of call */ |
| 319 sat_call_setup_destroy(win); | 319 sat_call_setup_destroy(win); |
| 320 break; | 320 break; |
| 321 | 321 |
| 322 default: | 322 default: |
| 323 TRACE_EVENT("sat_call_setup_exec() unexpected event"); | 323 TRACE_EVENT("sat_call_setup_exec() unexpected event"); |
| 324 return; | 324 return; |
| 325 } | 325 } |
| 326 | |
| 327 } | 326 } |
| 328 | 327 |
| 329 /******************************************************************************* | 328 /******************************************************************************* |
| 330 | 329 |
| 331 $Function: sat_call_setup_cb | 330 $Function: sat_call_setup_cb |
| 332 | 331 |
| 333 $Description: Callback function information dialog. | 332 $Description: Callback function information dialog. |
| 334 | 333 |
| 335 $Returns: none | 334 $Returns: none |
| 336 | 335 |
| 337 $Arguments: win - current window | 336 $Arguments: win - current window |
| 338 identifier - unique id | 337 identifier - unique id |
| 339 reason - window event id | 338 reason - window event id |
| 340 | 339 |
| 341 *******************************************************************************/ | 340 *******************************************************************************/ |
| 342 | 341 |
| 343 static void sat_call_setup_cb(T_MFW_HND win, UBYTE identifier, UBYTE reason) | 342 static void sat_call_setup_cb(T_MFW_HND win, UBYTE identifier, UBYTE reason) |
| 344 { | 343 { |
| 391 | 390 |
| 392 $Function: sat_call_setup_tim_cb | 391 $Function: sat_call_setup_tim_cb |
| 393 | 392 |
| 394 $Description: Callback function for the redial timer. | 393 $Description: Callback function for the redial timer. |
| 395 | 394 |
| 396 $Returns: Execution status | 395 $Returns: Execution status |
| 397 | 396 |
| 398 $Arguments: event - window event | 397 $Arguments: event - window event |
| 399 tc - timer info | 398 tc - timer info |
| 400 | 399 |
| 401 *******************************************************************************/ | 400 *******************************************************************************/ |
| 402 static int sat_call_setup_tim_cb (T_MFW_EVENT event, T_MFW_TIM *tc) | 401 static int sat_call_setup_tim_cb (T_MFW_EVENT event, T_MFW_TIM *tc) |
| 403 { | 402 { |
| 404 T_MFW_HND win = mfw_parent (mfw_header()); | 403 T_MFW_HND win = mfw_parent (mfw_header()); |
