FreeCalypso > hg > fc-tourmaline
diff src/ui/bmi/mmiBookCallDetailsWindow.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/mmiBookCallDetailsWindow.c Sun Nov 08 05:12:05 2020 +0000 +++ b/src/ui/bmi/mmiBookCallDetailsWindow.c Sun Nov 08 06:39:16 2020 +0000 @@ -2,43 +2,43 @@ 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: MmiBookCallDetailsWindow.c - $Revision: 1.0 - - $Author: Condat(UK) - $Date: 25/10/00 - + $Revision: 1.0 + + $Author: Condat(UK) + $Date: 25/10/00 + ******************************************************************************** - + Description: This provides the implementation of the call details window for the phone book module - + ******************************************************************************** $History: MmiBookCallDetailsWindow.c Feb 22, 2007 OMAPS00115777 a0393213(R.Prabakar) Description : Details of any Missed call number shows Invalid information - Fix : Data was not initialized properly. Now it's initialized properly and + Fix : Data was not initialized properly. Now it's initialized properly and the fix done as part of CRR 22638 reverted back as it isn't clean - + Aug 24, 2004 REF: CRR 22638 xrashmic - Bug: E-Sample switches off when you attempt to look at details of a number - in call list. + Bug: E-Sample switches off when you attempt to look at details of a number + in call list. Fix: Using the data stored in global variable to avoid corrupt data. - 25/10/00 Original Condat(UK) BMI version. - + 25/10/00 Original Condat(UK) BMI version. + $End // Issue Number : SPR#12874 on 31/03/04 by Rashmi.C.N. *******************************************************************************/ @@ -47,9 +47,9 @@ /******************************************************************************* - + Include Files - + *******************************************************************************/ #define ENTITY_MFW @@ -143,9 +143,9 @@ /******************************************************************************* - + Private methods - + *******************************************************************************/ @@ -155,14 +155,14 @@ $Function: bookCallDetails $Description: dialog function for the call details windows - + $Returns: None. $Arguments: win, window handle event, event to be handled value, not used parameter, not used - + *******************************************************************************/ static void bookCallDetails( T_MFW_HND win, USHORT event, SHORT value, void * parameter ) @@ -183,7 +183,7 @@ /* SPR#1428 - SH - New Editor changes * Moved all this stuff here from the WinCb - it shouldn't be there! */ - + /* try to get the name from the phone book, null the structure out if we can't find it at all */ @@ -202,9 +202,9 @@ numberText.data = my->number; ATB_string_Length(&numberText); -#ifdef EASY_TEXT_ENABLED +#ifdef EASY_TEXT_ENABLED if ( my->name.data[0] ==0x80) - { + { /* UNICODE */ nameText.dcs = ATB_DCS_UNICODE; nameText.data = &my->name.data[2]; @@ -225,7 +225,7 @@ ATB_edit_Char(data->editor, ctrlEnter, FALSE); ATB_edit_InsertString(data->editor, &numberText); ATB_edit_Char(data->editor, ctrlEnter, FALSE); - + if (CphsPresent() == TRUE) { sprintf(TempBuffer, "Line %d", my->line); @@ -235,10 +235,10 @@ ATB_edit_InsertString(data->editor, &otherText); ATB_edit_Char(data->editor, ctrlEnter, FALSE); } - + /* API - 10/09/03 - SPR2513 - Add support to display chinese Data & Time */ /* API - 05/09/03 - SPR2357 - Get the character string for the date */ - + date = MmiRsrcGetText(TxtCallDate); if(Mmi_getCurrentLanguage() == CHINESE_LANGUAGE) @@ -252,19 +252,19 @@ otherText.data = (UBYTE *)date; } ATB_string_Length(&otherText); - ATB_edit_InsertString(data->editor, &otherText); + ATB_edit_InsertString(data->editor, &otherText); /* API - 05/09/03 - SPR2357 - END */ - /* API - 10/09/03 - SPR2513 - END */ - + /* API - 10/09/03 - SPR2513 - END */ + // API - 21-01-03 - 1566 - Date and Time displayed for Recent calls // change by Sasken ( Rashmi C N) on March 31th 2004 // Issue Number : MMI-SPR-12874 // Bug: Wrong date and time in the Missed call details. - // Solution: converting the date and time into decimal format used in the + // Solution: converting the date and time into decimal format used in the // phonebook management. - + sprintf((char*)TempBuffer, "%.2d/%.2d/%.2d",(UBYTE)((my->date.day[0])<<4)+(UBYTE) my->date.day[1], (UBYTE) ((my->date.month[0])<<4)+(UBYTE) my->date.month[1], (UBYTE) ((my->date.year[0])<<4)+(UBYTE) my->date.year[1]); @@ -274,11 +274,11 @@ ATB_edit_InsertString(data->editor, &otherText); ATB_edit_Char(data->editor, ctrlEnter, FALSE); - + /* API - 10/09/03 - SPR2513 - Add support to display chinese Data & Time */ /* API - 05/09/03 - SPR2357 - Get the character string for the Time */ - + time = MmiRsrcGetText(TxtCallTime); if(Mmi_getCurrentLanguage() == CHINESE_LANGUAGE) @@ -292,19 +292,19 @@ otherText.data = (UBYTE *)time; } - ATB_edit_InsertString(data->editor, &otherText); - + ATB_edit_InsertString(data->editor, &otherText); + /* API - 05/09/03 - SPR2357 - END */ - /* API - 10/09/03 - SPR2513 - END */ + /* API - 10/09/03 - SPR2513 - END */ // API - 21-01-03 - 1566 - Date and Time displayed for Recent calls // change by Sasken ( Rashmi C N) on March 31th 2004 // Issue Number : MMI-SPR-12874 // Bug: Wrong date and time in the Missed call details. - // Solution: converting the date and time into decimal format used in the + // Solution: converting the date and time into decimal format used in the // phonebook management. - sprintf((char*)TempBuffer, "%.2d:%.2d", (UBYTE) ((my->time.hour[0])<<4)+(UBYTE) my->time.hour[1], + sprintf((char*)TempBuffer, "%.2d:%.2d", (UBYTE) ((my->time.hour[0])<<4)+(UBYTE) my->time.hour[1], (UBYTE) ((my->time.minute[0])<<4)+(UBYTE) my->time.minute[1]); otherText.dcs = ATB_DCS_ASCII; @@ -316,7 +316,7 @@ FREE_MEMORY((void *)TempBuffer, CALLDETAILS_INFO_LEN); - + /* show the editor and update the soft keys */ /* SH - the string has changed, so we need to refresh the word-wrap */ @@ -339,11 +339,11 @@ $Function: bookCallDetailsWinCB $Description: Window call back function - + $Returns: MFW_EVENT_CONSUMED $Arguments: e, event to be handles, w, window handle - + *******************************************************************************/ static int bookCallDetailsWinCB( MfwEvt e, MfwWin *w ) @@ -364,7 +364,7 @@ resources_setTitleColour(COLOUR_EDITOR); /* TITLE */ - + dspl_Clear(0,0, SCREEN_SIZE_X-1, data->editor->attr->win_size.py-1); PROMPT(0,0,0,TxtDetails); #else /* NEW_EDITOR */ @@ -389,7 +389,7 @@ { - //GW Copy name and length + //GW Copy name and length bookCopyPhbName(my, &p_pEntry,PHB_MAX_LEN); my->name.len = p_pEntry.name.len; } @@ -410,32 +410,32 @@ memset((char*)TempBuffer ,'\0',32); - + /* API - 1203 - 30/09/02 - Add the Data and the Time to the TempBuffer to be shown when the details of a LDN, LMN etc is looked at. Currently commented out as the ACI does not store the numbers at present and garbage would be displayed. */ - /* API - 1542 - 10/01/03 - Update from issue above Added the values written to the structure by ACI to + /* API - 1542 - 10/01/03 - Update from issue above Added the values written to the structure by ACI to display them to the user. */ /* API - 05/09/03 - SPR2357 - Get the character string for the date and time */ - Time = MmiRsrcGetText(TxtCallTime); - Date = MmiRsrcGetText(TxtCallDate); - - sprintf((char*)TempBuffer,"%s%d%d%s%d%d%s %s%d%d%s%d%d%s%d%d%s", - Time, (UBYTE) my->time.hour[0], (UBYTE) my->time.hour[1], ":", + Time = MmiRsrcGetText(TxtCallTime); + Date = MmiRsrcGetText(TxtCallDate); + + sprintf((char*)TempBuffer,"%s%d%d%s%d%d%s %s%d%d%s%d%d%s%d%d%s", + Time, (UBYTE) my->time.hour[0], (UBYTE) my->time.hour[1], ":", (UBYTE) my->time.minute[0], (UBYTE) my->time.minute[1], "\n", - Date, (UBYTE) my->date.day[0], (UBYTE) my->date.day[1], "/", + Date, (UBYTE) my->date.day[0], (UBYTE) my->date.day[1], "/", (UBYTE) my->date.month[0], (UBYTE) my->date.month[1], "/", (UBYTE) my->date.year[0], (UBYTE) my->date.year[1], "\n"); /* API - 05/09/03 - SPR2357 - END */ - + #ifdef NO_ASCIIZ -#ifdef EASY_TEXT_ENABLED +#ifdef EASY_TEXT_ENABLED /*MC SPR 1242, changed macros to function calls e.g FIRST_LINE_CHINESE->Mmi_layout_first_line()*/ if (my->name.data[0] ==0x80)//if unicode { //display name as unicode @@ -462,7 +462,7 @@ (char *) my->name.data, "\n", (char *) my->number,"\n", TempBuffer ); - + /* show the editor and update the soft keys */ edtShow( data->edt ); @@ -481,7 +481,7 @@ (char *) my->name, "\n", (char *) my->number,"\n", TempBuffer ); - + /* show the editor and update the soft keys */ edtShow( data->edt ); @@ -512,11 +512,11 @@ $Function: bookCallDetailsKeyCB $Description: normal keyboard handler - + $Returns: MFW_EVENT_CONSUMED in all cases $Arguments: e, event to be handled, k keyboard handle - + *******************************************************************************/ static int bookCallDetailsKeyCB( MfwEvt e, MfwKbd *k ) @@ -545,12 +545,12 @@ } else data->phbk->current.selectedName++; - + } break; case KCD_MNUUP: - { + { /* scroll up event */ if ( data->phbk->current.selectedName == 0 ) @@ -614,11 +614,11 @@ $Function: bookCallDetailsKbdLongCB $Description: Keyboard Long Press event handler - + $Returns: MFW_EVENT_CONSUMED always $Arguments: e, event, k, keyboard handle - + *******************************************************************************/ static int bookCallDetailsKeyLongCB( MfwEvt e, MfwKbd *k ) @@ -644,11 +644,11 @@ $Description: Creates the window and associates editors and keyboards with it. - + $Returns: handle of the newly created window, or NULL if failure $Arguments: parent, handle of parent window - + *******************************************************************************/ static T_MFW_HND bookCallDetailsCreate( MfwHnd parent ) @@ -710,9 +710,9 @@ /******************************************************************************* - + Public methods - + *******************************************************************************/ @@ -722,11 +722,11 @@ $Function: bookCallDetailsStart $Description: entry point for the call details window - + $Returns: handle of newly created window, or NULL $Arguments: parent, handle of the parent window - + *******************************************************************************/ T_MFW_HND bookCallDetailsStart( MfwHnd parent ) @@ -752,11 +752,11 @@ $Function: bookCallDetailsDestroy $Description: destroys the call details window - + $Returns: None. $Arguments: window, hande of the window to be destroyed - + *******************************************************************************/ void bookCallDetailsDestroy( MfwHnd window ) @@ -788,7 +788,7 @@ /******************************************************************************* - + End of File - + *******************************************************************************/