comparison src/ui/bmi/mmiEm.c @ 148:24ea5d2ad89b

mmiEm.c: bogotab fixes
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 16 Nov 2020 05:53:43 +0000
parents c0052fe355d3
children
comparison
equal deleted inserted replaced
147:1075ec44acca 148:24ea5d2ad89b
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 (6349) 13 $Project code: BMI (6349)
14 $Module: MMI 14 $Module: MMI
15 $File: MmiEm.c 15 $File: MmiEm.c
16 $Revision: 1.0 16 $Revision: 1.0
17 17
18 $Author: Condat(UK) 18 $Author: Condat(UK)
19 $Date: 23/09/02 19 $Date: 23/09/02
20 20
21 ******************************************************************************** 21 ********************************************************************************
22 22
23 Description: 23 Description:
24 24
30 Apr 24, 2006 ERT: OMAPS00067603 x0043642 30 Apr 24, 2006 ERT: OMAPS00067603 x0043642
31 Description: Engineering mode 31 Description: Engineering mode
32 Solution: Added new engineering mode functionalities to satisfy Neptune engineering mode 32 Solution: Added new engineering mode functionalities to satisfy Neptune engineering mode
33 requirements. 33 requirements.
34 34
35 35 23/09/02 Original Condat(UK) BMI version.
36 23/09/02 Original Condat(UK) BMI version.
37 36
38 $End 37 $End
39
40
41 38
42 39
43 ******************************************************************************* 40 *******************************************************************************
44 41
45 Include Files 42 Include Files
162 T_MFW_HND parent_win; 159 T_MFW_HND parent_win;
163 160
164 /* associated handlers */ 161 /* associated handlers */
165 162
166 T_MFW_HND kbd; /*keyboard handler*/ 163 T_MFW_HND kbd; /*keyboard handler*/
167 T_MFW_HND tim; /*timer handler*/ 164 T_MFW_HND tim; /*timer handler*/
168 165
169 /* SPR#1428 - SH - New Editor changes */ 166 /* SPR#1428 - SH - New Editor changes */
170 #ifdef NEW_EDITOR 167 #ifdef NEW_EDITOR
171 T_ED_DATA * editor; 168 T_ED_DATA * editor;
172 T_ED_ATTR editor_attr; 169 T_ED_ATTR editor_attr;
173 #else /* NEW_EDITOR */ 170 #else /* NEW_EDITOR */
174 T_MFW_HND edt; /*mfw editor handler*/ 171 T_MFW_HND edt; /*mfw editor handler*/
175 MfwEdtAttr editor_data; /*editor config data*/ 172 MfwEdtAttr editor_data; /*editor config data*/
176 #endif /* NEW_EDITOR */ 173 #endif /* NEW_EDITOR */
177 174
178 /* internal data */ 175 /* internal data */
179 char edtBuffer[EM_EDITOR_SIZE*2];/*SPR 1757*//*editor contentbuffer*/ 176 char edtBuffer[EM_EDITOR_SIZE*2];/*SPR 1757*//*editor contentbuffer*/
180 MfwEmDataType CurrentWindow; /*type of data being displayed*/ 177 MfwEmDataType CurrentWindow; /*type of data being displayed*/
181 178
182 } tEmData; 179 } tEmData;
183 180
184 181
185 /* 182 /*
191 int Mmi_em_kbd_cb(T_MFW_EVENT event,T_MFW_KBD * kc ); //Handles key presses in the display window 188 int Mmi_em_kbd_cb(T_MFW_EVENT event,T_MFW_KBD * kc ); //Handles key presses in the display window
192 int Mmi_em_win_cb(T_MFW_EVENT event,T_MFW_WIN * win );// Handles the information display. 189 int Mmi_em_win_cb(T_MFW_EVENT event,T_MFW_WIN * win );// Handles the information display.
193 void Mmi_em_tim_cb(T_MFW_EVENT event,T_MFW_TIM * t); //Handles the timer events. 190 void Mmi_em_tim_cb(T_MFW_EVENT event,T_MFW_TIM * t); //Handles the timer events.
194 191
195 192
196
197
198 /* 193 /*
199 **************************************Public functions**************************************** 194 **************************************Public functions****************************************
200 */ 195 */
201 196
202 197
203 /******************************************************************************* 198 /*******************************************************************************
204 199
205 $Function: mmi_em_init() 200 $Function: mmi_em_init()
206 201
207 $Description: initialise Engineering Mode module 202 $Description: initialise Engineering Mode module
208 203
209 $Returns: None 204 $Returns: None
210 205
211 $Arguments: None 206 $Arguments: None
212 207
213 *******************************************************************************/ 208 *******************************************************************************/
214 void mmi_em_init(void) 209 void mmi_em_init(void)
215 { 210 {
216 Mfw_em_init(); 211 Mfw_em_init();
217 212 }
218 } 213
219 214 /*******************************************************************************
220 /******************************************************************************* 215
221 216 $Function: mmi_em_enit()
222 $Function: mmi_em_enit() 217
223 218 $Description: exit Engineering Mode module
224 $Description: exit Engineering Mode module 219
225 220 $Returns: None
226 $Returns: None 221
227 222 $Arguments: None
228 $Arguments: None
229 223
230 *******************************************************************************/ 224 *******************************************************************************/
231 void mmi_em_exit(void) 225 void mmi_em_exit(void)
232 { 226 {
233 Mfw_em_exit(); 227 Mfw_em_exit();
234 } 228 }
235 229
236 //#ifdef TI_PS_FF_EM 230 //#ifdef TI_PS_FF_EM
237 #if defined (TI_PS_FF_EM) || defined (MMI_EM_ENABLED) 231 #if defined (TI_PS_FF_EM) || defined (MMI_EM_ENABLED)
238 /******************************************************************************* 232 /*******************************************************************************
239 233
240 $Function: mmi_em_start_eng_mode_menus() 234 $Function: mmi_em_start_eng_mode_menus()
241 235
242 $Description: starts the emergency mode menu 236 $Description: starts the emergency mode menu
243 237
244 $Returns: None 238 $Returns: None
245 239
246 $Arguments: parent window 240 $Arguments: parent window
247 241
248 *******************************************************************************/ 242 *******************************************************************************/
249 void mmi_em_start_eng_mode_menus(T_MFW_HND parent) 243 void mmi_em_start_eng_mode_menus(T_MFW_HND parent)
250 { 244 {
251 TRACE_EVENT("mmi_em_start_eng_mode_menus"); 245 TRACE_EVENT("mmi_em_start_eng_mode_menus");
252 bookMenuStart(parent, EngModeAttributes(), NULL); 246 bookMenuStart(parent, EngModeAttributes(), NULL);
253
254 } 247 }
255 #endif 248 #endif
256 249
257 #ifndef NEPTUNE_BOARD 250 #ifndef NEPTUNE_BOARD
258 251
259 /******************************************************************************* 252 /*******************************************************************************
260 253
261 $Function: Mmi_em_display_mobile_info_data() 254 $Function: Mmi_em_display_mobile_info_data()
262 255
263 $Description: Called from menu; begins process to display Mobile Information 256 $Description: Called from menu; begins process to display Mobile Information
264 257
265 $Returns: status integer 258 $Returns: status integer
266 259
267 $Arguments: menu and item (not used) 260 $Arguments: menu and item (not used)
268 261
269 *******************************************************************************/ 262 *******************************************************************************/
270
271 263
272 int Mmi_em_display_mobile_info_data(MfwMnu* m, MfwMnuItem* i) 264 int Mmi_em_display_mobile_info_data(MfwMnu* m, MfwMnuItem* i)
273 { T_MFW_HND parent = mfwParent( mfw_header()); 265 { T_MFW_HND parent = mfwParent( mfw_header());
274 TRACE_EVENT_P1("Mmi_em_display_mobile_info(), parent win %d", parent); 266 TRACE_EVENT_P1("Mmi_em_display_mobile_info(), parent win %d", parent);
275 TRACE_EVENT_P1("Memory left:%d", mfwCheckMemoryLeft()); 267 TRACE_EVENT_P1("Memory left:%d", mfwCheckMemoryLeft());
276 Mmi_em_create(parent, EM_MOBILE_INFO); 268 Mmi_em_create(parent, EM_MOBILE_INFO);
277 269
278 return MFW_EVENT_CONSUMED; 270 return MFW_EVENT_CONSUMED;
279 } 271 }
280 /******************************************************************************* 272 /*******************************************************************************
281 273
282 $Function: Mmi_em_display_serving_cell_params() 274 $Function: Mmi_em_display_serving_cell_params()
283 275
284 $Description: Called from menu; begins process to display Serving Cell parameters 276 $Description: Called from menu; begins process to display Serving Cell parameters
285 277
286 $Returns: status integer 278 $Returns: status integer
287 279
288 $Arguments: menu and item (not used) 280 $Arguments: menu and item (not used)
289 281
290 *******************************************************************************/ 282 *******************************************************************************/
291 283
292 int Mmi_em_display_serving_cell_params(MfwMnu* m, MfwMnuItem* i) 284 int Mmi_em_display_serving_cell_params(MfwMnu* m, MfwMnuItem* i)
293 { T_MFW_HND parent = mfwParent( mfw_header()); 285 { T_MFW_HND parent = mfwParent( mfw_header());
294 TRACE_EVENT_P1("MMiEm, Memory left:%d", mfwCheckMemoryLeft()); 286 TRACE_EVENT_P1("MMiEm, Memory left:%d", mfwCheckMemoryLeft());
295 Mmi_em_create(parent, EM_SERVING_CELL_PARAMS); 287 Mmi_em_create(parent, EM_SERVING_CELL_PARAMS);
296 288
297 return MFW_EVENT_CONSUMED; 289 return MFW_EVENT_CONSUMED;
298 } 290 }
299 /******************************************************************************* 291 /*******************************************************************************
300 292
301 $Function: Mmi_em_display_neighbour_cell_params() 293 $Function: Mmi_em_display_neighbour_cell_params()
302 294
303 $Description: Called from menu; begins process to display Neighbouring Cell parameters 295 $Description: Called from menu; begins process to display Neighbouring Cell parameters
304 296
305 $Returns: status integer 297 $Returns: status integer
306 298
307 $Arguments: menu and item (not used) 299 $Arguments: menu and item (not used)
308 300
309 *******************************************************************************/ 301 *******************************************************************************/
310 int Mmi_em_display_neighbour_cell_params(MfwMnu* m, MfwMnuItem* i) 302 int Mmi_em_display_neighbour_cell_params(MfwMnu* m, MfwMnuItem* i)
311 { T_MFW_HND parent = mfwParent( mfw_header()); 303 { T_MFW_HND parent = mfwParent( mfw_header());
312 TRACE_EVENT_P1("MMiEm, Memory left:%d", mfwCheckMemoryLeft()); 304 TRACE_EVENT_P1("MMiEm, Memory left:%d", mfwCheckMemoryLeft());
313 Mmi_em_create(parent, EM_NEIGHBOURING_CELL_PARAMS); 305 Mmi_em_create(parent, EM_NEIGHBOURING_CELL_PARAMS);
314 306
315 return MFW_EVENT_CONSUMED; 307 return MFW_EVENT_CONSUMED;
316 } 308 }
317 309
318 /******************************************************************************* 310 /*******************************************************************************
319 311
320 $Function: Mmi_em_display_location_params() 312 $Function: Mmi_em_display_location_params()
321 313
322 $Description: Called from menu; begins process to display Locationparameters 314 $Description: Called from menu; begins process to display Locationparameters
323 315
324 $Returns: status integer 316 $Returns: status integer
325 317
326 $Arguments: menu and item (not used) 318 $Arguments: menu and item (not used)
327 319
328 *******************************************************************************/ 320 *******************************************************************************/
329 int Mmi_em_display_location_params(MfwMnu* m, MfwMnuItem*i ) 321 int Mmi_em_display_location_params(MfwMnu* m, MfwMnuItem*i )
330 { T_MFW_HND parent = mfwParent( mfw_header()); 322 { T_MFW_HND parent = mfwParent( mfw_header());
331 323
332 Mmi_em_create(parent, EM_LOCATION_PARAMS); 324 Mmi_em_create(parent, EM_LOCATION_PARAMS);
333 325
334 return MFW_EVENT_CONSUMED; 326 return MFW_EVENT_CONSUMED;
335 } 327 }
336 328
337 /******************************************************************************* 329 /*******************************************************************************
338 330
339 $Function: Mmi_em_display_ciph_hop_DTX_params() 331 $Function: Mmi_em_display_ciph_hop_DTX_params()
340 332
341 $Description: Called from menu; begins process to display Ciphering, hopping and 333 $Description: Called from menu; begins process to display Ciphering, hopping and
342 discontinuous transmission parameters 334 discontinuous transmission parameters
343 335
344 $Returns: status integer 336 $Returns: status integer
345 337
346 $Arguments: menu and item (not used) 338 $Arguments: menu and item (not used)
347 339
348 *******************************************************************************/ 340 *******************************************************************************/
349 int Mmi_em_display_ciph_hop_DTX_params(MfwMnu* m, MfwMnuItem* i) 341 int Mmi_em_display_ciph_hop_DTX_params(MfwMnu* m, MfwMnuItem* i)
350 { T_MFW_HND parent = mfwParent( mfw_header()); 342 { T_MFW_HND parent = mfwParent( mfw_header());
351 TRACE_EVENT_P1("MMiEm, Memory left:%d", mfwCheckMemoryLeft()); 343 TRACE_EVENT_P1("MMiEm, Memory left:%d", mfwCheckMemoryLeft());
352 Mmi_em_create(parent, EM_CIPH_HOP_DTX_PARAMS); 344 Mmi_em_create(parent, EM_CIPH_HOP_DTX_PARAMS);
353 345
354 return MFW_EVENT_CONSUMED; 346 return MFW_EVENT_CONSUMED;
355 } 347 }
356 348
357 /******************************************************************************* 349 /*******************************************************************************
358 350
359 $Function: Mmi_em_display_GPRS_params() 351 $Function: Mmi_em_display_GPRS_params()
360 352
361 $Description: Called from menu; begins process to display GPRS specific parameters 353 $Description: Called from menu; begins process to display GPRS specific parameters
362 354
363 $Returns: status integer 355 $Returns: status integer
364 356
365 $Arguments: menu and item (not used) 357 $Arguments: menu and item (not used)
366 358
367 *******************************************************************************/ 359 *******************************************************************************/
368 360
369 int Mmi_em_display_GPRS_params(MfwMnu* m, MfwMnuItem* i) 361 int Mmi_em_display_GPRS_params(MfwMnu* m, MfwMnuItem* i)
370 { T_MFW_HND parent = mfwParent( mfw_header()); 362 { T_MFW_HND parent = mfwParent( mfw_header());
371 TRACE_EVENT_P1("MMiEm, Memory left:%d", mfwCheckMemoryLeft()); 363 TRACE_EVENT_P1("MMiEm, Memory left:%d", mfwCheckMemoryLeft());
372 Mmi_em_create(parent, EM_GPRS_PARAMS); 364 Mmi_em_create(parent, EM_GPRS_PARAMS);
373 365
374 return MFW_EVENT_CONSUMED; 366 return MFW_EVENT_CONSUMED;
375 } 367 }
376 368
377 #else /* if NEPTUNE_BOARD */ 369 #else /* if NEPTUNE_BOARD */
378 370
379 int Mmi_em_start(MfwMnu* m, MfwMnuItem* i) 371 int Mmi_em_start(MfwMnu* m, MfwMnuItem* i)
394 EmRequest = SAT_REQUEST_SENT; 386 EmRequest = SAT_REQUEST_SENT;
395 387
396 return MFW_EVENT_CONSUMED; 388 return MFW_EVENT_CONSUMED;
397 } 389 }
398 390
399
400 #endif /* ifndef NEPTUNE_BOARD */ 391 #endif /* ifndef NEPTUNE_BOARD */
401 /* 392 /*
402 ************************************Internal Functions************************************** 393 ************************************Internal Functions**************************************
403 */ 394 */
404 395
405 /******************************************************************************* 396 /*******************************************************************************
406 397
407 $Function: Mmi_em_create() 398 $Function: Mmi_em_create()
408 399
409 $Description: Creates emergency mode display window 400 $Description: Creates emergency mode display window
410 401
411 $Returns: window handle 402 $Returns: window handle
412 403
413 $Arguments: parent window, kind of data to be displayed 404 $Arguments: parent window, kind of data to be displayed
414 405
415 *******************************************************************************/ 406 *******************************************************************************/
416 407
417 T_MFW_HND Mmi_em_create(T_MFW_HND parent_window, MfwEmDataType data_type) 408 T_MFW_HND Mmi_em_create(T_MFW_HND parent_window, MfwEmDataType data_type)
418 { 409 {
439 430
440 #ifndef NEPTUNE_BOARD 431 #ifndef NEPTUNE_BOARD
441 /*Mobile Info is the only data screen which doesn't need to be updated every second*/ 432 /*Mobile Info is the only data screen which doesn't need to be updated every second*/
442 if (data_type != EM_MOBILE_INFO) 433 if (data_type != EM_MOBILE_INFO)
443 { 434 {
444 data->tim = tim_create(data->win, EM_UPDATE_RATE, (T_MFW_CB)Mmi_em_tim_cb); 435 data->tim = tim_create(data->win, EM_UPDATE_RATE, (T_MFW_CB)Mmi_em_tim_cb);
445 timStart(data->tim);//start timer 436 timStart(data->tim);//start timer
446 } 437 }
447 #endif 438 #endif
448 439
449 /*populate the user data*/ 440 /*populate the user data*/
474 /*bind the MFW event handler to any events from the MFW Eng Mode module*/ 465 /*bind the MFW event handler to any events from the MFW Eng Mode module*/
475 Mfw_em_create(data->win, 0xFF, (MfwCb)Mmi_em_event_cb); 466 Mfw_em_create(data->win, 0xFF, (MfwCb)Mmi_em_event_cb);
476 Mfw_em_get_data(data_type);/*ask MFW for the required data*/ 467 Mfw_em_get_data(data_type);/*ask MFW for the required data*/
477 win_show(data->win);/*show the screen*/ 468 win_show(data->win);/*show the screen*/
478 return data->win; 469 return data->win;
479 470 }
480 } 471
481 472 /*******************************************************************************
482 /******************************************************************************* 473
483 474 $Function: Mmi_em_event_cb()
484 $Function: Mmi_em_event_cb() 475
485 476 $Description: Handles events coming from the MFW
486 $Description: Handles events coming from the MFW 477
487 478 $Returns: status integer
488 $Returns: status integer 479
489 480 $Arguments: event type, pointer to data
490 $Arguments: event type, pointer to data
491 481
492 *******************************************************************************/ 482 *******************************************************************************/
493 int Mmi_em_event_cb(T_MFW_EVENT event,void* para) 483 int Mmi_em_event_cb(T_MFW_EVENT event,void* para)
494 { 484 {
495 T_MFW_HND win = mfw_parent (mfw_header()); 485 T_MFW_HND win = mfw_parent (mfw_header());
516 T_ATB_TEXT temp_text;/*SPR 1757*/ 506 T_ATB_TEXT temp_text;/*SPR 1757*/
517 #endif 507 #endif
518 TRACE_EVENT_P1("Mmi_em_event_cb(), event:%d", event); 508 TRACE_EVENT_P1("Mmi_em_event_cb(), event:%d", event);
519 temp_buffer=(char*)malloc(EM_EDITOR_SIZE*2*sizeof(char)); /*a0393213 lint warnings removal - dynamically allocated*/ 509 temp_buffer=(char*)malloc(EM_EDITOR_SIZE*2*sizeof(char)); /*a0393213 lint warnings removal - dynamically allocated*/
520 if(temp_buffer==NULL) 510 if(temp_buffer==NULL)
521 { 511 {
522 TRACE_ERROR("Mmi_em_event_cb():No memory"); 512 TRACE_ERROR("Mmi_em_event_cb():No memory");
523 return MFW_EVENT_CONSUMED; 513 return MFW_EVENT_CONSUMED;
524 } 514 }
525 515
526 memset(temp_buffer, 0, EM_EDITOR_SIZE*2); 516 memset(temp_buffer, 0, EM_EDITOR_SIZE*2);
527 517
528 #ifdef NEPTUNE_BOARD 518 #ifdef NEPTUNE_BOARD
529 strcpy(file, "/NOR/Em.txt"); 519 strcpy(file, "/NOR/Em.txt");
530 fd = ffs_open(file, FFS_O_CREATE|FFS_O_WRONLY|FFS_O_APPEND); 520 fd = ffs_open(file, FFS_O_CREATE|FFS_O_WRONLY|FFS_O_APPEND);
531 if(fd < 0 ) 521 if(fd < 0 )
532 { 522 {
533 TRACE_EVENT("Error in Openning File"); 523 TRACE_EVENT("Error in Openning File");
534 free(temp_buffer); 524 free(temp_buffer);
535 return FALSE; 525 return FALSE;
536 } 526 }
537 527
538 sprintf(timeAndDate, "%s %s\n", mfw_td_get_clock_str(), mfw_td_get_date_str()); 528 sprintf(timeAndDate, "%s %s\n", mfw_td_get_clock_str(), mfw_td_get_date_str());
539 ffs_write(fd, timeAndDate, strlen(timeAndDate)); 529 ffs_write(fd, timeAndDate, strlen(timeAndDate));
558 mob_info->SMS_version, mob_info->MM_version, mob_info->RR_version, 548 mob_info->SMS_version, mob_info->MM_version, mob_info->RR_version,
559 mob_info->DL_version, mob_info->ALR_version,mob_info->IMEI, mob_info->IMSI, 549 mob_info->DL_version, mob_info->ALR_version,mob_info->IMEI, mob_info->IMSI,
560 mob_info->TMSI); 550 mob_info->TMSI);
561 /* SPR#1428 - SH - New Editor - string has changed, update word wrap */ 551 /* SPR#1428 - SH - New Editor - string has changed, update word wrap */
562 #ifdef NEW_EDITOR 552 #ifdef NEW_EDITOR
563 /*SPR 1757 Insert temp buffer into editor*/ 553 /*SPR 1757 Insert temp buffer into editor*/
564 temp_text.data = (UBYTE*)temp_buffer; 554 temp_text.data = (UBYTE*)temp_buffer;
565 temp_text.dcs = ATB_DCS_ASCII; 555 temp_text.dcs = ATB_DCS_ASCII;
566 ATB_string_Length(&temp_text); 556 ATB_string_Length(&temp_text);
567 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */ 557 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */
568 ATB_edit_ClearAll(data->editor); 558 ATB_edit_ClearAll(data->editor);
569 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */ 559 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */
570 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */ 560 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */
571 ATB_edit_Refresh(data->editor); 561 ATB_edit_Refresh(data->editor);
572 #else /* !NEW_EDITOR */ 562 #else /* !NEW_EDITOR */
573 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/ 563 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/
574 #endif 564 #endif
575 win_show(data->win);/*show data*/ 565 win_show(data->win);/*show data*/
576 } 566 }
577 break; 567 break;
578 #endif 568 #endif
579 569
580 case EM_SERVING_CELL_PARAMS: 570 case EM_SERVING_CELL_PARAMS:
581 { 571 {
582 #ifndef NEPTUNE_BOARD 572 #ifndef NEPTUNE_BOARD
583 sc_info = (MFW_EM_Serving_Cell_Parameters*)para;/*cast parameter to appropriate type*/ 573 sc_info = (MFW_EM_Serving_Cell_Parameters*)para;/*cast parameter to appropriate type*/
584 sprintf(temp_buffer, "ARFCN:%d RSSI:%d RXQ:%d RLT:%d C1:%d C2:%d LAC:%d BSIC:%d TAV:%d",\ 574 sprintf(temp_buffer, "ARFCN:%d RSSI:%d RXQ:%d RLT:%d C1:%d C2:%d LAC:%d BSIC:%d TAV:%d",\
585 sc_info->arfcn, sc_info->RSSI, sc_info->RXQ, sc_info->RLT, sc_info->C1, sc_info->C2,\ 575 sc_info->arfcn, sc_info->RSSI, sc_info->RXQ, sc_info->RLT, sc_info->C1, sc_info->C2,\
586 sc_info->LAC, sc_info->BSIC, sc_info->TAV); 576 sc_info->LAC, sc_info->BSIC, sc_info->TAV);
587 #else 577 #else
588 sprintf (temp_buffer, "AFRCN = %u Cell ID = %u \nMCC<>: = %u %u %u\nMNC<>: %u %u %u\nLAC<> = %u %u\nRAC = %u\nMultiframe period = %u \nTMSI<> = %u %u %u %u \nMax retransmission = %u \nCall re establishment status flag = %u \nMax o/p pw on common control channel = %u \nMinimum signal level for access = %u", 578 sprintf (temp_buffer, "AFRCN = %u Cell ID = %u \nMCC<>: = %u %u %u\nMNC<>: %u %u %u\nLAC<> = %u %u\nRAC = %u\nMultiframe period = %u \nTMSI<> = %u %u %u %u \nMax retransmission = %u \nCall re establishment status flag = %u \nMax o/p pw on common control channel = %u \nMinimum signal level for access = %u",
589 Eng_Info_Req->info_rr.gsm_info.gsm_info_idle.pccch_info.pccch_channel.gsm_channel_static.arfcn, 579 Eng_Info_Req->info_rr.gsm_info.gsm_info_idle.pccch_info.pccch_channel.gsm_channel_static.arfcn,
611 ffs_write(fd, "Serving cell info\n",20 ); 601 ffs_write(fd, "Serving cell info\n",20 );
612 ffs_write(fd, temp_buffer, strlen(temp_buffer)); 602 ffs_write(fd, temp_buffer, strlen(temp_buffer));
613 603
614 #endif 604 #endif
615 605
616 /* SPR#1428 - SH - New Editor - string has changed, update word wrap */ 606 /* SPR#1428 - SH - New Editor - string has changed, update word wrap */
617 #ifdef NEW_EDITOR 607 #ifdef NEW_EDITOR
618 /*SPR 1757 Insert temp buffer into editor*/ 608 /*SPR 1757 Insert temp buffer into editor*/
619 temp_text.data = (UBYTE*)temp_buffer; 609 temp_text.data = (UBYTE*)temp_buffer;
620 temp_text.dcs = ATB_DCS_ASCII; 610 temp_text.dcs = ATB_DCS_ASCII;
621 ATB_string_Length(&temp_text); 611 ATB_string_Length(&temp_text);
622 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */ 612 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */
623 ATB_edit_ClearAll(data->editor); 613 ATB_edit_ClearAll(data->editor);
624 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */ 614 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */
625 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */ 615 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */
626 ATB_edit_Refresh(data->editor); 616 ATB_edit_Refresh(data->editor);
627 #else /* !NEW_EDITOR */ 617 #else /* !NEW_EDITOR */
628 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/ 618 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/
629 #endif 619 #endif
630 win_show(data->win); 620 win_show(data->win);
631 } 621 }
632 break; 622 break;
633 623
634 case EM_NEIGHBOURING_CELL_PARAMS: 624 case EM_NEIGHBOURING_CELL_PARAMS:
635 { 625 {
636 #ifndef NEPTUNE_BOARD 626 #ifndef NEPTUNE_BOARD
637 nc_info = (MFW_EM_Neighbour_Cell_Parameters*)para;/*cast parameter to appropriate type*/ 627 nc_info = (MFW_EM_Neighbour_Cell_Parameters*)para;/*cast parameter to appropriate type*/
638 /*copy data to editor buffer*/ 628 /*copy data to editor buffer*/
639 sprintf(temp_buffer, "NUM:%d\nARFCN:RSSI:C2:LAC:BSIC\n %5d%5d%5d%6d%5d\n %5d%5d%5d%6d%5d\n %5d%5d%5d%6d%5d\n %5d%5d%5d%6d%5d\n %5d%5d%5d%6d%5d\n %5d%5d%5d%6d%5d\n SC%4d%5d%5d%6d%5d",\ 629 sprintf(temp_buffer, "NUM:%d\nARFCN:RSSI:C2:LAC:BSIC\n %5d%5d%5d%6d%5d\n %5d%5d%5d%6d%5d\n %5d%5d%5d%6d%5d\n %5d%5d%5d%6d%5d\n %5d%5d%5d%6d%5d\n %5d%5d%5d%6d%5d\n SC%4d%5d%5d%6d%5d",\
640 nc_info->NUM,\ 630 nc_info->NUM,\
641 nc_info->arfcn[0], nc_info->RSSI[0], nc_info->C2[0], nc_info->LAC_NC[0], nc_info->BSIC_NC[0],\ 631 nc_info->arfcn[0], nc_info->RSSI[0], nc_info->C2[0], nc_info->LAC_NC[0], nc_info->BSIC_NC[0],\
642 nc_info->arfcn[1], nc_info->RSSI[1], nc_info->C2[1], nc_info->LAC_NC[1], nc_info->BSIC_NC[1],\ 632 nc_info->arfcn[1], nc_info->RSSI[1], nc_info->C2[1], nc_info->LAC_NC[1], nc_info->BSIC_NC[1],\
643 nc_info->arfcn[2], nc_info->RSSI[2], nc_info->C2[2], nc_info->LAC_NC[2], nc_info->BSIC_NC[2],\ 633 nc_info->arfcn[2], nc_info->RSSI[2], nc_info->C2[2], nc_info->LAC_NC[2], nc_info->BSIC_NC[2],\
644 nc_info->arfcn[3], nc_info->RSSI[3], nc_info->C2[3], nc_info->LAC_NC[3], nc_info->BSIC_NC[3],\ 634 nc_info->arfcn[3], nc_info->RSSI[3], nc_info->C2[3], nc_info->LAC_NC[3], nc_info->BSIC_NC[3],\
645 nc_info->arfcn[4], nc_info->RSSI[4], nc_info->C2[4], nc_info->LAC_NC[4], nc_info->BSIC_NC[4],\ 635 nc_info->arfcn[4], nc_info->RSSI[4], nc_info->C2[4], nc_info->LAC_NC[4], nc_info->BSIC_NC[4],\
646 nc_info->arfcn[5], nc_info->RSSI[5], nc_info->C2[5], nc_info->LAC_NC[5], nc_info->BSIC_NC[5],\ 636 nc_info->arfcn[5], nc_info->RSSI[5], nc_info->C2[5], nc_info->LAC_NC[5], nc_info->BSIC_NC[5],\
647 nc_info->arfcn[6], nc_info->RSSI[6], nc_info->C2[6], nc_info->LAC_NC[6], nc_info->BSIC_NC[6]); 637 nc_info->arfcn[6], nc_info->RSSI[6], nc_info->C2[6], nc_info->LAC_NC[6], nc_info->BSIC_NC[6]);
648 /* SPR#1428 - SH - New Editor - string has changed, update word wrap */ 638 /* SPR#1428 - SH - New Editor - string has changed, update word wrap */
649 /*show the window*/ 639 /*show the window*/
650 win_show(data->win); 640 win_show(data->win);
651 641
652 #else /* NEPTUNE_BOARD*/ 642 #else /* NEPTUNE_BOARD*/
653 sprintf (temp_buffer, "NEIGHBOURING CELL\nNUM : %d\nBCCH <> %d \nBSIC <> %d %d %d %d %d %d \nRXLEV <> %d %d %d %d %d %d\nC1 <> %d %d %d %d %d %d\nC2 <> %d %d %d %d %d %d\nC31 <> %d %d %d %d %d %d\nC32 <> %d %d %d %d %d %d\nARFCN <> %d %d %d %d %d %d\nFRAME OFFSET <> %d %d %d %d %d %d\nTIME ALIGN <> %d %d %d %d %d %d", 643 sprintf (temp_buffer, "NEIGHBOURING CELL\nNUM : %d\nBCCH <> %d \nBSIC <> %d %d %d %d %d %d \nRXLEV <> %d %d %d %d %d %d\nC1 <> %d %d %d %d %d %d\nC2 <> %d %d %d %d %d %d\nC31 <> %d %d %d %d %d %d\nC32 <> %d %d %d %d %d %d\nARFCN <> %d %d %d %d %d %d\nFRAME OFFSET <> %d %d %d %d %d %d\nTIME ALIGN <> %d %d %d %d %d %d",
654 Eng_Info_Req->info_rr.c_gsm_bba_cell, 644 Eng_Info_Req->info_rr.c_gsm_bba_cell,
655 Eng_Info_Req->info_rr.gsm_info.gsm_info_active.gsm_info_dedicated.bcch_channel, 645 Eng_Info_Req->info_rr.gsm_info.gsm_info_active.gsm_info_dedicated.bcch_channel,
713 ffs_write(fd, "Neighbouring cell info\n",25 ); 703 ffs_write(fd, "Neighbouring cell info\n",25 );
714 ffs_write(fd, temp_buffer, strlen(temp_buffer)); 704 ffs_write(fd, temp_buffer, strlen(temp_buffer));
715 705
716 #endif 706 #endif
717 #ifdef NEW_EDITOR 707 #ifdef NEW_EDITOR
718 /*SPR 1757 Insert temp buffer into editor*/ 708 /*SPR 1757 Insert temp buffer into editor*/
719 temp_text.data = (UBYTE*)temp_buffer; 709 temp_text.data = (UBYTE*)temp_buffer;
720 temp_text.dcs = ATB_DCS_ASCII; 710 temp_text.dcs = ATB_DCS_ASCII;
721 ATB_string_Length(&temp_text); 711 ATB_string_Length(&temp_text);
722 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */ 712 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */
723 ATB_edit_ClearAll(data->editor); 713 ATB_edit_ClearAll(data->editor);
724 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */ 714 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */
725 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */ 715 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */
726 ATB_edit_Refresh(data->editor); 716 ATB_edit_Refresh(data->editor);
727 #else /* !NEW_EDITOR */ 717 #else /* !NEW_EDITOR */
728 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/ 718 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/
729 #endif 719 #endif
730 win_show(data->win); 720 win_show(data->win);
731 } 721 }
732 break; 722 break;
733 723
734 #ifndef NEPTUNE_BOARD 724 #ifndef NEPTUNE_BOARD
735 case EM_LOCATION_PARAMS: 725 case EM_LOCATION_PARAMS:
736 { 726 {
737 loc_info = (MFW_EM_Location_Parameters*)para;/*cast parameter to appropriate type*/ 727 loc_info = (MFW_EM_Location_Parameters*)para;/*cast parameter to appropriate type*/
738 /*copy data to editor buffer*/ 728 /*copy data to editor buffer*/
739 /*MC, SPR 1554 Removed Cell id from editor string*/ 729 /*MC, SPR 1554 Removed Cell id from editor string*/
740 sprintf(temp_buffer, "LUP:%d MCC:%s MNC:%s LAC:%d ", loc_info->LUP, loc_info->MCC, loc_info->MNC, loc_info->LAC); 730 sprintf(temp_buffer, "LUP:%d MCC:%s MNC:%s LAC:%d ", loc_info->LUP, loc_info->MCC, loc_info->MNC, loc_info->LAC);
741 /* SPR#1428 - SH - New Editor - string has changed, update word wrap */ 731 /* SPR#1428 - SH - New Editor - string has changed, update word wrap */
742 #ifdef NEW_EDITOR 732 #ifdef NEW_EDITOR
743 /*SPR 1757 Insert temp buffer into editor*/ 733 /*SPR 1757 Insert temp buffer into editor*/
744 temp_text.data = (UBYTE*)temp_buffer; 734 temp_text.data = (UBYTE*)temp_buffer;
745 temp_text.dcs = ATB_DCS_ASCII; 735 temp_text.dcs = ATB_DCS_ASCII;
746 ATB_string_Length(&temp_text); 736 ATB_string_Length(&temp_text);
747 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */ 737 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */
748 ATB_edit_ClearAll(data->editor); 738 ATB_edit_ClearAll(data->editor);
749 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */ 739 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */
750 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */ 740 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */
751 ATB_edit_Refresh(data->editor); 741 ATB_edit_Refresh(data->editor);
752 #else /* !NEW_EDITOR */ 742 #else /* !NEW_EDITOR */
753 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/ 743 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/
754 #endif 744 #endif
755 /*show the window*/ 745 /*show the window*/
756 win_show(data->win); 746 win_show(data->win);
757 } 747 }
758 break; 748 break;
759 #endif 749 #endif
760 750
761 #ifndef NEPTUNE_BOARD 751 #ifndef NEPTUNE_BOARD
762 case EM_CIPH_HOP_DTX_PARAMS: 752 case EM_CIPH_HOP_DTX_PARAMS:
763 { 753 {
764 ciph_hop_dtx_info = (MFW_EM_Ciph_hop_DTX_Parameters*)para;/*cast parameter to appropriate type*/ 754 ciph_hop_dtx_info = (MFW_EM_Ciph_hop_DTX_Parameters*)para;/*cast parameter to appropriate type*/
765 /*convert DTX status to string*/ 755 /*convert DTX status to string*/
766 if (ciph_hop_dtx_info->DTX_status == FALSE) 756 if (ciph_hop_dtx_info->DTX_status == FALSE)
767 DTX_Status = "Off"; 757 DTX_Status = "Off";
768 else 758 else
769 DTX_Status = "On"; 759 DTX_Status = "On";
770 //copy data to editor 760 //copy data to editor
771 sprintf(temp_buffer, "STATUS:%d HSN:%d DTX:%s ", ciph_hop_dtx_info->ciph_status, ciph_hop_dtx_info->HSN, DTX_Status); 761 sprintf(temp_buffer, "STATUS:%d HSN:%d DTX:%s ", ciph_hop_dtx_info->ciph_status, ciph_hop_dtx_info->HSN, DTX_Status);
772 /*show the window*/ 762 /*show the window*/
773 /* SPR#1428 - SH - New Editor - string has changed, update word wrap */ 763 /* SPR#1428 - SH - New Editor - string has changed, update word wrap */
774 #ifdef NEW_EDITOR 764 #ifdef NEW_EDITOR
775 /*SPR 1757 Insert temp buffer into editor*/ 765 /*SPR 1757 Insert temp buffer into editor*/
776 temp_text.data = (UBYTE*)temp_buffer; 766 temp_text.data = (UBYTE*)temp_buffer;
777 temp_text.dcs = ATB_DCS_ASCII; 767 temp_text.dcs = ATB_DCS_ASCII;
778 ATB_string_Length(&temp_text); 768 ATB_string_Length(&temp_text);
779 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */ 769 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */
780 ATB_edit_ClearAll(data->editor); 770 ATB_edit_ClearAll(data->editor);
781 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */ 771 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */
782 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */ 772 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */
783 ATB_edit_Refresh(data->editor); 773 ATB_edit_Refresh(data->editor);
784 #else /* !NEW_EDITOR */ 774 #else /* !NEW_EDITOR */
785 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/ 775 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/
786 #endif 776 #endif
787 win_show(data->win); 777 win_show(data->win);
788 } 778 }
789 break; 779 break;
790 #endif 780 #endif
791 781
792 #ifndef NEPTUNE_BOARD 782 #ifndef NEPTUNE_BOARD
793 case EM_GPRS_PARAMS: 783 case EM_GPRS_PARAMS:
794 { 784 {
795 gprs_info = (MFW_EM_GPRS_Parameter*)para;//cast parameter to appropriate type 785 gprs_info = (MFW_EM_GPRS_Parameter*)para;//cast parameter to appropriate type
796 /*MC, SPR 1554 Changed ediotr string to show Network Mode of Operation*/ 786 /*MC, SPR 1554 Changed ediotr string to show Network Mode of Operation*/
797 sprintf(temp_buffer, "NMO:%d NDTS:%d RAC:%d C31:%d C32:%d",\ 787 sprintf(temp_buffer, "NMO:%d NDTS:%d RAC:%d C31:%d C32:%d",\
798 gprs_info->NMO, gprs_info->NDTS, gprs_info->RAC, gprs_info->C31, gprs_info->C32); 788 gprs_info->NMO, gprs_info->NDTS, gprs_info->RAC, gprs_info->C31, gprs_info->C32);
799 //show the window 789 //show the window
800 /* SPR#1428 - SH - New Editor - string has changed, update word wrap */ 790 /* SPR#1428 - SH - New Editor - string has changed, update word wrap */
801 #ifdef NEW_EDITOR 791 #ifdef NEW_EDITOR
802 /*SPR 1757 Insert temp buffer into editor*/ 792 /*SPR 1757 Insert temp buffer into editor*/
803 temp_text.data = (UBYTE*)temp_buffer; 793 temp_text.data = (UBYTE*)temp_buffer;
804 temp_text.dcs = ATB_DCS_ASCII; 794 temp_text.dcs = ATB_DCS_ASCII;
805 ATB_string_Length(&temp_text); 795 ATB_string_Length(&temp_text);
806 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */ 796 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */
807 ATB_edit_ClearAll(data->editor); 797 ATB_edit_ClearAll(data->editor);
808 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */ 798 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */
809 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */ 799 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */
810 ATB_edit_Refresh(data->editor); 800 ATB_edit_Refresh(data->editor);
811 #else /* !NEW_EDITOR */ 801 #else /* !NEW_EDITOR */
812 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/ 802 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/
813 #endif 803 #endif
814 win_show(data->win); 804 win_show(data->win);
815 } 805 }
816 break; 806 break;
817 #endif 807 #endif
818 808
819 809
820 #ifdef NEPTUNE_BOARD 810 #ifdef NEPTUNE_BOARD
821 case EM_SERVING_CELL_RF_PARAMS: 811 case EM_SERVING_CELL_RF_PARAMS:
840 #ifdef NEW_EDITOR 830 #ifdef NEW_EDITOR
841 /*SPR 1757 Insert temp buffer into editor*/ 831 /*SPR 1757 Insert temp buffer into editor*/
842 temp_text.data = (UBYTE*)temp_buffer; 832 temp_text.data = (UBYTE*)temp_buffer;
843 temp_text.dcs = ATB_DCS_ASCII; 833 temp_text.dcs = ATB_DCS_ASCII;
844 ATB_string_Length(&temp_text); 834 ATB_string_Length(&temp_text);
845 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */ 835 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */
846 ATB_edit_ClearAll(data->editor); 836 ATB_edit_ClearAll(data->editor);
847 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */ 837 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */
848 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */ 838 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */
849 ATB_edit_Refresh(data->editor); 839 ATB_edit_Refresh(data->editor);
850 #else /* !NEW_EDITOR */ 840 #else /* !NEW_EDITOR */
851 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/ 841 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/
852 #endif 842 #endif
853 win_show(data->win);/*show data*/ 843 win_show(data->win);/*show data*/
872 #ifdef NEW_EDITOR 862 #ifdef NEW_EDITOR
873 /*SPR 1757 Insert temp buffer into editor*/ 863 /*SPR 1757 Insert temp buffer into editor*/
874 temp_text.data = (UBYTE*)temp_buffer; 864 temp_text.data = (UBYTE*)temp_buffer;
875 temp_text.dcs = ATB_DCS_ASCII; 865 temp_text.dcs = ATB_DCS_ASCII;
876 ATB_string_Length(&temp_text); 866 ATB_string_Length(&temp_text);
877 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */ 867 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */
878 ATB_edit_ClearAll(data->editor); 868 ATB_edit_ClearAll(data->editor);
879 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */ 869 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */
880 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */ 870 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */
881 ATB_edit_Refresh(data->editor); 871 ATB_edit_Refresh(data->editor);
882 #else /* !NEW_EDITOR */ 872 #else /* !NEW_EDITOR */
883 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/ 873 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/
884 #endif 874 #endif
885 win_show(data->win);/*show data*/ 875 win_show(data->win);/*show data*/
904 #ifdef NEW_EDITOR 894 #ifdef NEW_EDITOR
905 /*SPR 1757 Insert temp buffer into editor*/ 895 /*SPR 1757 Insert temp buffer into editor*/
906 temp_text.data = (UBYTE*)temp_buffer; 896 temp_text.data = (UBYTE*)temp_buffer;
907 temp_text.dcs = ATB_DCS_ASCII; 897 temp_text.dcs = ATB_DCS_ASCII;
908 ATB_string_Length(&temp_text); 898 ATB_string_Length(&temp_text);
909 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */ 899 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */
910 ATB_edit_ClearAll(data->editor); 900 ATB_edit_ClearAll(data->editor);
911 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */ 901 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */
912 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */ 902 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */
913 ATB_edit_Refresh(data->editor); 903 ATB_edit_Refresh(data->editor);
914 #else /* !NEW_EDITOR */ 904 #else /* !NEW_EDITOR */
915 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/ 905 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/
916 #endif 906 #endif
917 win_show(data->win);/*show data*/ 907 win_show(data->win);/*show data*/
938 #ifdef NEW_EDITOR 928 #ifdef NEW_EDITOR
939 /*SPR 1757 Insert temp buffer into editor*/ 929 /*SPR 1757 Insert temp buffer into editor*/
940 temp_text.data = (UBYTE*)temp_buffer; 930 temp_text.data = (UBYTE*)temp_buffer;
941 temp_text.dcs = ATB_DCS_ASCII; 931 temp_text.dcs = ATB_DCS_ASCII;
942 ATB_string_Length(&temp_text); 932 ATB_string_Length(&temp_text);
943 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */ 933 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */
944 ATB_edit_ClearAll(data->editor); 934 ATB_edit_ClearAll(data->editor);
945 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */ 935 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */
946 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */ 936 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */
947 ATB_edit_Refresh(data->editor); 937 ATB_edit_Refresh(data->editor);
948 #else /* !NEW_EDITOR */ 938 #else /* !NEW_EDITOR */
949 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/ 939 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/
950 #endif 940 #endif
951 win_show(data->win);/*show data*/ 941 win_show(data->win);/*show data*/
966 #ifdef NEW_EDITOR 956 #ifdef NEW_EDITOR
967 /*SPR 1757 Insert temp buffer into editor*/ 957 /*SPR 1757 Insert temp buffer into editor*/
968 temp_text.data = (UBYTE*)temp_buffer; 958 temp_text.data = (UBYTE*)temp_buffer;
969 temp_text.dcs = ATB_DCS_ASCII; 959 temp_text.dcs = ATB_DCS_ASCII;
970 ATB_string_Length(&temp_text); 960 ATB_string_Length(&temp_text);
971 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */ 961 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */
972 ATB_edit_ClearAll(data->editor); 962 ATB_edit_ClearAll(data->editor);
973 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */ 963 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */
974 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */ 964 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */
975 ATB_edit_Refresh(data->editor); 965 ATB_edit_Refresh(data->editor);
976 #else /* !NEW_EDITOR */ 966 #else /* !NEW_EDITOR */
977 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/ 967 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/
978 #endif 968 #endif
979 win_show(data->win);/*show data*/ 969 win_show(data->win);/*show data*/
995 #ifdef NEW_EDITOR 985 #ifdef NEW_EDITOR
996 /*SPR 1757 Insert temp buffer into editor*/ 986 /*SPR 1757 Insert temp buffer into editor*/
997 temp_text.data = (UBYTE*)temp_buffer; 987 temp_text.data = (UBYTE*)temp_buffer;
998 temp_text.dcs = ATB_DCS_ASCII; 988 temp_text.dcs = ATB_DCS_ASCII;
999 ATB_string_Length(&temp_text); 989 ATB_string_Length(&temp_text);
1000 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */ 990 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */
1001 ATB_edit_ClearAll(data->editor); 991 ATB_edit_ClearAll(data->editor);
1002 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */ 992 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */
1003 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */ 993 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */
1004 ATB_edit_Refresh(data->editor); 994 ATB_edit_Refresh(data->editor);
1005 #else /* !NEW_EDITOR */ 995 #else /* !NEW_EDITOR */
1006 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/ 996 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/
1007 #endif 997 #endif
1008 win_show(data->win);/*show data*/ 998 win_show(data->win);/*show data*/
1023 #ifdef NEW_EDITOR 1013 #ifdef NEW_EDITOR
1024 /*SPR 1757 Insert temp buffer into editor*/ 1014 /*SPR 1757 Insert temp buffer into editor*/
1025 temp_text.data = (UBYTE*)temp_buffer; 1015 temp_text.data = (UBYTE*)temp_buffer;
1026 temp_text.dcs = ATB_DCS_ASCII; 1016 temp_text.dcs = ATB_DCS_ASCII;
1027 ATB_string_Length(&temp_text); 1017 ATB_string_Length(&temp_text);
1028 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */ 1018 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */
1029 ATB_edit_ClearAll(data->editor); 1019 ATB_edit_ClearAll(data->editor);
1030 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */ 1020 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */
1031 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */ 1021 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */
1032 ATB_edit_Refresh(data->editor); 1022 ATB_edit_Refresh(data->editor);
1033 #else /* !NEW_EDITOR */ 1023 #else /* !NEW_EDITOR */
1034 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/ 1024 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/
1035 #endif 1025 #endif
1036 win_show(data->win);/*show data*/ 1026 win_show(data->win);/*show data*/
1057 #ifdef NEW_EDITOR 1047 #ifdef NEW_EDITOR
1058 /*SPR 1757 Insert temp buffer into editor*/ 1048 /*SPR 1757 Insert temp buffer into editor*/
1059 temp_text.data = (UBYTE*)temp_buffer; 1049 temp_text.data = (UBYTE*)temp_buffer;
1060 temp_text.dcs = ATB_DCS_ASCII; 1050 temp_text.dcs = ATB_DCS_ASCII;
1061 ATB_string_Length(&temp_text); 1051 ATB_string_Length(&temp_text);
1062 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */ 1052 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */
1063 ATB_edit_ClearAll(data->editor); 1053 ATB_edit_ClearAll(data->editor);
1064 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */ 1054 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */
1065 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */ 1055 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */
1066 ATB_edit_Refresh(data->editor); 1056 ATB_edit_Refresh(data->editor);
1067 #else /* !NEW_EDITOR */ 1057 #else /* !NEW_EDITOR */
1068 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/ 1058 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/
1069 #endif 1059 #endif
1070 win_show(data->win);/*show data*/ 1060 win_show(data->win);/*show data*/
1085 #ifdef NEW_EDITOR 1075 #ifdef NEW_EDITOR
1086 /*SPR 1757 Insert temp buffer into editor*/ 1076 /*SPR 1757 Insert temp buffer into editor*/
1087 temp_text.data = (UBYTE*)temp_buffer; 1077 temp_text.data = (UBYTE*)temp_buffer;
1088 temp_text.dcs = ATB_DCS_ASCII; 1078 temp_text.dcs = ATB_DCS_ASCII;
1089 ATB_string_Length(&temp_text); 1079 ATB_string_Length(&temp_text);
1090 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */ 1080 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */
1091 ATB_edit_ClearAll(data->editor); 1081 ATB_edit_ClearAll(data->editor);
1092 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */ 1082 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */
1093 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */ 1083 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */
1094 ATB_edit_Refresh(data->editor); 1084 ATB_edit_Refresh(data->editor);
1095 #else /* !NEW_EDITOR */ 1085 #else /* !NEW_EDITOR */
1096 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/ 1086 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/
1097 #endif 1087 #endif
1098 win_show(data->win);/*show data*/ 1088 win_show(data->win);/*show data*/
1114 #ifdef NEW_EDITOR 1104 #ifdef NEW_EDITOR
1115 /*SPR 1757 Insert temp buffer into editor*/ 1105 /*SPR 1757 Insert temp buffer into editor*/
1116 temp_text.data = (UBYTE*)temp_buffer; 1106 temp_text.data = (UBYTE*)temp_buffer;
1117 temp_text.dcs = ATB_DCS_ASCII; 1107 temp_text.dcs = ATB_DCS_ASCII;
1118 ATB_string_Length(&temp_text); 1108 ATB_string_Length(&temp_text);
1119 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */ 1109 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */
1120 ATB_edit_ClearAll(data->editor); 1110 ATB_edit_ClearAll(data->editor);
1121 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */ 1111 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */
1122 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */ 1112 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */
1123 ATB_edit_Refresh(data->editor); 1113 ATB_edit_Refresh(data->editor);
1124 #else /* !NEW_EDITOR */ 1114 #else /* !NEW_EDITOR */
1125 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/ 1115 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/
1126 #endif 1116 #endif
1127 win_show(data->win);/*show data*/ 1117 win_show(data->win);/*show data*/
1138 #ifdef NEW_EDITOR 1128 #ifdef NEW_EDITOR
1139 /*SPR 1757 Insert temp buffer into editor*/ 1129 /*SPR 1757 Insert temp buffer into editor*/
1140 temp_text.data = (UBYTE*)temp_buffer; 1130 temp_text.data = (UBYTE*)temp_buffer;
1141 temp_text.dcs = ATB_DCS_ASCII; 1131 temp_text.dcs = ATB_DCS_ASCII;
1142 ATB_string_Length(&temp_text); 1132 ATB_string_Length(&temp_text);
1143 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */ 1133 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */
1144 ATB_edit_ClearAll(data->editor); 1134 ATB_edit_ClearAll(data->editor);
1145 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */ 1135 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */
1146 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */ 1136 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */
1147 ATB_edit_Refresh(data->editor); 1137 ATB_edit_Refresh(data->editor);
1148 #else /* !NEW_EDITOR */ 1138 #else /* !NEW_EDITOR */
1149 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/ 1139 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/
1150 #endif 1140 #endif
1151 win_show(data->win);/*show data*/ 1141 win_show(data->win);/*show data*/
1161 #ifdef NEW_EDITOR 1151 #ifdef NEW_EDITOR
1162 /*SPR 1757 Insert temp buffer into editor*/ 1152 /*SPR 1757 Insert temp buffer into editor*/
1163 temp_text.data = (UBYTE*)temp_buffer; 1153 temp_text.data = (UBYTE*)temp_buffer;
1164 temp_text.dcs = ATB_DCS_ASCII; 1154 temp_text.dcs = ATB_DCS_ASCII;
1165 ATB_string_Length(&temp_text); 1155 ATB_string_Length(&temp_text);
1166 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */ 1156 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */
1167 ATB_edit_ClearAll(data->editor); 1157 ATB_edit_ClearAll(data->editor);
1168 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */ 1158 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */
1169 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */ 1159 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */
1170 ATB_edit_Refresh(data->editor); 1160 ATB_edit_Refresh(data->editor);
1171 #else /* !NEW_EDITOR */ 1161 #else /* !NEW_EDITOR */
1172 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/ 1162 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/
1173 #endif 1163 #endif
1174 win_show(data->win);/*show data*/ 1164 win_show(data->win);/*show data*/
1185 #ifdef NEW_EDITOR 1175 #ifdef NEW_EDITOR
1186 /*SPR 1757 Insert temp buffer into editor*/ 1176 /*SPR 1757 Insert temp buffer into editor*/
1187 temp_text.data = (UBYTE*)temp_buffer; 1177 temp_text.data = (UBYTE*)temp_buffer;
1188 temp_text.dcs = ATB_DCS_ASCII; 1178 temp_text.dcs = ATB_DCS_ASCII;
1189 ATB_string_Length(&temp_text); 1179 ATB_string_Length(&temp_text);
1190 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */ 1180 ATB_edit_ResetMode(data->editor, ED_MODE_READONLY); /* Switch off read only to add text */
1191 ATB_edit_ClearAll(data->editor); 1181 ATB_edit_ClearAll(data->editor);
1192 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */ 1182 ATB_edit_InsertString(data->editor, &temp_text); /* Insert name string */
1193 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */ 1183 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */
1194 ATB_edit_Refresh(data->editor); 1184 ATB_edit_Refresh(data->editor);
1195 #else /* !NEW_EDITOR */ 1185 #else /* !NEW_EDITOR */
1196 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/ 1186 strncpy(data->edtBuffer, temp_buffer, EM_EDITOR_SIZE);/*SPR 1757*/
1197 #endif 1187 #endif
1198 win_show(data->win);/*show data*/ 1188 win_show(data->win);/*show data*/
1199 1189
1200 break; 1190 break;
1201 1191
1202 #endif /*ifndef NEPTUNE BOARD */ 1192 #endif /*ifndef NEPTUNE BOARD */
1203 default: 1193 default:
1204 free(temp_buffer); 1194 free(temp_buffer);
1205 return MFW_EVENT_REJECTED; 1195 return MFW_EVENT_REJECTED;
1206 } 1196 }
1207 } 1197 }
1208 else 1198 else
1209 { 1199 {
1210 free(temp_buffer); 1200 free(temp_buffer);
1211 return MFW_EVENT_REJECTED; 1201 return MFW_EVENT_REJECTED;
1212 } 1202 }
1213 1203
1214 #ifdef NEPTUNE_BOARD 1204 #ifdef NEPTUNE_BOARD
1215 ffs_write(fd, "\n****************\n\n",20 ); 1205 ffs_write(fd, "\n****************\n\n",20 );
1216 ffs_close(fd); 1206 ffs_close(fd);
1217 #endif 1207 #endif
1218 free(temp_buffer); 1208 free(temp_buffer);
1219 return MFW_EVENT_CONSUMED; 1209 return MFW_EVENT_CONSUMED;
1220 } 1210 }
1221 1211
1222 /******************************************************************************* 1212 /*******************************************************************************
1223 $Function: Mmi_em_destroy() 1213 $Function: Mmi_em_destroy()
1224 $Description: Delete the window 1214 $Description: Delete the window
1225 $Returns: none 1215 $Returns: none
1226 $Arguments: window handle 1216 $Arguments: window handle
1227 *******************************************************************************/ 1217 *******************************************************************************/
1228 void Mmi_em_destroy(T_MFW_HND own_window) 1218 void Mmi_em_destroy(T_MFW_HND own_window)
1229 { 1219 {
1230 T_MFW_WIN * win = ((T_MFW_HDR *)own_window)->data; 1220 T_MFW_WIN * win = ((T_MFW_HDR *)own_window)->data;
1231 tEmData * data = (tEmData *)win->user; 1221 tEmData * data = (tEmData *)win->user;
1232 1222
1233 TRACE_EVENT ("Mmi_em_destroy()"); 1223 TRACE_EVENT ("Mmi_em_destroy()");
1234 1224
1235 if (own_window == NULL) 1225 if (own_window == NULL)
1236 { 1226 {
1237 TRACE_EVENT ("Error :- Called with NULL Pointer"); 1227 TRACE_EVENT ("Error :- Called with NULL Pointer");
1238 return; 1228 return;
1239 } 1229 }
1240 if (data) 1230 if (data)
1241 { 1231 {
1242 /* 1232 /*
1243 * Exit TIMER & KEYBOARD Handle 1233 * Exit TIMER & KEYBOARD Handle
1244 */ 1234 */
1245 kbd_delete (data->kbd); 1235 kbd_delete (data->kbd);
1246 tim_delete (data->tim); 1236 tim_delete (data->tim);
1247 /* SPR#1428 - SH - New Editor changes */ 1237 /* SPR#1428 - SH - New Editor changes */
1248 #ifdef NEW_EDITOR 1238 #ifdef NEW_EDITOR
1249 ATB_edit_Destroy(data->editor); 1239 ATB_edit_Destroy(data->editor);
1250 #else 1240 #else
1251 edt_delete(data->edt); 1241 edt_delete(data->edt);
1252 #endif 1242 #endif
1253 /* 1243 /*
1254 * Delete WIN Handler 1244 * Delete WIN Handler
1255 */ 1245 */
1256 win_delete (data->win); 1246 win_delete (data->win);
1262 TRACE_EVENT_P1("MMiEm END, Memory left:%d", mfwCheckMemoryLeft()); 1252 TRACE_EVENT_P1("MMiEm END, Memory left:%d", mfwCheckMemoryLeft());
1263 } 1253 }
1264 1254
1265 /******************************************************************************* 1255 /*******************************************************************************
1266 1256
1267 $Function: Mmi_em_kbd_cb() 1257 $Function: Mmi_em_kbd_cb()
1268 1258
1269 $Description: Keyboard handler 1259 $Description: Keyboard handler
1270 1260
1271 $Returns: status int 1261 $Returns: status int
1272 1262
1273 $Arguments: event, keyboard data 1263 $Arguments: event, keyboard data
1274 1264
1275 *******************************************************************************/ 1265 *******************************************************************************/
1276 int Mmi_em_kbd_cb(T_MFW_EVENT event,T_MFW_KBD * kc ) 1266 int Mmi_em_kbd_cb(T_MFW_EVENT event,T_MFW_KBD * kc )
1277 { 1267 {
1278 T_MFW_HND win = mfw_parent (mfw_header()); 1268 T_MFW_HND win = mfw_parent (mfw_header());
1383 } 1373 }
1384 1374
1385 break; 1375 break;
1386 #endif 1376 #endif
1387 1377
1388 case KCD_HUP: /*destroy window*/ 1378 case KCD_HUP: /*destroy window*/
1389 case KCD_RIGHT: 1379 case KCD_RIGHT:
1390 #ifdef NEPTUNE_BOARD 1380 #ifdef NEPTUNE_BOARD
1391 EmRequest = NULL; 1381 EmRequest = NULL;
1392 sAT_PercentEINFO(CMD_SRC_LCL,TIMER_STOP); 1382 sAT_PercentEINFO(CMD_SRC_LCL,TIMER_STOP);
1393 sAT_PercentESINFO(CMD_SRC_LCL,TIMER_STOP); 1383 sAT_PercentESINFO(CMD_SRC_LCL,TIMER_STOP);
1403 return MFW_EVENT_CONSUMED; 1393 return MFW_EVENT_CONSUMED;
1404 } 1394 }
1405 1395
1406 /******************************************************************************* 1396 /*******************************************************************************
1407 1397
1408 $Function: Mmi_em_win_cb() 1398 $Function: Mmi_em_win_cb()
1409 1399
1410 $Description: Display handler 1400 $Description: Display handler
1411 1401
1412 $Returns: status int 1402 $Returns: status int
1413 1403
1414 $Arguments: event, window handle 1404 $Arguments: event, window handle
1415 1405
1416 *******************************************************************************/ 1406 *******************************************************************************/
1417 int Mmi_em_win_cb(T_MFW_EVENT event,T_MFW_WIN * win ) 1407 int Mmi_em_win_cb(T_MFW_EVENT event,T_MFW_WIN * win )
1418 { 1408 {
1419 tEmData* data = (tEmData *)win->user; 1409 tEmData* data = (tEmData *)win->user;
1446 1436
1447 } 1437 }
1448 1438
1449 /******************************************************************************* 1439 /*******************************************************************************
1450 1440
1451 $Function: Mmi_em_tim_cb() 1441 $Function: Mmi_em_tim_cb()
1452 1442
1453 $Description: Timer handler (every second) 1443 $Description: Timer handler (every second)
1454 1444
1455 $Returns: none 1445 $Returns: none
1456 1446
1457 $Arguments: event, timer data 1447 $Arguments: event, timer data
1458 1448
1459 *******************************************************************************/ 1449 *******************************************************************************/
1460 void Mmi_em_tim_cb(T_MFW_EVENT event,T_MFW_TIM * t) 1450 void Mmi_em_tim_cb(T_MFW_EVENT event,T_MFW_TIM * t)
1461 { 1451 {
1462 T_MFW_HND win = mfw_parent (mfw_header()); 1452 T_MFW_HND win = mfw_parent (mfw_header());