FreeCalypso > hg > fc-tourmaline
comparison src/ui/bmi/mmiBookController.c @ 92:c0052fe355d3
src/ui/bmi/*.[ch]: rm trailing white space
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 08 Nov 2020 06:39:16 +0000 |
parents | 67bfe9f274f6 |
children | ec9f955fc487 |
comparison
equal
deleted
inserted
replaced
91:c3d28a37caad | 92:c0052fe355d3 |
---|---|
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 | 71 |
72 | 72 |
73 | 73 |
74 $End | 74 $End |
207 return Pin2Rqd( Name, Pin2Rqd##Name, Menu, Item ); \ | 207 return Pin2Rqd( Name, Pin2Rqd##Name, Menu, Item ); \ |
208 } \ | 208 } \ |
209 static MENU_HANDLER( Pin2Rqd##Name ) | 209 static MENU_HANDLER( Pin2Rqd##Name ) |
210 | 210 |
211 /*Added For Fix: MMI-FIX-12161 on 07/04/04 by Nishikant Kulkarni/Ajith K.P */ | 211 /*Added For Fix: MMI-FIX-12161 on 07/04/04 by Nishikant Kulkarni/Ajith K.P */ |
212 extern T_idle idle_data; | 212 extern T_idle idle_data; |
213 | 213 |
214 | 214 |
215 /******************************************************************************* | 215 /******************************************************************************* |
216 | 216 |
217 Local structures | 217 Local structures |
233 tProtectFunction ProtectedActions[] = { | 233 tProtectFunction ProtectedActions[] = { |
234 bookNameEnter, | 234 bookNameEnter, |
235 bookNameEdit, | 235 bookNameEdit, |
236 bookNameDelete, | 236 bookNameDelete, |
237 bookNameDeleteAll, | 237 bookNameDeleteAll, |
238 // Sep 22, 2004 REF: CRR 21392 xvilliva | 238 // Sep 22, 2004 REF: CRR 21392 xvilliva |
239 // A function, if added to this array would ask Pin2 when called. | 239 // A function, if added to this array would ask Pin2 when called. |
240 // Storing a number from recent call list would ask for Pin2, if FDN is enabled. | 240 // Storing a number from recent call list would ask for Pin2, if FDN is enabled. |
241 bookRepRedNameEnter, | 241 bookRepRedNameEnter, |
242 NULL }; | 242 NULL }; |
243 | 243 |
244 // May 3, 2004 REF: CRR MMI-SPR-18555 Rashmi C N(Sasken) | 244 // May 3, 2004 REF: CRR MMI-SPR-18555 Rashmi C N(Sasken) |
245 // This flag will indicate when we are in FDN menu | 245 // This flag will indicate when we are in FDN menu |
246 int menuFDN; | 246 int menuFDN; |
247 extern T_call call_data; | 247 extern T_call call_data; |
248 | 248 |
249 | 249 |
250 /******************************************************************************* | 250 /******************************************************************************* |
251 | 251 |
285 // We check if the call is not from FDN menu and if the current storage | 285 // 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. | 286 // for phonebook is internal phone book, we avoid asking Pin2 accordingly. |
287 if(menuFDN == 0 && bookActiveBook(WRITE) == PHB_IPB) | 287 if(menuFDN == 0 && bookActiveBook(WRITE) == PHB_IPB) |
288 { | 288 { |
289 //Do nothing. | 289 //Do nothing. |
290 } | 290 } |
291 // May 3, 2004 REF: CRR MMI-SPR-18555 Rashmi C N(Sasken) | 291 // 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 | 292 // 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 | 293 // 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))) | 294 else if ( phb_get_mode() == PHB_RESTRICTED || (menuFDN && (call_data.calls.numCalls==0))) |
295 { | 295 { |
296 /* Is the requested function one of the ones we need | 296 /* Is the requested function one of the ones we need |
418 memset( Phbk->phbk->edt_buf_name, '\0', MAX_ALPHA_LEN ); | 418 memset( Phbk->phbk->edt_buf_name, '\0', MAX_ALPHA_LEN ); |
419 /* Indicate this is an additional entry being created | 419 /* Indicate this is an additional entry being created |
420 */ | 420 */ |
421 Phbk->UpdateAction = CREATE_ENTRY; | 421 Phbk->UpdateAction = CREATE_ENTRY; |
422 | 422 |
423 // May 3, 2004 REF: CRR MMI-SPR-18555 Rashmi C N(Sasken) | 423 // 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 | 424 // As the book is being changed for FDN menu operations, we need to |
425 // get back the current book for the normal phonbook operations | 425 // get back the current book for the normal phonbook operations |
426 Phbk->current.status.book = bookActiveBook(READ); | 426 Phbk->current.status.book = bookActiveBook(READ); |
427 | 427 |
428 /* Determine if we have room to add any new entries | 428 /* Determine if we have room to add any new entries |
429 */ | 429 */ |
438 else | 438 else |
439 { | 439 { |
440 /* We have no room available to add the name, so check if | 440 /* We have no room available to add the name, so check if |
441 we have filled the namespace or not | 441 we have filled the namespace or not |
442 */ | 442 */ |
443 | 443 |
444 /*If FDN menu active and no room for entries, then display FDN list full */ | 444 /*If FDN menu active and no room for entries, then display FDN list full */ |
445 tIndexTagNames Tag ; | 445 tIndexTagNames Tag ; |
446 if(menuFDN) | 446 if(menuFDN) |
447 { | 447 { |
448 Tag = ( Phbk->phbk->current.status.used_entries ) | 448 Tag = ( Phbk->phbk->current.status.used_entries ) |
449 ? TxtFDNListFull : TxtOperationNotAvail; //SPR 31710 x0021308:RamG | 449 ? TxtFDNListFull : TxtOperationNotAvail; //SPR 31710 x0021308:RamG |
450 } | 450 } |
451 else | 451 else |
452 { | 452 { |
453 Tag = ( Phbk->phbk->current.status.used_entries ) | 453 Tag = ( Phbk->phbk->current.status.used_entries ) |
454 ? TxtPhbkFull : TxtOperationNotAvail; | 454 ? TxtPhbkFull : TxtOperationNotAvail; |
455 } | 455 } |
456 bookShowInformation( win, Tag,NULL, NULL ); | 456 bookShowInformation( win, Tag,NULL, NULL ); |
457 | 457 |
458 | 458 |
459 } | 459 } |
460 | 460 |
461 /* Always return event consumed | 461 /* Always return event consumed |
462 */ | 462 */ |
463 return MFW_EVENT_CONSUMED; | 463 return MFW_EVENT_CONSUMED; |
497 */ | 497 */ |
498 memset( Phbk->phbk->edt_buf_number, '\0', PHB_MAX_LEN ); | 498 memset( Phbk->phbk->edt_buf_number, '\0', PHB_MAX_LEN ); |
499 memset( Phbk->phbk->edt_buf_name, '\0', MAX_ALPHA_LEN ); | 499 memset( Phbk->phbk->edt_buf_name, '\0', MAX_ALPHA_LEN ); |
500 | 500 |
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); | 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); |
502 | 502 |
503 if(data->phbk->current.status.book == PHB_ADN_FDN) | 503 if(data->phbk->current.status.book == PHB_ADN_FDN) |
504 { | 504 { |
505 if(data->phbk->current.entry[ data->phbk->current.selectedName ].book==PHB_FDN) | 505 if(data->phbk->current.entry[ data->phbk->current.selectedName ].book==PHB_FDN) |
506 { | 506 { |
507 bookActivateFDN((T_MFW_HND)Menu); | 507 bookActivateFDN((T_MFW_HND)Menu); |
508 } | 508 } |
509 else | 509 else |
510 { | 510 { |
511 /* And populate the buffers with the information to be modified | 511 /* And populate the buffers with the information to be modified |
512 */ | 512 */ |
513 #ifdef NO_ASCIIZ | 513 #ifdef NO_ASCIIZ |
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*/); | 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*/); |
533 #else | 533 #else |
534 memcpy( Phbk->phbk->edt_buf_name, Phbk->current.entry[ Phbk->current.selectedName ].name, MAX_ALPHA_LEN ); | 534 memcpy( Phbk->phbk->edt_buf_name, Phbk->current.entry[ Phbk->current.selectedName ].name, MAX_ALPHA_LEN ); |
535 #endif | 535 #endif |
536 memcpy( Phbk->phbk->edt_buf_number, Phbk->current.entry[ Phbk->current.selectedName ].number, PHB_MAX_LEN ); | 536 memcpy( Phbk->phbk->edt_buf_number, Phbk->current.entry[ Phbk->current.selectedName ].number, PHB_MAX_LEN ); |
537 | 537 |
538 /* And edit the entry we currently have active | 538 /* And edit the entry we currently have active |
539 */ | 539 */ |
540 Phbk->input_number_win = bookInputStartNumberEditor( win, Phbk->edt_buf_number ); | 540 Phbk->input_number_win = bookInputStartNumberEditor( win, Phbk->edt_buf_number ); |
541 } | 541 } |
542 /* Always return event consumed | 542 /* Always return event consumed |
561 | 561 |
562 PROTECTED_MENU_HANDLER( bookNameDelete ) | 562 PROTECTED_MENU_HANDLER( bookNameDelete ) |
563 { | 563 { |
564 | 564 |
565 //recast the menu parameter as the current window -- MC | 565 //recast the menu parameter as the current window -- MC |
566 //and pass it on | 566 //and pass it on |
567 //when ADN_FDN phonebook in use check if current entry is FDN | 567 //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 | 568 //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. | 569 //Issue 1944 MZ Allow an entry in FDN list to be deleted. |
570 T_MFW_HND win = (T_MFW_HND)Menu; | 570 T_MFW_HND win = (T_MFW_HND)Menu; |
571 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; | 571 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; |
572 tBookStandard *data = (tBookStandard *) win_data->user; | 572 tBookStandard *data = (tBookStandard *) win_data->user; |
573 | 573 |
574 /*MC SPR 1327, if UPN don't change phonebook type*/ | 574 /*MC SPR 1327, if UPN don't change phonebook type*/ |
575 if (data->phbk->current.status.book != PHB_UPN) | 575 if (data->phbk->current.status.book != PHB_UPN) |
576 data->phbk->current.status.book = bookActiveBook(READ); | 576 data->phbk->current.status.book = bookActiveBook(READ); |
577 if(data->phbk->current.status.book == PHB_ADN_FDN) | 577 if(data->phbk->current.status.book == PHB_ADN_FDN) |
578 if(data->phbk->current.entry[ data->phbk->current.selectedName ].book==PHB_FDN) | 578 if(data->phbk->current.entry[ data->phbk->current.selectedName ].book==PHB_FDN) |
579 bookActivateFDN((T_MFW_HND)Menu); | 579 bookActivateFDN((T_MFW_HND)Menu); |
580 else | 580 else |
581 bookDeleteEntry((T_MFW_HND)Menu); | 581 bookDeleteEntry((T_MFW_HND)Menu); |
582 else | 582 else |
583 bookDeleteEntry((T_MFW_HND)Menu); | 583 bookDeleteEntry((T_MFW_HND)Menu); |
584 | 584 |
585 return MFW_EVENT_CONSUMED; | 585 return MFW_EVENT_CONSUMED; |
586 } | 586 } |
587 | 587 |
588 /******************************************************************************* | 588 /******************************************************************************* |
629 T_MFW_HND win = mfwParent( mfw_header() ); | 629 T_MFW_HND win = mfwParent( mfw_header() ); |
630 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; | 630 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; |
631 tBookStandard *data = (tBookStandard *) win_data->user; | 631 tBookStandard *data = (tBookStandard *) win_data->user; |
632 T_phbk *Phbk = data->phbk; | 632 T_phbk *Phbk = data->phbk; |
633 | 633 |
634 // Aug 18, 2006 ER: OMAPS00089840 x0039928 | 634 // Aug 18, 2006 ER: OMAPS00089840 x0039928 |
635 bookDeleteBook(Phbk->win); | 635 bookDeleteBook(Phbk->win); |
636 | 636 |
637 return MFW_EVENT_CONSUMED; | 637 return MFW_EVENT_CONSUMED; |
638 } | 638 } |
639 | 639 |
806 T_phbk *Phbk = data->phbk; | 806 T_phbk *Phbk = data->phbk; |
807 T_SmsUserData SmsData; | 807 T_SmsUserData SmsData; |
808 | 808 |
809 /* Copy the number and name information to the SMS buffer | 809 /* Copy the number and name information to the SMS buffer |
810 */ | 810 */ |
811 /* API - 13-01-03 - 1409 - Minus the Phbk->current.missedCallsOffset to point at the correct number in the missed calls */ | 811 /* API - 13-01-03 - 1409 - Minus the Phbk->current.missedCallsOffset to point at the correct number in the missed calls */ |
812 memcpy( SmsData.NumberBuffer, (UBYTE *) Phbk->current.entry[ Phbk->current.selectedName - Phbk->current.missedCallsOffset ].number, | 812 memcpy( SmsData.NumberBuffer, (UBYTE *) Phbk->current.entry[ Phbk->current.selectedName - Phbk->current.missedCallsOffset ].number, |
813 sizeof( SmsData.NumberBuffer ) ); | 813 sizeof( SmsData.NumberBuffer ) ); |
814 /*MC SPR 1257, zero whole buffer for unicode*/ | 814 /*MC SPR 1257, zero whole buffer for unicode*/ |
815 memset(SmsData.TextBuffer, '\0', MAX_MSG_LEN_ARRAY); | 815 memset(SmsData.TextBuffer, '\0', MAX_MSG_LEN_ARRAY); |
816 /* OMAPS00083148 - Assignement called_from_reply_item to FALSE is added*/ | 816 /* OMAPS00083148 - Assignement called_from_reply_item to FALSE is added*/ |
924 | 924 |
925 *******************************************************************************/ | 925 *******************************************************************************/ |
926 | 926 |
927 PROTECTED_MENU_HANDLER( bookRepRedNameEnter ) | 927 PROTECTED_MENU_HANDLER( bookRepRedNameEnter ) |
928 { | 928 { |
929 // Sep 22, 2004 REF: CRR 21392 xvilliva | 929 // Sep 22, 2004 REF: CRR 21392 xvilliva |
930 // We use the variable "Menu", similar to bookNameEnter() to avoid a crash. | 930 // We use the variable "Menu", similar to bookNameEnter() to avoid a crash. |
931 T_MFW_HND win = (T_MFW_HND)Menu; | 931 T_MFW_HND win = (T_MFW_HND)Menu; |
932 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; | 932 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; |
933 tBookStandard *data = (tBookStandard *) win_data->user; | 933 tBookStandard *data = (tBookStandard *) win_data->user; |
934 T_phbk *Phbk = data->phbk; | 934 T_phbk *Phbk = data->phbk; |
935 char* selected_number; | 935 char* selected_number; |
936 | 936 |
937 selected_number = (char*)data->phbk->current.entry[data->phbk->current.selectedName].number; | 937 selected_number = (char*)data->phbk->current.entry[data->phbk->current.selectedName].number; |
938 // Sep 22, 2004 REF: CRR 21392 xvilliva | 938 // Sep 22, 2004 REF: CRR 21392 xvilliva |
939 // We get the exact book that is selected. | 939 // We get the exact book that is selected. |
940 data->phbk->current.status.book = bookActiveBook(WRITE); | 940 data->phbk->current.status.book = bookActiveBook(WRITE); |
941 | 941 |
942 Phbk->UpdateAction = CREATE_ENTRY; | 942 Phbk->UpdateAction = CREATE_ENTRY; |
943 bookGetCurrentStatus( &Phbk->phbk->current.status ); | 943 bookGetCurrentStatus( &Phbk->phbk->current.status ); |
944 if ( Phbk->phbk->current.status.avail_entries ) | 944 if ( Phbk->phbk->current.status.avail_entries ) |
945 { | 945 { |
946 /* We are okay to input the number, use a worker routine | 946 /* We are okay to input the number, use a worker routine |
982 T_MFW_HND win = mfwParent( mfw_header() ); | 982 T_MFW_HND win = mfwParent( mfw_header() ); |
983 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; | 983 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; |
984 tBookStandard *data = (tBookStandard *) win_data->user; | 984 tBookStandard *data = (tBookStandard *) win_data->user; |
985 T_phbk *Phbk = data->phbk; | 985 T_phbk *Phbk = data->phbk; |
986 | 986 |
987 | 987 |
988 | 988 |
989 deleteFromFile(Phbk,Phbk->current.status.book); | 989 deleteFromFile(Phbk,Phbk->current.status.book); |
990 bookShowInformation( Phbk->win, MmiBookCurrentText(),NULL, NULL ); | 990 bookShowInformation( Phbk->win, MmiBookCurrentText(),NULL, NULL ); |
991 bookMenuDestroy(Phbk->menu_call_options_win); | 991 bookMenuDestroy(Phbk->menu_call_options_win); |
992 // July 21, 2006 REF:DR OMAPS00085695 x0047075 | 992 // July 21, 2006 REF:DR OMAPS00085695 x0047075 |
1183 /* Issue Number : MMI-FIX-1216 on 07/04/04 by Nishikant Kulkarni and Ajith K.P | 1183 /* Issue Number : MMI-FIX-1216 on 07/04/04 by Nishikant Kulkarni and Ajith K.P |
1184 Bug : missed call message is displayed after deleting all missed calls from the list | 1184 Bug : missed call message is displayed after deleting all missed calls from the list |
1185 Solution: idle_data.missedcalls flag was not updated if the user ckecks/deletes the missed call list | 1185 Solution: idle_data.missedcalls flag was not updated if the user ckecks/deletes the missed call list |
1186 We rectified the same.*/ | 1186 We rectified the same.*/ |
1187 | 1187 |
1188 idle_data.missedCalls = 0; | 1188 idle_data.missedCalls = 0; |
1189 | 1189 |
1190 bookPhonebookStart(win,PhbkMissedCallsListNormal); | 1190 bookPhonebookStart(win,PhbkMissedCallsListNormal); |
1191 return MFW_EVENT_CONSUMED; | 1191 return MFW_EVENT_CONSUMED; |
1192 } | 1192 } |
1193 | 1193 |
1212 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; | 1212 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; |
1213 tBookStandard *data = (tBookStandard *) win_data->user; | 1213 tBookStandard *data = (tBookStandard *) win_data->user; |
1214 T_phbk *Phbk = data->phbk; | 1214 T_phbk *Phbk = data->phbk; |
1215 T_MFW_HND menu_win; | 1215 T_MFW_HND menu_win; |
1216 UBYTE selectedBook; | 1216 UBYTE selectedBook; |
1217 | 1217 |
1218 TRACE_FUNCTION("bookSelectBook"); | 1218 TRACE_FUNCTION("bookSelectBook"); |
1219 | 1219 |
1220 if (bookGetBookAvailable()) | 1220 if (bookGetBookAvailable()) |
1221 { | 1221 { |
1222 selectedBook = (UBYTE)bookGetBookSelected(); | 1222 selectedBook = (UBYTE)bookGetBookSelected(); |
1225 } | 1225 } |
1226 else | 1226 else |
1227 { | 1227 { |
1228 bookShowInformation( Phbk->win, TxtNotAvailable, NULL, NULL); | 1228 bookShowInformation( Phbk->win, TxtNotAvailable, NULL, NULL); |
1229 } | 1229 } |
1230 | 1230 |
1231 return MFW_EVENT_CONSUMED; | 1231 return MFW_EVENT_CONSUMED; |
1232 } | 1232 } |
1233 | 1233 |
1234 | 1234 |
1235 /******************************************************************************* | 1235 /******************************************************************************* |
1256 bookSetBookSelected(FALSE); | 1256 bookSetBookSelected(FALSE); |
1257 bookShowInfoScreen( Phbk->win, TxtPleaseWait, NULL, (T_VOID_FUNC)bookChangePB, (USHORT)bookGetBookSelected(), 100); | 1257 bookShowInfoScreen( Phbk->win, TxtPleaseWait, NULL, (T_VOID_FUNC)bookChangePB, (USHORT)bookGetBookSelected(), 100); |
1258 } | 1258 } |
1259 else | 1259 else |
1260 bookShowInfoScreen( Phbk->win, TxtPhonebook, TxtChanged, NULL, NULL, 3000); | 1260 bookShowInfoScreen( Phbk->win, TxtPhonebook, TxtChanged, NULL, NULL, 3000); |
1261 | 1261 |
1262 return MFW_EVENT_CONSUMED; | 1262 return MFW_EVENT_CONSUMED; |
1263 } | 1263 } |
1264 | 1264 |
1265 | 1265 |
1266 /******************************************************************************* | 1266 /******************************************************************************* |
1289 } | 1289 } |
1290 else | 1290 else |
1291 { | 1291 { |
1292 bookShowInformation( Phbk->win, TxtNotAvailable,NULL, NULL ); | 1292 bookShowInformation( Phbk->win, TxtNotAvailable,NULL, NULL ); |
1293 } | 1293 } |
1294 | 1294 |
1295 return MFW_EVENT_CONSUMED; | 1295 return MFW_EVENT_CONSUMED; |
1296 } | 1296 } |
1297 | 1297 |
1298 /******************************************************************************* | 1298 /******************************************************************************* |
1299 | 1299 |
1311 { | 1311 { |
1312 T_MFW_HND win = mfwParent( mfw_header() ); | 1312 T_MFW_HND win = mfwParent( mfw_header() ); |
1313 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; | 1313 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; |
1314 tBookStandard *data = (tBookStandard *) win_data->user; | 1314 tBookStandard *data = (tBookStandard *) win_data->user; |
1315 T_phbk *Phbk = data->phbk; | 1315 T_phbk *Phbk = data->phbk; |
1316 | 1316 |
1317 TRACE_FUNCTION( "bookCopyEntry()" ); | 1317 TRACE_FUNCTION( "bookCopyEntry()" ); |
1318 | 1318 |
1319 if (bookGetBookAvailable()) | 1319 if (bookGetBookAvailable()) |
1320 { | 1320 { |
1321 /* Show Please Wait dialog briefly, then call copy function | 1321 /* Show Please Wait dialog briefly, then call copy function |
1324 } | 1324 } |
1325 else | 1325 else |
1326 { | 1326 { |
1327 bookShowInformation( Phbk->win, TxtNotAvailable, NULL, NULL); | 1327 bookShowInformation( Phbk->win, TxtNotAvailable, NULL, NULL); |
1328 } | 1328 } |
1329 | 1329 |
1330 return MFW_EVENT_CONSUMED; | 1330 return MFW_EVENT_CONSUMED; |
1331 } | 1331 } |
1332 | 1332 |
1333 /******************************************************************************* | 1333 /******************************************************************************* |
1334 | 1334 |
1346 { | 1346 { |
1347 T_MFW_HND win = mfwParent( mfw_header() ); | 1347 T_MFW_HND win = mfwParent( mfw_header() ); |
1348 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; | 1348 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; |
1349 tBookStandard *data = (tBookStandard *) win_data->user; | 1349 tBookStandard *data = (tBookStandard *) win_data->user; |
1350 T_phbk *Phbk = data->phbk; | 1350 T_phbk *Phbk = data->phbk; |
1351 | 1351 |
1352 TRACE_FUNCTION( "bookCopyAll()" ); | 1352 TRACE_FUNCTION( "bookCopyAll()" ); |
1353 | 1353 |
1354 if (bookGetBookAvailable()) | 1354 if (bookGetBookAvailable()) |
1355 { | 1355 { |
1356 /* Copy | 1356 /* Copy |
1359 } | 1359 } |
1360 else | 1360 else |
1361 { | 1361 { |
1362 bookShowInformation( Phbk->win, TxtNotAvailable, NULL, NULL); | 1362 bookShowInformation( Phbk->win, TxtNotAvailable, NULL, NULL); |
1363 } | 1363 } |
1364 | 1364 |
1365 return MFW_EVENT_CONSUMED; | 1365 return MFW_EVENT_CONSUMED; |
1366 } | 1366 } |
1367 | 1367 |
1368 /******************************************************************************* | 1368 /******************************************************************************* |
1369 | 1369 |
1381 { | 1381 { |
1382 T_MFW_HND win = mfwParent( mfw_header() ); | 1382 T_MFW_HND win = mfwParent( mfw_header() ); |
1383 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; | 1383 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; |
1384 tBookStandard *data = (tBookStandard *) win_data->user; | 1384 tBookStandard *data = (tBookStandard *) win_data->user; |
1385 T_phbk *Phbk = data->phbk; | 1385 T_phbk *Phbk = data->phbk; |
1386 | 1386 |
1387 TRACE_FUNCTION( "bookMoveEntry()" ); | 1387 TRACE_FUNCTION( "bookMoveEntry()" ); |
1388 | 1388 |
1389 if (bookGetBookAvailable()) | 1389 if (bookGetBookAvailable()) |
1390 { | 1390 { |
1391 /* Show Please Wait dialog briefly, then call move function | 1391 /* Show Please Wait dialog briefly, then call move function |
1394 } | 1394 } |
1395 else | 1395 else |
1396 { | 1396 { |
1397 bookShowInformation( Phbk->win, TxtNotAvailable, NULL, NULL); | 1397 bookShowInformation( Phbk->win, TxtNotAvailable, NULL, NULL); |
1398 } | 1398 } |
1399 | 1399 |
1400 return MFW_EVENT_CONSUMED; | 1400 return MFW_EVENT_CONSUMED; |
1401 } | 1401 } |
1402 | 1402 |
1403 /******************************************************************************* | 1403 /******************************************************************************* |
1404 | 1404 |
1416 { | 1416 { |
1417 T_MFW_HND win = mfwParent( mfw_header() ); | 1417 T_MFW_HND win = mfwParent( mfw_header() ); |
1418 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; | 1418 T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; |
1419 tBookStandard *data = (tBookStandard *) win_data->user; | 1419 tBookStandard *data = (tBookStandard *) win_data->user; |
1420 T_phbk *Phbk = data->phbk; | 1420 T_phbk *Phbk = data->phbk; |
1421 | 1421 |
1422 TRACE_FUNCTION( "bookMoveAll()" ); | 1422 TRACE_FUNCTION( "bookMoveAll()" ); |
1423 | 1423 |
1424 if (bookGetBookAvailable()) | 1424 if (bookGetBookAvailable()) |
1425 { | 1425 { |
1426 /* Show Please Wait dialog briefly, then call copy function | 1426 /* Show Please Wait dialog briefly, then call copy function |
1429 } | 1429 } |
1430 else | 1430 else |
1431 { | 1431 { |
1432 bookShowInformation( Phbk->win, TxtNotAvailable, NULL, NULL); | 1432 bookShowInformation( Phbk->win, TxtNotAvailable, NULL, NULL); |
1433 } | 1433 } |
1434 | 1434 |
1435 return MFW_EVENT_CONSUMED; | 1435 return MFW_EVENT_CONSUMED; |
1436 } | 1436 } |
1437 | 1437 |
1438 #endif | 1438 #endif |
1439 | 1439 |