FreeCalypso > hg > fc-tourmaline
diff 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 |
line wrap: on
line diff
--- a/src/ui/bmi/mmiBookController.c Sun Nov 08 05:12:05 2020 +0000 +++ b/src/ui/bmi/mmiBookController.c Sun Nov 08 06:39:16 2020 +0000 @@ -40,33 +40,33 @@ July 21,2006 REF:DR OMAPS00085695 x0047075 Description:Fail to delete the correct entry in LDN, LRN and LMN with Locosto. - Solution:After deleting any entry in the LDN,LRN,LMN book,we highlight the first entry as the + Solution:After deleting any entry in the LDN,LRN,LMN book,we highlight the first entry as the current selected entry. Jun 13, 2005 REF: SPR 31705 x0021308 - Description: Once maximum limit of the My Number is exceeded, display info : Phonebook full, + Description: Once maximum limit of the My Number is exceeded, display info : Phonebook full, expected is MyNumber Full - Solution: Replaced the Return tag in function Protected Menu Handler(booksetownNumber) from + Solution: Replaced the Return tag in function Protected Menu Handler(booksetownNumber) from Phonebookfull with MyNumberfull. Jun 13, 2005 REF: SPR 31710 x0021308 - Description: Once maximum limit of the FDN Number is exceeded, display info : Phonebook full, + Description: Once maximum limit of the FDN Number is exceeded, display info : Phonebook full, expected is FDNList Full - Solution: Replaced the Return tag in function Protected Menu Handler(booksetownNumber) from - Phonebookfull with FDNListfull While checking whether in FDNMenu is active using MenuFDN global - variable. + Solution: Replaced the Return tag in function Protected Menu Handler(booksetownNumber) from + Phonebookfull with FDNListfull While checking whether in FDNMenu is active using MenuFDN global + variable. - - Sep 22, 2004 REF: CRR 21392 xvilliva - Bug: PIN2 Screen is not displaying, While Adding FDN Number thru + + Sep 22, 2004 REF: CRR 21392 xvilliva + Bug: PIN2 Screen is not displaying, While Adding FDN Number thru Recent call Menu. Fix: We add the "bookRepRedNameEnter" to "ProtectedActions" array. - If FDN is enabled, Pin2 will be asked. + If FDN is enabled, Pin2 will be asked. June 26, 2006 REF : OMAPS00083148 x0023848 Bug: SMS send is failed when trying through missed call list Fix: Assignemnt of SmsData.called_from_reply_item to FALSE is Added - + 25/10/00 Original Condat(UK) BMI version. @@ -209,7 +209,7 @@ static MENU_HANDLER( Pin2Rqd##Name ) /*Added For Fix: MMI-FIX-12161 on 07/04/04 by Nishikant Kulkarni/Ajith K.P */ -extern T_idle idle_data; +extern T_idle idle_data; /******************************************************************************* @@ -235,15 +235,15 @@ bookNameEdit, bookNameDelete, bookNameDeleteAll, - // Sep 22, 2004 REF: CRR 21392 xvilliva + // Sep 22, 2004 REF: CRR 21392 xvilliva // A function, if added to this array would ask Pin2 when called. // Storing a number from recent call list would ask for Pin2, if FDN is enabled. - bookRepRedNameEnter, + bookRepRedNameEnter, NULL }; -// May 3, 2004 REF: CRR MMI-SPR-18555 Rashmi C N(Sasken) +// May 3, 2004 REF: CRR MMI-SPR-18555 Rashmi C N(Sasken) // This flag will indicate when we are in FDN menu -int menuFDN; +int menuFDN; extern T_call call_data; @@ -287,8 +287,8 @@ if(menuFDN == 0 && bookActiveBook(WRITE) == PHB_IPB) { //Do nothing. - } -// May 3, 2004 REF: CRR MMI-SPR-18555 Rashmi C N(Sasken) + } +// May 3, 2004 REF: CRR MMI-SPR-18555 Rashmi C N(Sasken) // Pin2 should be prompted when user does FDN related operations in FDN menu // In FDN menu, receie an active call and FDN is disabled, pin2 should not be prompted for in call addressbook operations else if ( phb_get_mode() == PHB_RESTRICTED || (menuFDN && (call_data.calls.numCalls==0))) @@ -420,8 +420,8 @@ */ Phbk->UpdateAction = CREATE_ENTRY; - // May 3, 2004 REF: CRR MMI-SPR-18555 Rashmi C N(Sasken) - // As the book is being changed for FDN menu operations, we need to + // May 3, 2004 REF: CRR MMI-SPR-18555 Rashmi C N(Sasken) + // As the book is being changed for FDN menu operations, we need to // get back the current book for the normal phonbook operations Phbk->current.status.book = bookActiveBook(READ); @@ -440,22 +440,22 @@ /* We have no room available to add the name, so check if we have filled the namespace or not */ - + /*If FDN menu active and no room for entries, then display FDN list full */ - tIndexTagNames Tag ; - if(menuFDN) + tIndexTagNames Tag ; + if(menuFDN) { Tag = ( Phbk->phbk->current.status.used_entries ) - ? TxtFDNListFull : TxtOperationNotAvail; //SPR 31710 x0021308:RamG + ? TxtFDNListFull : TxtOperationNotAvail; //SPR 31710 x0021308:RamG } else { Tag = ( Phbk->phbk->current.status.used_entries ) ? TxtPhbkFull : TxtOperationNotAvail; - } + } bookShowInformation( win, Tag,NULL, NULL ); - - + + } /* Always return event consumed @@ -499,13 +499,13 @@ memset( Phbk->phbk->edt_buf_name, '\0', MAX_ALPHA_LEN ); 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); - + if(data->phbk->current.status.book == PHB_ADN_FDN) { if(data->phbk->current.entry[ data->phbk->current.selectedName ].book==PHB_FDN) { bookActivateFDN((T_MFW_HND)Menu); - } + } else { /* And populate the buffers with the information to be modified @@ -534,7 +534,7 @@ memcpy( Phbk->phbk->edt_buf_name, Phbk->current.entry[ Phbk->current.selectedName ].name, MAX_ALPHA_LEN ); #endif memcpy( Phbk->phbk->edt_buf_number, Phbk->current.entry[ Phbk->current.selectedName ].number, PHB_MAX_LEN ); - + /* And edit the entry we currently have active */ Phbk->input_number_win = bookInputStartNumberEditor( win, Phbk->edt_buf_number ); @@ -563,24 +563,24 @@ { //recast the menu parameter as the current window -- MC - //and pass it on + //and pass it on //when ADN_FDN phonebook in use check if current entry is FDN //is so then call information screen or allow entry to be deleted. --- AP 23/01/02 //Issue 1944 MZ Allow an entry in FDN list to be deleted. T_MFW_HND win = (T_MFW_HND)Menu; T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; tBookStandard *data = (tBookStandard *) win_data->user; - + /*MC SPR 1327, if UPN don't change phonebook type*/ if (data->phbk->current.status.book != PHB_UPN) data->phbk->current.status.book = bookActiveBook(READ); if(data->phbk->current.status.book == PHB_ADN_FDN) if(data->phbk->current.entry[ data->phbk->current.selectedName ].book==PHB_FDN) bookActivateFDN((T_MFW_HND)Menu); - else + else bookDeleteEntry((T_MFW_HND)Menu); else - bookDeleteEntry((T_MFW_HND)Menu); + bookDeleteEntry((T_MFW_HND)Menu); return MFW_EVENT_CONSUMED; } @@ -631,7 +631,7 @@ tBookStandard *data = (tBookStandard *) win_data->user; T_phbk *Phbk = data->phbk; -// Aug 18, 2006 ER: OMAPS00089840 x0039928 +// Aug 18, 2006 ER: OMAPS00089840 x0039928 bookDeleteBook(Phbk->win); return MFW_EVENT_CONSUMED; @@ -808,7 +808,7 @@ /* Copy the number and name information to the SMS buffer */ - /* API - 13-01-03 - 1409 - Minus the Phbk->current.missedCallsOffset to point at the correct number in the missed calls */ + /* API - 13-01-03 - 1409 - Minus the Phbk->current.missedCallsOffset to point at the correct number in the missed calls */ memcpy( SmsData.NumberBuffer, (UBYTE *) Phbk->current.entry[ Phbk->current.selectedName - Phbk->current.missedCallsOffset ].number, sizeof( SmsData.NumberBuffer ) ); /*MC SPR 1257, zero whole buffer for unicode*/ @@ -926,8 +926,8 @@ PROTECTED_MENU_HANDLER( bookRepRedNameEnter ) { - // Sep 22, 2004 REF: CRR 21392 xvilliva - // We use the variable "Menu", similar to bookNameEnter() to avoid a crash. + // Sep 22, 2004 REF: CRR 21392 xvilliva + // We use the variable "Menu", similar to bookNameEnter() to avoid a crash. T_MFW_HND win = (T_MFW_HND)Menu; T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; tBookStandard *data = (tBookStandard *) win_data->user; @@ -935,10 +935,10 @@ char* selected_number; selected_number = (char*)data->phbk->current.entry[data->phbk->current.selectedName].number; - // Sep 22, 2004 REF: CRR 21392 xvilliva + // Sep 22, 2004 REF: CRR 21392 xvilliva // We get the exact book that is selected. data->phbk->current.status.book = bookActiveBook(WRITE); - + Phbk->UpdateAction = CREATE_ENTRY; bookGetCurrentStatus( &Phbk->phbk->current.status ); if ( Phbk->phbk->current.status.avail_entries ) @@ -984,7 +984,7 @@ tBookStandard *data = (tBookStandard *) win_data->user; T_phbk *Phbk = data->phbk; - + deleteFromFile(Phbk,Phbk->current.status.book); bookShowInformation( Phbk->win, MmiBookCurrentText(),NULL, NULL ); @@ -1185,7 +1185,7 @@ Solution: idle_data.missedcalls flag was not updated if the user ckecks/deletes the missed call list We rectified the same.*/ - idle_data.missedCalls = 0; + idle_data.missedCalls = 0; bookPhonebookStart(win,PhbkMissedCallsListNormal); return MFW_EVENT_CONSUMED; @@ -1214,7 +1214,7 @@ T_phbk *Phbk = data->phbk; T_MFW_HND menu_win; UBYTE selectedBook; - + TRACE_FUNCTION("bookSelectBook"); if (bookGetBookAvailable()) @@ -1227,7 +1227,7 @@ { bookShowInformation( Phbk->win, TxtNotAvailable, NULL, NULL); } - + return MFW_EVENT_CONSUMED; } @@ -1258,7 +1258,7 @@ } else bookShowInfoScreen( Phbk->win, TxtPhonebook, TxtChanged, NULL, NULL, 3000); - + return MFW_EVENT_CONSUMED; } @@ -1291,7 +1291,7 @@ { bookShowInformation( Phbk->win, TxtNotAvailable,NULL, NULL ); } - + return MFW_EVENT_CONSUMED; } @@ -1313,7 +1313,7 @@ T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; tBookStandard *data = (tBookStandard *) win_data->user; T_phbk *Phbk = data->phbk; - + TRACE_FUNCTION( "bookCopyEntry()" ); if (bookGetBookAvailable()) @@ -1326,7 +1326,7 @@ { bookShowInformation( Phbk->win, TxtNotAvailable, NULL, NULL); } - + return MFW_EVENT_CONSUMED; } @@ -1348,7 +1348,7 @@ T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; tBookStandard *data = (tBookStandard *) win_data->user; T_phbk *Phbk = data->phbk; - + TRACE_FUNCTION( "bookCopyAll()" ); if (bookGetBookAvailable()) @@ -1361,7 +1361,7 @@ { bookShowInformation( Phbk->win, TxtNotAvailable, NULL, NULL); } - + return MFW_EVENT_CONSUMED; } @@ -1383,7 +1383,7 @@ T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; tBookStandard *data = (tBookStandard *) win_data->user; T_phbk *Phbk = data->phbk; - + TRACE_FUNCTION( "bookMoveEntry()" ); if (bookGetBookAvailable()) @@ -1396,7 +1396,7 @@ { bookShowInformation( Phbk->win, TxtNotAvailable, NULL, NULL); } - + return MFW_EVENT_CONSUMED; } @@ -1418,7 +1418,7 @@ T_MFW_WIN *win_data = ( (T_MFW_HDR *) win )->data; tBookStandard *data = (tBookStandard *) win_data->user; T_phbk *Phbk = data->phbk; - + TRACE_FUNCTION( "bookMoveAll()" ); if (bookGetBookAvailable()) @@ -1431,7 +1431,7 @@ { bookShowInformation( Phbk->win, TxtNotAvailable, NULL, NULL); } - + return MFW_EVENT_CONSUMED; }