comparison src/ui/bmi/mmiBookController.c @ 142:ec9f955fc487

mmiBook*.c: bogotab fixes
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 14 Nov 2020 08:43:59 +0000
parents c0052fe355d3
children
comparison
equal deleted inserted replaced
141:67b91d34f75e 142:ec9f955fc487
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: PhoneBook 14 $Module: PhoneBook
15 $File: MmiBookController.c 15 $File: MmiBookController.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
28 28
29 ******************************************************************************** 29 ********************************************************************************
30 30
31 $History: MmiBookController.c 31 $History: MmiBookController.c
32 32
33 Nov 10, 2006 DRT: OMAPS000103354 x0039928 33 Nov 10, 2006 DRT: OMAPS000103354 x0039928
34 Description: Delete all failure in LDN Phonebook 34 Description: Delete all failure in LDN Phonebook
35 Solution: phb_delete_all is called with the proper phone book as input. 35 Solution: phb_delete_all is called with the proper phone book as input.
36 36
37 Aug 18, 2006 ER: OMAPS00089840 x0039928 37 Aug 18, 2006 ER: OMAPS00089840 x0039928
38 Description: Changes to be made in MMI for the functionality "Delete all" ADN entries 38 Description: Changes to be made in MMI for the functionality "Delete all" ADN entries
39 Solution: A new menu item "Delete All" is added in the phone book menu. 39 Solution: A new menu item "Delete All" is added in the phone book menu.
40 40
41 July 21,2006 REF:DR OMAPS00085695 x0047075 41 July 21,2006 REF:DR OMAPS00085695 x0047075
42 Description:Fail to delete the correct entry in LDN, LRN and LMN with Locosto. 42 Description:Fail to delete the correct entry in LDN, LRN and LMN with Locosto.
43 Solution:After deleting any entry in the LDN,LRN,LMN book,we highlight the first entry as the 43 Solution:After deleting any entry in the LDN,LRN,LMN book,we highlight the first entry as the
44 current selected entry. 44 current selected entry.
45 45
46 Jun 13, 2005 REF: SPR 31705 x0021308 46 Jun 13, 2005 REF: SPR 31705 x0021308
47 Description: Once maximum limit of the My Number is exceeded, display info : Phonebook full, 47 Description: Once maximum limit of the My Number is exceeded, display info : Phonebook full,
48 expected is MyNumber Full 48 expected is MyNumber Full
49 Solution: Replaced the Return tag in function Protected Menu Handler(booksetownNumber) from 49 Solution: Replaced the Return tag in function Protected Menu Handler(booksetownNumber) from
50 Phonebookfull with MyNumberfull. 50 Phonebookfull with MyNumberfull.
51 51
52 Jun 13, 2005 REF: SPR 31710 x0021308 52 Jun 13, 2005 REF: SPR 31710 x0021308
53 Description: Once maximum limit of the FDN Number is exceeded, display info : Phonebook full, 53 Description: Once maximum limit of the FDN Number is exceeded, display info : Phonebook full,
54 expected is FDNList Full 54 expected is FDNList Full
55 Solution: Replaced the Return tag in function Protected Menu Handler(booksetownNumber) from 55 Solution: Replaced the Return tag in function Protected Menu Handler(booksetownNumber) from
56 Phonebookfull with FDNListfull While checking whether in FDNMenu is active using MenuFDN global 56 Phonebookfull with FDNListfull While checking whether in FDNMenu is active using MenuFDN global
57 variable. 57 variable.
58 58
59 59
60 Sep 22, 2004 REF: CRR 21392 xvilliva 60 Sep 22, 2004 REF: CRR 21392 xvilliva
61 Bug: PIN2 Screen is not displaying, While Adding FDN Number thru 61 Bug: PIN2 Screen is not displaying, While Adding FDN Number thru
62 Recent call Menu. 62 Recent call Menu.
63 Fix: We add the "bookRepRedNameEnter" to "ProtectedActions" array. 63 Fix: We add the "bookRepRedNameEnter" to "ProtectedActions" array.
64 If FDN is enabled, Pin2 will be asked. 64 If FDN is enabled, Pin2 will be asked.
65 65
66 June 26, 2006 REF : OMAPS00083148 x0023848 66 June 26, 2006 REF : OMAPS00083148 x0023848
67 Bug: SMS send is failed when trying through missed call list 67 Bug: SMS send is failed when trying through missed call list
68 Fix: Assignemnt of SmsData.called_from_reply_item to FALSE is Added 68 Fix: Assignemnt of SmsData.called_from_reply_item to FALSE is Added
69 69
70 25/10/00 Original Condat(UK) BMI version. 70 25/10/00 Original Condat(UK) BMI version.
71
72 71
73 72
74 $End 73 $End
75 74
76 // Issue Number : MMI-FIX-12161 on 07/04/04 by Nishikant Kulkarni/Ajith K.P 75 // Issue Number : MMI-FIX-12161 on 07/04/04 by Nishikant Kulkarni/Ajith K.P
139 #include "MmiMain.h" 138 #include "MmiMain.h"
140 #include "MmiBookController.h" 139 #include "MmiBookController.h"
141 #include "MmiDummy.h" 140 #include "MmiDummy.h"
142 #include "MmiDialogs.h" 141 #include "MmiDialogs.h"
143 #include "MmiLists.h" 142 #include "MmiLists.h"
144
145 143
146 144
147 #include "MmiMenu.h" 145 #include "MmiMenu.h"
148 #include "mmiCall.h" 146 #include "mmiCall.h"
149 #include "Mmiicons.h" 147 #include "Mmiicons.h"
240 // Storing a number from recent call list would ask for Pin2, if FDN is enabled. 238 // Storing a number from recent call list would ask for Pin2, if FDN is enabled.
241 bookRepRedNameEnter, 239 bookRepRedNameEnter,
242 NULL }; 240 NULL };
243 241
244 // May 3, 2004 REF: CRR MMI-SPR-18555 Rashmi C N(Sasken) 242 // May 3, 2004 REF: CRR MMI-SPR-18555 Rashmi C N(Sasken)
245 // This flag will indicate when we are in FDN menu 243 // This flag will indicate when we are in FDN menu
246 int menuFDN; 244 int menuFDN;
247 extern T_call call_data; 245 extern T_call call_data;
248 246
249 247
250 /******************************************************************************* 248 /*******************************************************************************
284 // Sep 22, 2004 REF: CRR 21388 xvilliva 282 // Sep 22, 2004 REF: CRR 21388 xvilliva
285 // We check if the call is not from FDN menu and if the current storage 283 // We check if the call is not from FDN menu and if the current storage
286 // for phonebook is internal phone book, we avoid asking Pin2 accordingly. 284 // for phonebook is internal phone book, we avoid asking Pin2 accordingly.
287 if(menuFDN == 0 && bookActiveBook(WRITE) == PHB_IPB) 285 if(menuFDN == 0 && bookActiveBook(WRITE) == PHB_IPB)
288 { 286 {
289 //Do nothing. 287 //Do nothing.
290 } 288 }
291 // May 3, 2004 REF: CRR MMI-SPR-18555 Rashmi C N(Sasken) 289 // May 3, 2004 REF: CRR MMI-SPR-18555 Rashmi C N(Sasken)
292 // Pin2 should be prompted when user does FDN related operations in FDN menu 290 // Pin2 should be prompted when user does FDN related operations in FDN menu
293 // In FDN menu, receie an active call and FDN is disabled, pin2 should not be prompted for in call addressbook operations 291 // In FDN menu, receie an active call and FDN is disabled, pin2 should not be prompted for in call addressbook operations
294 else if ( phb_get_mode() == PHB_RESTRICTED || (menuFDN && (call_data.calls.numCalls==0))) 292 else if ( phb_get_mode() == PHB_RESTRICTED || (menuFDN && (call_data.calls.numCalls==0)))
295 { 293 {
296 /* Is the requested function one of the ones we need 294 /* Is the requested function one of the ones we need
297 to protect ? 295 to protect ?
333 ** This function will apply PIN2 protection to the associated menu functions at ALL times 331 ** This function will apply PIN2 protection to the associated menu functions at ALL times
334 ** 332 **
335 */ 333 */
336 static int Pin2Rqd( tProtectFunction FunTag, tProtectFunction FunPtr, tBookMfwMenu *Menu, tBookMfwMenuItem *Item ) 334 static int Pin2Rqd( tProtectFunction FunTag, tProtectFunction FunPtr, tBookMfwMenu *Menu, tBookMfwMenuItem *Item )
337 { 335 {
338 pBookMfwWin win_data = (pBookMfwWin) bookWindowData(); 336 pBookMfwWin win_data = (pBookMfwWin) bookWindowData();
339 pBookPhonebook book = ((pBookStandard)win_data->user)->phbk; 337 pBookPhonebook book = ((pBookStandard)win_data->user)->phbk;
340 // int i; // RAVI 338 // int i; // RAVI
341 339
342 /* Yup, so we need to store the pending action for 340 /* Yup, so we need to store the pending action for
343 this window, this will be invoked by the checking 341 this window, this will be invoked by the checking
344 operation, indirectly, if the check is successful 342 operation, indirectly, if the check is successful
345 */ 343 */
346 book->pin2_next = (T_VOID_FUNC) FunPtr; 344 book->pin2_next = (T_VOID_FUNC) FunPtr;
347 345
348 //We're cheating and passing the current window to the 346 //We're cheating and passing the current window to the
349 //handler via the unused menu parameter -- MC 347 //handler via the unused menu parameter -- MC
350 book->menu = (tBookMfwMenu*) bookCurrentWindow(); 348 book->menu = (tBookMfwMenu*) bookCurrentWindow();
351 book->item = Item; 349 book->item = Item;
352 350
353 /* Call out to get the pin2 number checked, this will 351 /* Call out to get the pin2 number checked, this will
354 respond with a message back to this object, which 352 respond with a message back to this object, which
355 we will deal with on receipt 353 we will deal with on receipt
356 */ 354 */
357 return pin2_check( bookCurrentWindow()); 355 return pin2_check( bookCurrentWindow());
358 } 356 }
359 357
360 /******************************************************************************* 358 /*******************************************************************************
361 359
362 Public methods 360 Public methods
413 */ 411 */
414 412
415 if (Phbk->UpdateAction!=ADD_FROM_IDLE) 413 if (Phbk->UpdateAction!=ADD_FROM_IDLE)
416 memset( Phbk->phbk->edt_buf_number, '\0', PHB_MAX_LEN ); 414 memset( Phbk->phbk->edt_buf_number, '\0', PHB_MAX_LEN );
417 /*MC SPR 1257, replacing PHB_MAX_LEN with MAX_ALPHA_LEN for name strings*/ 415 /*MC SPR 1257, replacing PHB_MAX_LEN with MAX_ALPHA_LEN for name strings*/
418 memset( Phbk->phbk->edt_buf_name, '\0', MAX_ALPHA_LEN ); 416 memset( Phbk->phbk->edt_buf_name, '\0', MAX_ALPHA_LEN );
419 /* Indicate this is an additional entry being created 417 /* Indicate this is an additional entry being created
420 */ 418 */
421 Phbk->UpdateAction = CREATE_ENTRY; 419 Phbk->UpdateAction = CREATE_ENTRY;
422 420
423 // May 3, 2004 REF: CRR MMI-SPR-18555 Rashmi C N(Sasken) 421 // May 3, 2004 REF: CRR MMI-SPR-18555 Rashmi C N(Sasken)
424 // As the book is being changed for FDN menu operations, we need to 422 // As the book is being changed for FDN menu operations, we need to
425 // get back the current book for the normal phonbook operations 423 // get back the current book for the normal phonbook operations
426 Phbk->current.status.book = bookActiveBook(READ); 424 Phbk->current.status.book = bookActiveBook(READ);
427 425
428 /* Determine if we have room to add any new entries 426 /* Determine if we have room to add any new entries
429 */ 427 */
430 bookGetCurrentStatus( &Phbk->phbk->current.status ); 428 bookGetCurrentStatus( &Phbk->phbk->current.status );
440 /* We have no room available to add the name, so check if 438 /* We have no room available to add the name, so check if
441 we have filled the namespace or not 439 we have filled the namespace or not
442 */ 440 */
443 441
444 /*If FDN menu active and no room for entries, then display FDN list full */ 442 /*If FDN menu active and no room for entries, then display FDN list full */
445 tIndexTagNames Tag ; 443 tIndexTagNames Tag ;
446 if(menuFDN) 444 if(menuFDN)
447 { 445 {
448 Tag = ( Phbk->phbk->current.status.used_entries ) 446 Tag = ( Phbk->phbk->current.status.used_entries )
449 ? TxtFDNListFull : TxtOperationNotAvail; //SPR 31710 x0021308:RamG 447 ? TxtFDNListFull : TxtOperationNotAvail; //SPR 31710 x0021308:RamG
450 } 448 }
451 else 449 else
452 { 450 {
453 Tag = ( Phbk->phbk->current.status.used_entries ) 451 Tag = ( Phbk->phbk->current.status.used_entries )
454 ? TxtPhbkFull : TxtOperationNotAvail; 452 ? TxtPhbkFull : TxtOperationNotAvail;
455 } 453 }
456 bookShowInformation( win, Tag,NULL, NULL ); 454 bookShowInformation( win, Tag,NULL, NULL );
457 455
458 456
459 } 457 }
460 458
487 T_phbk *Phbk = data->phbk; 485 T_phbk *Phbk = data->phbk;
488 486
489 /* Indicate this is an edit of a current entry 487 /* Indicate this is an edit of a current entry
490 */ 488 */
491 Phbk->UpdateAction = MODIFY_EXISTING; 489 Phbk->UpdateAction = MODIFY_EXISTING;
492 /*MC SPR 1327, if UPN don't change phonebook type*/ 490 /*MC SPR 1327, if UPN don't change phonebook type*/
493 if (data->phbk->current.status.book != PHB_UPN) 491 if (data->phbk->current.status.book != PHB_UPN)
494 data->phbk->current.status.book = bookActiveBook(READ); 492 data->phbk->current.status.book = bookActiveBook(READ);
495 493
496 /*api - clear buffers before edit 494 /*api - clear buffers before edit
497 */ 495 */
498 memset( Phbk->phbk->edt_buf_number, '\0', PHB_MAX_LEN ); 496 memset( Phbk->phbk->edt_buf_number, '\0', PHB_MAX_LEN );
499 memset( Phbk->phbk->edt_buf_name, '\0', MAX_ALPHA_LEN ); 497 memset( Phbk->phbk->edt_buf_name, '\0', MAX_ALPHA_LEN );
500 498
501 TRACE_EVENT_P2("current phbk is = %d and current entry is = %d", data->phbk->current.status.book,data->phbk->current.entry[ data->phbk->current.selectedName ].book); 499 TRACE_EVENT_P2("current phbk is = %d and current entry is = %d", data->phbk->current.status.book,data->phbk->current.entry[ data->phbk->current.selectedName ].book);
502 500
503 if(data->phbk->current.status.book == PHB_ADN_FDN) 501 if(data->phbk->current.status.book == PHB_ADN_FDN)
504 { 502 {
505 if(data->phbk->current.entry[ data->phbk->current.selectedName ].book==PHB_FDN) 503 if(data->phbk->current.entry[ data->phbk->current.selectedName ].book==PHB_FDN)
506 { 504 {
507 bookActivateFDN((T_MFW_HND)Menu); 505 bookActivateFDN((T_MFW_HND)Menu);
508 } 506 }
509 else 507 else
510 { 508 {
511 /* And populate the buffers with the information to be modified 509 /* And populate the buffers with the information to be modified
512 */ 510 */
513 #ifdef NO_ASCIIZ 511 #ifdef NO_ASCIIZ
514 /*MC , SPR 1242 copy whole name, merged from b-sample build*/ 512 /*MC , SPR 1242 copy whole name, merged from b-sample build*/
515 memcpy( Phbk->phbk->edt_buf_name, Phbk->current.entry[ Phbk->current.selectedName ].name.data, MAX_ALPHA_LEN /*Phbk->current.entry[ Phbk->current.selectedName ].name.len*/); 513 memcpy( Phbk->phbk->edt_buf_name, Phbk->current.entry[ Phbk->current.selectedName ].name.data, MAX_ALPHA_LEN /*Phbk->current.entry[ Phbk->current.selectedName ].name.len*/);
516 #else 514 #else
517 memcpy( Phbk->phbk->edt_buf_name, Phbk->current.entry[ Phbk->current.selectedName ].name, MAX_ALPHA_LEN ); 515 memcpy( Phbk->phbk->edt_buf_name, Phbk->current.entry[ Phbk->current.selectedName ].name, MAX_ALPHA_LEN );
518 #endif 516 #endif
519 memcpy( Phbk->phbk->edt_buf_number, Phbk->current.entry[ Phbk->current.selectedName ].number, PHB_MAX_LEN ); 517 memcpy( Phbk->phbk->edt_buf_number, Phbk->current.entry[ Phbk->current.selectedName ].number, PHB_MAX_LEN );
520 518
521 /* And edit the entry we currently have active 519 /* And edit the entry we currently have active
522 */ 520 */
523 Phbk->input_number_win = bookInputStartNumberEditor( win, Phbk->edt_buf_number ); 521 Phbk->input_number_win = bookInputStartNumberEditor( win, Phbk->edt_buf_number );
524 } 522 }
525 } 523 }
526 else 524 else
527 { 525 {
528 /* And populate the buffers with the information to be modified 526 /* And populate the buffers with the information to be modified
529 */ 527 */
530 #ifdef NO_ASCIIZ 528 #ifdef NO_ASCIIZ
531 /*MC , SPR 1242 copy whole name, merged from b-sample build*/ 529 /*MC , SPR 1242 copy whole name, merged from b-sample build*/
532 memcpy( Phbk->phbk->edt_buf_name, Phbk->current.entry[ Phbk->current.selectedName ].name.data, MAX_ALPHA_LEN/*Phbk->current.entry[ Phbk->current.selectedName ].name.len*/); 530 memcpy( Phbk->phbk->edt_buf_name, Phbk->current.entry[ Phbk->current.selectedName ].name.data, MAX_ALPHA_LEN/*Phbk->current.entry[ Phbk->current.selectedName ].name.len*/);
533 #else 531 #else
534 memcpy( Phbk->phbk->edt_buf_name, Phbk->current.entry[ Phbk->current.selectedName ].name, MAX_ALPHA_LEN ); 532 memcpy( Phbk->phbk->edt_buf_name, Phbk->current.entry[ Phbk->current.selectedName ].name, MAX_ALPHA_LEN );
535 #endif 533 #endif
536 memcpy( Phbk->phbk->edt_buf_number, Phbk->current.entry[ Phbk->current.selectedName ].number, PHB_MAX_LEN ); 534 memcpy( Phbk->phbk->edt_buf_number, Phbk->current.entry[ Phbk->current.selectedName ].number, PHB_MAX_LEN );
537 535
538 /* And edit the entry we currently have active 536 /* And edit the entry we currently have active
539 */ 537 */
540 Phbk->input_number_win = bookInputStartNumberEditor( win, Phbk->edt_buf_number ); 538 Phbk->input_number_win = bookInputStartNumberEditor( win, Phbk->edt_buf_number );
541 } 539 }
542 /* Always return event consumed 540 /* Always return event consumed
543 */ 541 */
544 return MFW_EVENT_CONSUMED; 542 return MFW_EVENT_CONSUMED;
545 } 543 }
546 544
560 *******************************************************************************/ 558 *******************************************************************************/
561 559
562 PROTECTED_MENU_HANDLER( bookNameDelete ) 560 PROTECTED_MENU_HANDLER( bookNameDelete )
563 { 561 {
564 562
565 //recast the menu parameter as the current window -- MC 563 //recast the menu parameter as the current window -- MC
566 //and pass it on 564 //and pass it on
567 //when ADN_FDN phonebook in use check if current entry is FDN 565 //when ADN_FDN phonebook in use check if current entry is FDN
568 //is so then call information screen or allow entry to be deleted. --- AP 23/01/02 566 //is so then call information screen or allow entry to be deleted. --- AP 23/01/02
569 //Issue 1944 MZ Allow an entry in FDN list to be deleted. 567 //Issue 1944 MZ Allow an entry in FDN list to be deleted.
570 T_MFW_HND win = (T_MFW_HND)Menu; 568 T_MFW_HND win = (T_MFW_HND)Menu;
571 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; 569 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data;
572 tBookStandard *data = (tBookStandard *) win_data->user; 570 tBookStandard *data = (tBookStandard *) win_data->user;
573 571
574 /*MC SPR 1327, if UPN don't change phonebook type*/ 572 /*MC SPR 1327, if UPN don't change phonebook type*/
575 if (data->phbk->current.status.book != PHB_UPN) 573 if (data->phbk->current.status.book != PHB_UPN)
576 data->phbk->current.status.book = bookActiveBook(READ); 574 data->phbk->current.status.book = bookActiveBook(READ);
577 if(data->phbk->current.status.book == PHB_ADN_FDN) 575 if(data->phbk->current.status.book == PHB_ADN_FDN)
578 if(data->phbk->current.entry[ data->phbk->current.selectedName ].book==PHB_FDN) 576 if(data->phbk->current.entry[ data->phbk->current.selectedName ].book==PHB_FDN)
579 bookActivateFDN((T_MFW_HND)Menu); 577 bookActivateFDN((T_MFW_HND)Menu);
580 else 578 else
581 bookDeleteEntry((T_MFW_HND)Menu); 579 bookDeleteEntry((T_MFW_HND)Menu);
582 else 580 else
583 bookDeleteEntry((T_MFW_HND)Menu); 581 bookDeleteEntry((T_MFW_HND)Menu);
584 582
585 return MFW_EVENT_CONSUMED; 583 return MFW_EVENT_CONSUMED;
586 } 584 }
587 585
588 /******************************************************************************* 586 /*******************************************************************************
603 { T_MFW_HND win = mfwParent( mfw_header() ); 601 { T_MFW_HND win = mfwParent( mfw_header() );
604 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; 602 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data;
605 tBookStandard *data = (tBookStandard *) win_data->user; 603 tBookStandard *data = (tBookStandard *) win_data->user;
606 T_phbk *Phbk = data->phbk; 604 T_phbk *Phbk = data->phbk;
607 605
608 callNumber( Phbk->current.entry[ Phbk->current.selectedName ].number ); 606 callNumber( Phbk->current.entry[ Phbk->current.selectedName ].number );
609 return MFW_EVENT_CONSUMED; 607 return MFW_EVENT_CONSUMED;
610 } 608 }
611 609
612 610
613 /******************************************************************************* 611 /*******************************************************************************
668 } 666 }
669 else 667 else
670 { 668 {
671 MmiBookSetCurrentText(TxtFailed); 669 MmiBookSetCurrentText(TxtFailed);
672 bookShowInformation( Phbk->win, MmiBookCurrentText(),NULL, NULL ); 670 bookShowInformation( Phbk->win, MmiBookCurrentText(),NULL, NULL );
673 bookPhonebookDestroy(Phbk->win); 671 bookPhonebookDestroy(Phbk->win);
674 } 672 }
675 673
676 return MFW_EVENT_CONSUMED; 674 return MFW_EVENT_CONSUMED;
677 } 675 }
678 676
695 T_MFW_HND win = mfwParent( mfw_header() ); 693 T_MFW_HND win = mfwParent( mfw_header() );
696 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; 694 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data;
697 tBookStandard *data = (tBookStandard *) win_data->user; 695 tBookStandard *data = (tBookStandard *) win_data->user;
698 696
699 data->phbk->current.KindOfSearch = SEARCH_BY_NAME; 697 data->phbk->current.KindOfSearch = SEARCH_BY_NAME;
700 data->phbk->current.status.book = bookActiveBook(READ); 698 data->phbk->current.status.book = bookActiveBook(READ);
701 data->phbk->search_win = bookSearchStart( data->phbk->win ); 699 data->phbk->search_win = bookSearchStart( data->phbk->win );
702 700
703 return MFW_EVENT_CONSUMED; 701 return MFW_EVENT_CONSUMED;
704 } 702 }
705
706 703
707 704
708 /******************************************************************************* 705 /*******************************************************************************
709 706
710 $Function: bookNumberSearch 707 $Function: bookNumberSearch
724 T_MFW_HND win = mfwParent( mfw_header() ); 721 T_MFW_HND win = mfwParent( mfw_header() );
725 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; 722 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data;
726 tBookStandard *data = (tBookStandard *) win_data->user; 723 tBookStandard *data = (tBookStandard *) win_data->user;
727 724
728 data->phbk->current.KindOfSearch = SEARCH_BY_NUMBER; 725 data->phbk->current.KindOfSearch = SEARCH_BY_NUMBER;
729 data->phbk->current.status.book = bookActiveBook(READ); 726 data->phbk->current.status.book = bookActiveBook(READ);
730 data->phbk->search_win = bookSearchStart( data->phbk->win ); 727 data->phbk->search_win = bookSearchStart( data->phbk->win );
731 728
732 return MFW_EVENT_CONSUMED; 729 return MFW_EVENT_CONSUMED;
733 } 730 }
734 731
735 732
753 T_MFW_HND win = mfwParent( mfw_header() ); 750 T_MFW_HND win = mfwParent( mfw_header() );
754 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; 751 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data;
755 tBookStandard *data = (tBookStandard *) win_data->user; 752 tBookStandard *data = (tBookStandard *) win_data->user;
756 753
757 data->phbk->current.KindOfSearch = SEARCH_BY_LOCATION; 754 data->phbk->current.KindOfSearch = SEARCH_BY_LOCATION;
758 data->phbk->current.status.book = bookActiveBook(READ); 755 data->phbk->current.status.book = bookActiveBook(READ);
759 data->phbk->search_win = bookSearchStart( data->phbk->win ); 756 data->phbk->search_win = bookSearchStart( data->phbk->win );
760 757
761 return MFW_EVENT_CONSUMED; 758 return MFW_EVENT_CONSUMED;
762 } 759 }
763 760
764 761
776 773
777 *******************************************************************************/ 774 *******************************************************************************/
778 775
779 PROTECTED_MENU_HANDLER( bookNameDeleteAll ) 776 PROTECTED_MENU_HANDLER( bookNameDeleteAll )
780 { 777 {
781 return NULL; 778 return NULL;
782 } 779 }
783
784
785 780
786 781
787 /******************************************************************************* 782 /*******************************************************************************
788 783
789 $Function: bookNameMessage 784 $Function: bookNameMessage
845 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; 840 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data;
846 tBookStandard *data = (tBookStandard *) win_data->user; 841 tBookStandard *data = (tBookStandard *) win_data->user;
847 842
848 843
849 data->phbk->current.KindOfSearch = SEARCH_BY_NAME; 844 data->phbk->current.KindOfSearch = SEARCH_BY_NAME;
850 data->phbk->current.status.book = PHB_UPN; 845 data->phbk->current.status.book = PHB_UPN;
851 data->phbk->search_win = bookSearchStart( data->phbk->win ); 846 data->phbk->search_win = bookSearchStart( data->phbk->win );
852 847
853 return MFW_EVENT_CONSUMED; 848 return MFW_EVENT_CONSUMED;
854 } 849 }
855 850
856 851
875 T_phbk *Phbk = data->phbk; 870 T_phbk *Phbk = data->phbk;
876 871
877 /* Clear the input editor structures before we go any further 872 /* Clear the input editor structures before we go any further
878 */ 873 */
879 /*MC SPR 1257, replacing PHB_MAX_LEN with MAX_ALPHA_LEN for name strings*/ 874 /*MC SPR 1257, replacing PHB_MAX_LEN with MAX_ALPHA_LEN for name strings*/
880 memset( Phbk->phbk->edt_buf_name, '\0', MAX_ALPHA_LEN ); 875 memset( Phbk->phbk->edt_buf_name, '\0', MAX_ALPHA_LEN );
881 memset( Phbk->phbk->edt_buf_number, '\0', PHB_MAX_LEN ); 876 memset( Phbk->phbk->edt_buf_number, '\0', PHB_MAX_LEN );
882 877
883 /* Indicate this is an additional entry being created 878 /* Indicate this is an additional entry being created
884 */ 879 */
885 Phbk->UpdateAction = CREATE_ENTRY; 880 Phbk->UpdateAction = CREATE_ENTRY;
886 data->phbk->current.status.book = PHB_UPN; 881 data->phbk->current.status.book = PHB_UPN;
887 /* Determine if we have room to add any new entries 882 /* Determine if we have room to add any new entries
888 */ 883 */
889 bookGetCurrentStatus( &Phbk->phbk->current.status ); 884 bookGetCurrentStatus( &Phbk->phbk->current.status );
890 if ( Phbk->phbk->current.status.avail_entries ) 885 if ( Phbk->phbk->current.status.avail_entries )
891 { 886 {
933 tBookStandard *data = (tBookStandard *) win_data->user; 928 tBookStandard *data = (tBookStandard *) win_data->user;
934 T_phbk *Phbk = data->phbk; 929 T_phbk *Phbk = data->phbk;
935 char* selected_number; 930 char* selected_number;
936 931
937 selected_number = (char*)data->phbk->current.entry[data->phbk->current.selectedName].number; 932 selected_number = (char*)data->phbk->current.entry[data->phbk->current.selectedName].number;
938 // Sep 22, 2004 REF: CRR 21392 xvilliva 933 // Sep 22, 2004 REF: CRR 21392 xvilliva
939 // We get the exact book that is selected. 934 // We get the exact book that is selected.
940 data->phbk->current.status.book = bookActiveBook(WRITE); 935 data->phbk->current.status.book = bookActiveBook(WRITE);
941 936
942 Phbk->UpdateAction = CREATE_ENTRY; 937 Phbk->UpdateAction = CREATE_ENTRY;
943 bookGetCurrentStatus( &Phbk->phbk->current.status ); 938 bookGetCurrentStatus( &Phbk->phbk->current.status );
944 if ( Phbk->phbk->current.status.avail_entries ) 939 if ( Phbk->phbk->current.status.avail_entries )
945 { 940 {
983 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; 978 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data;
984 tBookStandard *data = (tBookStandard *) win_data->user; 979 tBookStandard *data = (tBookStandard *) win_data->user;
985 T_phbk *Phbk = data->phbk; 980 T_phbk *Phbk = data->phbk;
986 981
987 982
988
989 deleteFromFile(Phbk,Phbk->current.status.book); 983 deleteFromFile(Phbk,Phbk->current.status.book);
990 bookShowInformation( Phbk->win, MmiBookCurrentText(),NULL, NULL ); 984 bookShowInformation( Phbk->win, MmiBookCurrentText(),NULL, NULL );
991 bookMenuDestroy(Phbk->menu_call_options_win); 985 bookMenuDestroy(Phbk->menu_call_options_win);
992 // July 21, 2006 REF:DR OMAPS00085695 x0047075 986 // July 21, 2006 REF:DR OMAPS00085695 x0047075
993 // Fix : Always sending the CALLS_LIST_INIT event whenever we delete an entry from LDN ,LRN,LMN phonebook. 987 // Fix : Always sending the CALLS_LIST_INIT event whenever we delete an entry from LDN ,LRN,LMN phonebook.
994 // if(Phbk->current.status.used_entries > 0) 988 // if(Phbk->current.status.used_entries > 0)
995 // SEND_EVENT(Phbk->calls_list_win, SEARCH_SCROLL_UP, 0, 0 ); 989 // SEND_EVENT(Phbk->calls_list_win, SEARCH_SCROLL_UP, 0, 0 );
996 SEND_EVENT(Phbk->calls_list_win, CALLS_LIST_INIT, 0, (void*)Phbk->current.status.book ); 990 SEND_EVENT(Phbk->calls_list_win, CALLS_LIST_INIT, 0, (void*)Phbk->current.status.book );
997 return 1; 991 return 1;
998 } 992 }
999 993
1000 994
1017 T_MFW_HND win = mfwParent( mfw_header() ); 1011 T_MFW_HND win = mfwParent( mfw_header() );
1018 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; 1012 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data;
1019 tBookStandard *data = (tBookStandard *) win_data->user; 1013 tBookStandard *data = (tBookStandard *) win_data->user;
1020 T_phbk *Phbk = data->phbk; 1014 T_phbk *Phbk = data->phbk;
1021 1015
1022 bookCallDetailsStart( Phbk->win); 1016 bookCallDetailsStart( Phbk->win);
1023 return 1; 1017 return 1;
1024 1018 }
1025 }
1026
1027 1019
1028 1020
1029 /******************************************************************************* 1021 /*******************************************************************************
1030 1022
1031 $Function: bookServiceNumbers 1023 $Function: bookServiceNumbers
1045 T_MFW_HND win = mfwParent( mfw_header() ); 1037 T_MFW_HND win = mfwParent( mfw_header() );
1046 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; 1038 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data;
1047 tBookStandard *data = (tBookStandard *) win_data->user; 1039 tBookStandard *data = (tBookStandard *) win_data->user;
1048 1040
1049 data->phbk->current.KindOfSearch = SEARCH_BY_NAME; 1041 data->phbk->current.KindOfSearch = SEARCH_BY_NAME;
1050 data->phbk->current.status.book = PHB_SDN; 1042 data->phbk->current.status.book = PHB_SDN;
1051 data->phbk->search_win = bookSearchStart( data->phbk->win ); 1043 data->phbk->search_win = bookSearchStart( data->phbk->win );
1052 1044
1053 return MFW_EVENT_CONSUMED; 1045 return MFW_EVENT_CONSUMED;
1054 } 1046 }
1055 1047
1056 1048
1071 PROTECTED_MENU_HANDLER( bookMemoryStatus ) 1063 PROTECTED_MENU_HANDLER( bookMemoryStatus )
1072 { 1064 {
1073 /* This performs the memory view functions, and returns MFW_EVENT_CONSUMED 1065 /* This performs the memory view functions, and returns MFW_EVENT_CONSUMED
1074 in all cases. 1066 in all cases.
1075 */ 1067 */
1076 bookMemoryView(); 1068 bookMemoryView();
1077 return MFW_EVENT_CONSUMED; 1069 return MFW_EVENT_CONSUMED;
1078 } 1070 }
1079 1071
1080 1072
1081 /******************************************************************************* 1073 /*******************************************************************************
1135 1127
1136 PROTECTED_MENU_HANDLER( bookEnterLDN ) 1128 PROTECTED_MENU_HANDLER( bookEnterLDN )
1137 { 1129 {
1138 T_MFW_HND win = mfwParent( mfw_header() ); 1130 T_MFW_HND win = mfwParent( mfw_header() );
1139 1131
1140 bookPhonebookStart(win,PhbkRedialListNormal); 1132 bookPhonebookStart(win,PhbkRedialListNormal);
1141 return MFW_EVENT_CONSUMED; 1133 return MFW_EVENT_CONSUMED;
1142 } 1134 }
1143 /******************************************************************************* 1135 /*******************************************************************************
1144 1136
1145 $Function: bookEnterLRN 1137 $Function: bookEnterLRN
1156 1148
1157 PROTECTED_MENU_HANDLER( bookEnterLRN ) 1149 PROTECTED_MENU_HANDLER( bookEnterLRN )
1158 { 1150 {
1159 T_MFW_HND win = mfwParent( mfw_header() ); 1151 T_MFW_HND win = mfwParent( mfw_header() );
1160 1152
1161 bookPhonebookStart(win,PhbkReplyListNormal); 1153 bookPhonebookStart(win,PhbkReplyListNormal);
1162 return MFW_EVENT_CONSUMED; 1154 return MFW_EVENT_CONSUMED;
1163 } 1155 }
1164 1156
1165 /******************************************************************************* 1157 /*******************************************************************************
1166 1158
1207 *******************************************************************************/ 1199 *******************************************************************************/
1208 1200
1209 PROTECTED_MENU_HANDLER( bookSelectBook ) 1201 PROTECTED_MENU_HANDLER( bookSelectBook )
1210 { 1202 {
1211 T_MFW_HND win = mfwParent( mfw_header() ); 1203 T_MFW_HND win = mfwParent( mfw_header() );
1212 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; 1204 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data;
1213 tBookStandard *data = (tBookStandard *) win_data->user; 1205 tBookStandard *data = (tBookStandard *) win_data->user;
1214 T_phbk *Phbk = data->phbk; 1206 T_phbk *Phbk = data->phbk;
1215 T_MFW_HND menu_win; 1207 T_MFW_HND menu_win;
1216 UBYTE selectedBook; 1208 UBYTE selectedBook;
1217 1209
1218 TRACE_FUNCTION("bookSelectBook"); 1210 TRACE_FUNCTION("bookSelectBook");
1219 1211
1220 if (bookGetBookAvailable()) 1212 if (bookGetBookAvailable())
1221 { 1213 {
1222 selectedBook = (UBYTE)bookGetBookSelected(); 1214 selectedBook = (UBYTE)bookGetBookSelected();
1223 menu_win = bookMenuStart(Phbk->win, SelectBookAttributes(), 0); 1215 menu_win = bookMenuStart(Phbk->win, SelectBookAttributes(), 0);
1224 SEND_EVENT(menu_win, DEFAULT_OPTION, NULL, (void *)&selectedBook); // Add our own callback 1216 SEND_EVENT(menu_win, DEFAULT_OPTION, NULL, (void *)&selectedBook); // Add our own callback
1225 } 1217 }
1226 else 1218 else
1227 { 1219 {
1228 bookShowInformation( Phbk->win, TxtNotAvailable, NULL, NULL); 1220 bookShowInformation( Phbk->win, TxtNotAvailable, NULL, NULL);
1229 } 1221 }
1230 1222
1231 return MFW_EVENT_CONSUMED; 1223 return MFW_EVENT_CONSUMED;
1232 } 1224 }
1233 1225
1234 1226
1245 *******************************************************************************/ 1237 *******************************************************************************/
1246 1238
1247 PROTECTED_MENU_HANDLER( bookSelectBookSIM ) 1239 PROTECTED_MENU_HANDLER( bookSelectBookSIM )
1248 { 1240 {
1249 T_MFW_HND win = mfwParent( mfw_header() ); 1241 T_MFW_HND win = mfwParent( mfw_header() );
1250 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; 1242 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data;
1251 tBookStandard *data = (tBookStandard *) win_data->user; 1243 tBookStandard *data = (tBookStandard *) win_data->user;
1252 T_phbk *Phbk = data->phbk; 1244 T_phbk *Phbk = data->phbk;
1253 1245
1254 if (bookGetBookAvailable()) 1246 if (bookGetBookAvailable())
1255 { 1247 {
1256 bookSetBookSelected(FALSE); 1248 bookSetBookSelected(FALSE);
1257 bookShowInfoScreen( Phbk->win, TxtPleaseWait, NULL, (T_VOID_FUNC)bookChangePB, (USHORT)bookGetBookSelected(), 100); 1249 bookShowInfoScreen( Phbk->win, TxtPleaseWait, NULL, (T_VOID_FUNC)bookChangePB, (USHORT)bookGetBookSelected(), 100);
1258 } 1250 }
1259 else 1251 else
1260 bookShowInfoScreen( Phbk->win, TxtPhonebook, TxtChanged, NULL, NULL, 3000); 1252 bookShowInfoScreen( Phbk->win, TxtPhonebook, TxtChanged, NULL, NULL, 3000);
1261 1253
1262 return MFW_EVENT_CONSUMED; 1254 return MFW_EVENT_CONSUMED;
1263 } 1255 }
1264 1256
1265 1257
1275 1267
1276 *******************************************************************************/ 1268 *******************************************************************************/
1277 1269
1278 PROTECTED_MENU_HANDLER( bookSelectBookPhone ) 1270 PROTECTED_MENU_HANDLER( bookSelectBookPhone )
1279 { 1271 {
1280 T_MFW_HND win = mfwParent( mfw_header() ); 1272 T_MFW_HND win = mfwParent( mfw_header() );
1281 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; 1273 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data;
1282 tBookStandard *data = (tBookStandard *) win_data->user; 1274 tBookStandard *data = (tBookStandard *) win_data->user;
1283 T_phbk *Phbk = data->phbk; 1275 T_phbk *Phbk = data->phbk;
1284 1276
1285 if (bookGetBookAvailable()) 1277 if (bookGetBookAvailable())
1286 { 1278 {
1287 bookSetBookSelected(TRUE); 1279 bookSetBookSelected(TRUE);
1288 bookShowInfoScreen( Phbk->win, TxtPleaseWait, NULL, (T_VOID_FUNC)bookChangePB, (USHORT)bookGetBookSelected(), 100); 1280 bookShowInfoScreen( Phbk->win, TxtPleaseWait, NULL, (T_VOID_FUNC)bookChangePB, (USHORT)bookGetBookSelected(), 100);
1289 } 1281 }
1290 else 1282 else
1291 { 1283 {
1292 bookShowInformation( Phbk->win, TxtNotAvailable,NULL, NULL ); 1284 bookShowInformation( Phbk->win, TxtNotAvailable,NULL, NULL );
1293 } 1285 }
1294 1286
1295 return MFW_EVENT_CONSUMED; 1287 return MFW_EVENT_CONSUMED;
1296 } 1288 }
1297 1289
1298 /******************************************************************************* 1290 /*******************************************************************************
1307 1299
1308 *******************************************************************************/ 1300 *******************************************************************************/
1309 1301
1310 PROTECTED_MENU_HANDLER( bookCopyEntry ) 1302 PROTECTED_MENU_HANDLER( bookCopyEntry )
1311 { 1303 {
1312 T_MFW_HND win = mfwParent( mfw_header() ); 1304 T_MFW_HND win = mfwParent( mfw_header() );
1313 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; 1305 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data;
1314 tBookStandard *data = (tBookStandard *) win_data->user; 1306 tBookStandard *data = (tBookStandard *) win_data->user;
1315 T_phbk *Phbk = data->phbk; 1307 T_phbk *Phbk = data->phbk;
1316 1308
1317 TRACE_FUNCTION( "bookCopyEntry()" ); 1309 TRACE_FUNCTION( "bookCopyEntry()" );
1318 1310
1319 if (bookGetBookAvailable()) 1311 if (bookGetBookAvailable())
1320 { 1312 {
1321 /* Show Please Wait dialog briefly, then call copy function 1313 /* Show Please Wait dialog briefly, then call copy function
1322 */ 1314 */
1323 bookShowInfoScreen( Phbk->win, TxtPleaseWait, NULL, (T_VOID_FUNC)bookCopySingle, (USHORT)FALSE, 100); 1315 bookShowInfoScreen( Phbk->win, TxtPleaseWait, NULL, (T_VOID_FUNC)bookCopySingle, (USHORT)FALSE, 100);
1324 } 1316 }
1325 else 1317 else
1326 { 1318 {
1327 bookShowInformation( Phbk->win, TxtNotAvailable, NULL, NULL); 1319 bookShowInformation( Phbk->win, TxtNotAvailable, NULL, NULL);
1328 } 1320 }
1329 1321
1330 return MFW_EVENT_CONSUMED; 1322 return MFW_EVENT_CONSUMED;
1331 } 1323 }
1332 1324
1333 /******************************************************************************* 1325 /*******************************************************************************
1342 1334
1343 *******************************************************************************/ 1335 *******************************************************************************/
1344 1336
1345 PROTECTED_MENU_HANDLER( bookCopyAll ) 1337 PROTECTED_MENU_HANDLER( bookCopyAll )
1346 { 1338 {
1347 T_MFW_HND win = mfwParent( mfw_header() ); 1339 T_MFW_HND win = mfwParent( mfw_header() );
1348 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; 1340 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data;
1349 tBookStandard *data = (tBookStandard *) win_data->user; 1341 tBookStandard *data = (tBookStandard *) win_data->user;
1350 T_phbk *Phbk = data->phbk; 1342 T_phbk *Phbk = data->phbk;
1351 1343
1352 TRACE_FUNCTION( "bookCopyAll()" ); 1344 TRACE_FUNCTION( "bookCopyAll()" );
1353 1345
1354 if (bookGetBookAvailable()) 1346 if (bookGetBookAvailable())
1355 { 1347 {
1356 /* Copy 1348 /* Copy
1357 */ 1349 */
1358 bookCopyMultiple(Phbk->win, FALSE, 0); 1350 bookCopyMultiple(Phbk->win, FALSE, 0);
1359 } 1351 }
1360 else 1352 else
1361 { 1353 {
1362 bookShowInformation( Phbk->win, TxtNotAvailable, NULL, NULL); 1354 bookShowInformation( Phbk->win, TxtNotAvailable, NULL, NULL);
1363 } 1355 }
1364 1356
1365 return MFW_EVENT_CONSUMED; 1357 return MFW_EVENT_CONSUMED;
1366 } 1358 }
1367 1359
1368 /******************************************************************************* 1360 /*******************************************************************************
1377 1369
1378 *******************************************************************************/ 1370 *******************************************************************************/
1379 1371
1380 PROTECTED_MENU_HANDLER( bookMoveEntry ) 1372 PROTECTED_MENU_HANDLER( bookMoveEntry )
1381 { 1373 {
1382 T_MFW_HND win = mfwParent( mfw_header() ); 1374 T_MFW_HND win = mfwParent( mfw_header() );
1383 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; 1375 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data;
1384 tBookStandard *data = (tBookStandard *) win_data->user; 1376 tBookStandard *data = (tBookStandard *) win_data->user;
1385 T_phbk *Phbk = data->phbk; 1377 T_phbk *Phbk = data->phbk;
1386 1378
1387 TRACE_FUNCTION( "bookMoveEntry()" ); 1379 TRACE_FUNCTION( "bookMoveEntry()" );
1388 1380
1389 if (bookGetBookAvailable()) 1381 if (bookGetBookAvailable())
1390 { 1382 {
1391 /* Show Please Wait dialog briefly, then call move function 1383 /* Show Please Wait dialog briefly, then call move function
1392 */ 1384 */
1393 bookShowInfoScreen( Phbk->win, TxtPleaseWait, NULL, (T_VOID_FUNC)bookCopySingle, (USHORT)TRUE, 100); 1385 bookShowInfoScreen( Phbk->win, TxtPleaseWait, NULL, (T_VOID_FUNC)bookCopySingle, (USHORT)TRUE, 100);
1394 } 1386 }
1395 else 1387 else
1396 { 1388 {
1397 bookShowInformation( Phbk->win, TxtNotAvailable, NULL, NULL); 1389 bookShowInformation( Phbk->win, TxtNotAvailable, NULL, NULL);
1398 } 1390 }
1399 1391
1400 return MFW_EVENT_CONSUMED; 1392 return MFW_EVENT_CONSUMED;
1401 } 1393 }
1402 1394
1403 /******************************************************************************* 1395 /*******************************************************************************
1412 1404
1413 *******************************************************************************/ 1405 *******************************************************************************/
1414 1406
1415 PROTECTED_MENU_HANDLER( bookMoveAll ) 1407 PROTECTED_MENU_HANDLER( bookMoveAll )
1416 { 1408 {
1417 T_MFW_HND win = mfwParent( mfw_header() ); 1409 T_MFW_HND win = mfwParent( mfw_header() );
1418 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; 1410 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data;
1419 tBookStandard *data = (tBookStandard *) win_data->user; 1411 tBookStandard *data = (tBookStandard *) win_data->user;
1420 T_phbk *Phbk = data->phbk; 1412 T_phbk *Phbk = data->phbk;
1421 1413
1422 TRACE_FUNCTION( "bookMoveAll()" ); 1414 TRACE_FUNCTION( "bookMoveAll()" );
1423 1415
1424 if (bookGetBookAvailable()) 1416 if (bookGetBookAvailable())
1425 { 1417 {
1426 /* Show Please Wait dialog briefly, then call copy function 1418 /* Show Please Wait dialog briefly, then call copy function
1427 */ 1419 */
1428 bookCopyMultiple(Phbk->win, TRUE, 0); 1420 bookCopyMultiple(Phbk->win, TRUE, 0);
1429 } 1421 }
1430 else 1422 else
1431 { 1423 {
1432 bookShowInformation( Phbk->win, TxtNotAvailable, NULL, NULL); 1424 bookShowInformation( Phbk->win, TxtNotAvailable, NULL, NULL);
1433 } 1425 }
1434 1426
1435 return MFW_EVENT_CONSUMED; 1427 return MFW_EVENT_CONSUMED;
1436 } 1428 }
1437 1429
1438 #endif 1430 #endif
1439 1431
1440 PIN2RQD_MENU_HANDLER( CphsAlsLock ) 1432 PIN2RQD_MENU_HANDLER( CphsAlsLock )
1441 { 1433 {
1442 return cphs_lock_als( Menu, Item ); 1434 return cphs_lock_als( Menu, Item );
1443 } 1435 }
1444 1436
1445 PIN2RQD_MENU_HANDLER( CphsAlsUnlock ) 1437 PIN2RQD_MENU_HANDLER( CphsAlsUnlock )
1446 { 1438 {
1447 return cphs_unlock_als( Menu, Item ); 1439 return cphs_unlock_als( Menu, Item );
1448 } 1440 }
1449 /******************************************************************************* 1441 /*******************************************************************************
1450 1442
1451 End of File 1443 End of File
1452 1444
1453 *******************************************************************************/ 1445 *******************************************************************************/
1454
1455
1456