FreeCalypso > hg > fc-tourmaline
diff src/ui/bmi/mmiBookSDNWindow.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/mmiBookSDNWindow.c Sun Nov 08 05:12:05 2020 +0000 +++ b/src/ui/bmi/mmiBookSDNWindow.c Sun Nov 08 06:39:16 2020 +0000 @@ -2,28 +2,28 @@ CONDAT (UK) -******************************************************************************** +******************************************************************************** This software product is the property of Condat (UK) Ltd and may not be - disclosed to any third party without the express permission of the owner. - + disclosed to any third party without the express permission of the owner. + ******************************************************************************** - $Project name: Basic MMI - $Project code: BMI (6349) + $Project name: Basic MMI + $Project code: BMI (6349) $Module: PhoneBook $File: MmiBookSDNWindow.c - $Revision: 1.0 - - $Author: Condat(UK) - $Date: 25/10/00 - + $Revision: 1.0 + + $Author: Condat(UK) + $Date: 25/10/00 + ******************************************************************************** - + Description: This module provides the service numbers window for the phone book - + ******************************************************************************** $History: MmiBookSDNWindow.c @@ -32,8 +32,8 @@ sending MMS/EMS. Solution: The new feature to select the number from phonebook while sending MMS/EMS is added - 25/10/00 Original Condat(UK) BMI version. - + 25/10/00 Original Condat(UK) BMI version. + $End *******************************************************************************/ @@ -42,9 +42,9 @@ /******************************************************************************* - + Include Files - + *******************************************************************************/ #define ENTITY_MFW @@ -133,9 +133,9 @@ /******************************************************************************* - + Private methods - + *******************************************************************************/ /******************************************************************************* @@ -143,14 +143,14 @@ $Function: bookSDN $Description: window dialog function - + $Returns: none. $Arguments: win, window handle event, event to be handled value, not used parameter, not used - + *******************************************************************************/ static void bookSDN( T_MFW_HND win, USHORT event, SHORT value, void * parameter ) @@ -191,7 +191,7 @@ /* select the correct boundary for the list */ my->selectedName = my->status.used_entries; - if ( my->selectedName > MAX_SEARCH_NAME ) + if ( my->selectedName > MAX_SEARCH_NAME ) my->selectedName = MAX_SEARCH_NAME; /* and subtract one cos we are dealing with an array starting @@ -337,11 +337,11 @@ $Function: bookSDNWinCB $Description: Window call back function - + $Returns: status indicating if event handled or not $Arguments: e, event, w, window handle - + *******************************************************************************/ static int bookSDNWinCB( MfwEvt e, MfwWin *w ) @@ -383,12 +383,12 @@ /* Decide on whether to use number or name */ -#ifdef NO_ASCIIZ +#ifdef NO_ASCIIZ NumPtr = (char*)data->phbk->current.entry[i].name.data; #else NumPtr = (char*)data->phbk->current.entry[i].name; #endif - + if ( *NumPtr == '\0' ) { NumPtr = (char*)data->phbk->current.entry[i].number; @@ -405,7 +405,7 @@ /* Clear the buffer, then fill it with the required value */ memset( ElemPtr, '\0', ElemSize ); - /*mc, SPR 1442, replaced old truncation function with new one*/ + /*mc, SPR 1442, replaced old truncation function with new one*/ resources_truncate_to_screen_width(NumPtr, 0, ElemPtr, ElemSize,SCREEN_SIZE_X, FALSE); } @@ -454,12 +454,12 @@ $Function: bookSDNKbdCB $Description: Keyboard handler - + $Returns: stats indicating if event handled or not (Always MFW_EVENT_CONSUMED) $Arguments: e, event, k, keyboard handle - + *******************************************************************************/ static int bookSDNKbdCB( MfwEvt e, MfwKbd *k ) @@ -601,11 +601,11 @@ $Function: bookSDNKeyLongCB $Description: long keyboard event handler - + $Returns: MFW_EVENT_CONSUMED always $Arguments: e, event to handle, k, keyboard handle - + *******************************************************************************/ static int bookSDNKeyLongCB( MfwEvt e, MfwKbd *k ) @@ -622,7 +622,7 @@ bookSDNDestroy( win ); data->phbk->search_win = 0; } - + /* Force event consumed always, prevents default behaviour kicking in */ @@ -637,11 +637,11 @@ $Function: bookSDNCreate $Description: Creates the Service numbers widow - + $Returns: Window Handle, or NULL if unsuccessfull $Arguments: Parent, handle of the parent window - + *******************************************************************************/ static T_MFW_HND bookSDNCreate( MfwHnd parent ) @@ -657,11 +657,11 @@ */ if ( ( data->win = win_create (parent, 0, E_WIN_VISIBLE, (T_MFW_CB) bookSDNWinCB ) ) == NULL ) return NULL; - + /*SPR 2123, MC allocate memory for phonebook list*/ if (create_mmi_phonebook_names_list() == NULL) return NULL; - + /* set up the basic window elements, dialog and user data pointers */ data->mmi_control.dialog = (T_DIALOG_FUNC)bookSDN; @@ -709,9 +709,9 @@ /******************************************************************************* - + Public methods - + *******************************************************************************/ /******************************************************************************* @@ -719,11 +719,11 @@ $Function: bookSDNStart $Description: This is the entry point for the service numbers window handler - + $Returns: handle of window we are creating $Arguments: Parent, handle of the parent window - + *******************************************************************************/ T_MFW_HND bookSDNStart( MfwHnd parent ) @@ -785,7 +785,7 @@ */ mnu = (MfwMnu *) mfwControl( data->menu ); mnu->lCursor[ mnu->level ] = data->phbk->current.selectedName; - + /* SPR#1428 - SH - New Editor: editActivate no longer needed */ #ifndef NEW_EDITOR editActivate( data->edt, 1 ); @@ -806,11 +806,11 @@ $Description: This routine performs the FindNameInPhoneBook functionality, tuned to the particular requirements of the service numbers phonebook. - + $Returns: handle of window we are creating $Arguments: Parent, handle of the parent window - + *******************************************************************************/ int bookFindNameInSDNPhonebook( const char* p_pszNumber, T_MFW_PHB_ENTRY* p_pEntry ) @@ -823,7 +823,7 @@ /*MC SPR 1257, replacing PHB_MAX_LEN with MAX_ALPHA_LEN for name strings*/ UBYTE l_name[MAX_ALPHA_LEN]; int status; -char bfr[80]; +char bfr[80]; TRACE_FUNCTION("bookFindNameInSDNPhonebook()"); /* guard against dodgy input data @@ -839,7 +839,7 @@ phb_list.entry = p_pEntry; phb_list.num_entries = 1; phb_list.book = PHB_SDN; - + //GW Set up data structure for NO_ASCIIZ #ifdef NO_ASCIIZ p_pszNumberText.dcs = MFW_DCS_8bits; @@ -850,7 +850,7 @@ /* see what we can find using the standard search routine for any phone book, giving the service numbers book as a parameter */ - + #ifdef NO_ASCIIZ status = phb_find_entries( (UBYTE)PHB_SDN, &phb_index, (UBYTE)MFW_PHB_NUMBER, 1, &p_pszNumberText, &phb_list ); #else @@ -861,7 +861,7 @@ TRACE_FUNCTION(bfr); sprintf(bfr,"number:'%s'",p_pEntry->number); TRACE_FUNCTION(bfr); - + if (status != MFW_PHB_OK) { phb_list.result = MFW_NO_ENTRY; @@ -882,7 +882,7 @@ #else bookGsm2Alpha( p_pEntry->name ); - + #endif /* if we couldn't find any information, null out the return @@ -907,11 +907,11 @@ $Function: bookSDNDestroy $Description: destroys the Service Numbers window - + $Returns: none. $Arguments: window, handle of the window to be destroyed - + *******************************************************************************/ void bookSDNDestroy( MfwHnd window ) @@ -925,7 +925,7 @@ */ if ( ! data ) return; - + /* SPR#1428 - SH - New Editor changes */ #ifdef NEW_EDITOR /* Editor is no longer destroyed with winDelete, @@ -960,8 +960,8 @@ /******************************************************************************* - + End of File - + *******************************************************************************/