comparison 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
comparison
equal deleted inserted replaced
91:c3d28a37caad 92:c0052fe355d3
1 /******************************************************************************* 1 /*******************************************************************************
2 2
3 CONDAT (UK) 3 CONDAT (UK)
4 4
5 ******************************************************************************** 5 ********************************************************************************
6 6
7 This software product is the property of Condat (UK) Ltd and may not be 7 This software product is the property of Condat (UK) Ltd and may not be
8 disclosed to any third party without the express permission of the owner. 8 disclosed to any third party without the express permission of the owner.
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: MmiBookCallDetailsWindow.c 15 $File: MmiBookCallDetailsWindow.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
25 This provides the implementation of the call details window for the 25 This provides the implementation of the call details window for the
26 phone book module 26 phone book module
27 27
28 ******************************************************************************** 28 ********************************************************************************
29 $History: MmiBookCallDetailsWindow.c 29 $History: MmiBookCallDetailsWindow.c
30 Feb 22, 2007 OMAPS00115777 a0393213(R.Prabakar) 30 Feb 22, 2007 OMAPS00115777 a0393213(R.Prabakar)
31 Description : Details of any Missed call number shows Invalid information 31 Description : Details of any Missed call number shows Invalid information
32 Fix : Data was not initialized properly. Now it's initialized properly and 32 Fix : Data was not initialized properly. Now it's initialized properly and
33 the fix done as part of CRR 22638 reverted back as it isn't clean 33 the fix done as part of CRR 22638 reverted back as it isn't clean
34 34
35 Aug 24, 2004 REF: CRR 22638 xrashmic 35 Aug 24, 2004 REF: CRR 22638 xrashmic
36 Bug: E-Sample switches off when you attempt to look at details of a number 36 Bug: E-Sample switches off when you attempt to look at details of a number
37 in call list. 37 in call list.
38 Fix: Using the data stored in global variable to avoid corrupt data. 38 Fix: Using the data stored in global variable to avoid corrupt data.
39 39
40 25/10/00 Original Condat(UK) BMI version. 40 25/10/00 Original Condat(UK) BMI version.
41 41
42 $End 42 $End
43 // Issue Number : SPR#12874 on 31/03/04 by Rashmi.C.N. 43 // Issue Number : SPR#12874 on 31/03/04 by Rashmi.C.N.
44 *******************************************************************************/ 44 *******************************************************************************/
45 45
46 46
47 47
48 48
49 /******************************************************************************* 49 /*******************************************************************************
50 50
51 Include Files 51 Include Files
52 52
53 *******************************************************************************/ 53 *******************************************************************************/
54 #define ENTITY_MFW 54 #define ENTITY_MFW
55 55
56 /* includes */ 56 /* includes */
57 #include <string.h> 57 #include <string.h>
141 141
142 #define CALLDETAILS_INFO_LEN 32 142 #define CALLDETAILS_INFO_LEN 32
143 143
144 144
145 /******************************************************************************* 145 /*******************************************************************************
146 146
147 Private methods 147 Private methods
148 148
149 *******************************************************************************/ 149 *******************************************************************************/
150 150
151 151
152 152
153 /******************************************************************************* 153 /*******************************************************************************
154 154
155 $Function: bookCallDetails 155 $Function: bookCallDetails
156 156
157 $Description: dialog function for the call details windows 157 $Description: dialog function for the call details windows
158 158
159 $Returns: None. 159 $Returns: None.
160 160
161 $Arguments: win, window handle 161 $Arguments: win, window handle
162 event, event to be handled 162 event, event to be handled
163 value, not used 163 value, not used
164 parameter, not used 164 parameter, not used
165 165
166 *******************************************************************************/ 166 *******************************************************************************/
167 167
168 static void bookCallDetails( T_MFW_HND win, USHORT event, SHORT value, void * parameter ) 168 static void bookCallDetails( T_MFW_HND win, USHORT event, SHORT value, void * parameter )
169 { 169 {
170 T_MFW_WIN *win_data = ((T_MFW_HDR *) win)->data; 170 T_MFW_WIN *win_data = ((T_MFW_HDR *) win)->data;
181 char *date; 181 char *date;
182 TRACE_FUNCTION( "bookCallDetails()" ); 182 TRACE_FUNCTION( "bookCallDetails()" );
183 183
184 /* SPR#1428 - SH - New Editor changes 184 /* SPR#1428 - SH - New Editor changes
185 * Moved all this stuff here from the WinCb - it shouldn't be there! */ 185 * Moved all this stuff here from the WinCb - it shouldn't be there! */
186 186
187 /* try to get the name from the phone book, null the structure out 187 /* try to get the name from the phone book, null the structure out
188 if we can't find it at all 188 if we can't find it at all
189 */ 189 */
190 190
191 if ( bookFindNameInPhonebook( (const char *) my->number, &p_pEntry ) ) 191 if ( bookFindNameInPhonebook( (const char *) my->number, &p_pEntry ) )
200 200
201 numberText.dcs = ATB_DCS_ASCII; 201 numberText.dcs = ATB_DCS_ASCII;
202 numberText.data = my->number; 202 numberText.data = my->number;
203 ATB_string_Length(&numberText); 203 ATB_string_Length(&numberText);
204 204
205 #ifdef EASY_TEXT_ENABLED 205 #ifdef EASY_TEXT_ENABLED
206 if ( my->name.data[0] ==0x80) 206 if ( my->name.data[0] ==0x80)
207 { 207 {
208 /* UNICODE */ 208 /* UNICODE */
209 nameText.dcs = ATB_DCS_UNICODE; 209 nameText.dcs = ATB_DCS_UNICODE;
210 nameText.data = &my->name.data[2]; 210 nameText.data = &my->name.data[2];
211 } 211 }
212 else 212 else
223 ATB_edit_ClearAll(data->editor); /* Blank the editor */ 223 ATB_edit_ClearAll(data->editor); /* Blank the editor */
224 ATB_edit_InsertString(data->editor, &nameText); 224 ATB_edit_InsertString(data->editor, &nameText);
225 ATB_edit_Char(data->editor, ctrlEnter, FALSE); 225 ATB_edit_Char(data->editor, ctrlEnter, FALSE);
226 ATB_edit_InsertString(data->editor, &numberText); 226 ATB_edit_InsertString(data->editor, &numberText);
227 ATB_edit_Char(data->editor, ctrlEnter, FALSE); 227 ATB_edit_Char(data->editor, ctrlEnter, FALSE);
228 228
229 if (CphsPresent() == TRUE) 229 if (CphsPresent() == TRUE)
230 { 230 {
231 sprintf(TempBuffer, "Line %d", my->line); 231 sprintf(TempBuffer, "Line %d", my->line);
232 otherText.dcs = ATB_DCS_ASCII; 232 otherText.dcs = ATB_DCS_ASCII;
233 otherText.data = (UBYTE *)TempBuffer; 233 otherText.data = (UBYTE *)TempBuffer;
234 ATB_string_Length(&otherText); 234 ATB_string_Length(&otherText);
235 ATB_edit_InsertString(data->editor, &otherText); 235 ATB_edit_InsertString(data->editor, &otherText);
236 ATB_edit_Char(data->editor, ctrlEnter, FALSE); 236 ATB_edit_Char(data->editor, ctrlEnter, FALSE);
237 } 237 }
238 238
239 /* API - 10/09/03 - SPR2513 - Add support to display chinese Data & Time */ 239 /* API - 10/09/03 - SPR2513 - Add support to display chinese Data & Time */
240 /* API - 05/09/03 - SPR2357 - Get the character string for the date */ 240 /* API - 05/09/03 - SPR2357 - Get the character string for the date */
241 241
242 date = MmiRsrcGetText(TxtCallDate); 242 date = MmiRsrcGetText(TxtCallDate);
243 243
244 if(Mmi_getCurrentLanguage() == CHINESE_LANGUAGE) 244 if(Mmi_getCurrentLanguage() == CHINESE_LANGUAGE)
245 { 245 {
246 otherText.dcs = ATB_DCS_UNICODE; 246 otherText.dcs = ATB_DCS_UNICODE;
250 { 250 {
251 otherText.dcs = ATB_DCS_ASCII; 251 otherText.dcs = ATB_DCS_ASCII;
252 otherText.data = (UBYTE *)date; 252 otherText.data = (UBYTE *)date;
253 } 253 }
254 ATB_string_Length(&otherText); 254 ATB_string_Length(&otherText);
255 ATB_edit_InsertString(data->editor, &otherText); 255 ATB_edit_InsertString(data->editor, &otherText);
256 256
257 /* API - 05/09/03 - SPR2357 - END */ 257 /* API - 05/09/03 - SPR2357 - END */
258 /* API - 10/09/03 - SPR2513 - END */ 258 /* API - 10/09/03 - SPR2513 - END */
259 259
260 // API - 21-01-03 - 1566 - Date and Time displayed for Recent calls 260 // API - 21-01-03 - 1566 - Date and Time displayed for Recent calls
261 261
262 // change by Sasken ( Rashmi C N) on March 31th 2004 262 // change by Sasken ( Rashmi C N) on March 31th 2004
263 // Issue Number : MMI-SPR-12874 263 // Issue Number : MMI-SPR-12874
264 // Bug: Wrong date and time in the Missed call details. 264 // Bug: Wrong date and time in the Missed call details.
265 // Solution: converting the date and time into decimal format used in the 265 // Solution: converting the date and time into decimal format used in the
266 // phonebook management. 266 // phonebook management.
267 267
268 sprintf((char*)TempBuffer, "%.2d/%.2d/%.2d",(UBYTE)((my->date.day[0])<<4)+(UBYTE) my->date.day[1], 268 sprintf((char*)TempBuffer, "%.2d/%.2d/%.2d",(UBYTE)((my->date.day[0])<<4)+(UBYTE) my->date.day[1],
269 (UBYTE) ((my->date.month[0])<<4)+(UBYTE) my->date.month[1], 269 (UBYTE) ((my->date.month[0])<<4)+(UBYTE) my->date.month[1],
270 (UBYTE) ((my->date.year[0])<<4)+(UBYTE) my->date.year[1]); 270 (UBYTE) ((my->date.year[0])<<4)+(UBYTE) my->date.year[1]);
271 otherText.dcs = ATB_DCS_ASCII; 271 otherText.dcs = ATB_DCS_ASCII;
272 otherText.data = (UBYTE *)TempBuffer; 272 otherText.data = (UBYTE *)TempBuffer;
273 ATB_string_Length(&otherText); 273 ATB_string_Length(&otherText);
274 ATB_edit_InsertString(data->editor, &otherText); 274 ATB_edit_InsertString(data->editor, &otherText);
275 ATB_edit_Char(data->editor, ctrlEnter, FALSE); 275 ATB_edit_Char(data->editor, ctrlEnter, FALSE);
276 276
277 277
278 278
279 /* API - 10/09/03 - SPR2513 - Add support to display chinese Data & Time */ 279 /* API - 10/09/03 - SPR2513 - Add support to display chinese Data & Time */
280 /* API - 05/09/03 - SPR2357 - Get the character string for the Time */ 280 /* API - 05/09/03 - SPR2357 - Get the character string for the Time */
281 281
282 time = MmiRsrcGetText(TxtCallTime); 282 time = MmiRsrcGetText(TxtCallTime);
283 283
284 if(Mmi_getCurrentLanguage() == CHINESE_LANGUAGE) 284 if(Mmi_getCurrentLanguage() == CHINESE_LANGUAGE)
285 { 285 {
286 otherText.dcs = ATB_DCS_UNICODE; 286 otherText.dcs = ATB_DCS_UNICODE;
290 { 290 {
291 otherText.dcs = ATB_DCS_ASCII; 291 otherText.dcs = ATB_DCS_ASCII;
292 otherText.data = (UBYTE *)time; 292 otherText.data = (UBYTE *)time;
293 } 293 }
294 294
295 ATB_edit_InsertString(data->editor, &otherText); 295 ATB_edit_InsertString(data->editor, &otherText);
296 296
297 /* API - 05/09/03 - SPR2357 - END */ 297 /* API - 05/09/03 - SPR2357 - END */
298 /* API - 10/09/03 - SPR2513 - END */ 298 /* API - 10/09/03 - SPR2513 - END */
299 299
300 // API - 21-01-03 - 1566 - Date and Time displayed for Recent calls 300 // API - 21-01-03 - 1566 - Date and Time displayed for Recent calls
301 301
302 // change by Sasken ( Rashmi C N) on March 31th 2004 302 // change by Sasken ( Rashmi C N) on March 31th 2004
303 // Issue Number : MMI-SPR-12874 303 // Issue Number : MMI-SPR-12874
304 // Bug: Wrong date and time in the Missed call details. 304 // Bug: Wrong date and time in the Missed call details.
305 // Solution: converting the date and time into decimal format used in the 305 // Solution: converting the date and time into decimal format used in the
306 // phonebook management. 306 // phonebook management.
307 sprintf((char*)TempBuffer, "%.2d:%.2d", (UBYTE) ((my->time.hour[0])<<4)+(UBYTE) my->time.hour[1], 307 sprintf((char*)TempBuffer, "%.2d:%.2d", (UBYTE) ((my->time.hour[0])<<4)+(UBYTE) my->time.hour[1],
308 (UBYTE) ((my->time.minute[0])<<4)+(UBYTE) my->time.minute[1]); 308 (UBYTE) ((my->time.minute[0])<<4)+(UBYTE) my->time.minute[1]);
309 309
310 otherText.dcs = ATB_DCS_ASCII; 310 otherText.dcs = ATB_DCS_ASCII;
311 otherText.data = (UBYTE *)TempBuffer; 311 otherText.data = (UBYTE *)TempBuffer;
312 ATB_string_Length(&otherText); 312 ATB_string_Length(&otherText);
314 314
315 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */ 315 ATB_edit_SetMode(data->editor, ED_MODE_READONLY); /* Switch on read only again */
316 316
317 317
318 FREE_MEMORY((void *)TempBuffer, CALLDETAILS_INFO_LEN); 318 FREE_MEMORY((void *)TempBuffer, CALLDETAILS_INFO_LEN);
319 319
320 /* show the editor and update the soft keys 320 /* show the editor and update the soft keys
321 */ 321 */
322 /* SH - the string has changed, so we need to refresh the word-wrap */ 322 /* SH - the string has changed, so we need to refresh the word-wrap */
323 ATB_edit_Refresh(data->editor); 323 ATB_edit_Refresh(data->editor);
324 win_show(data->win); 324 win_show(data->win);
337 /******************************************************************************* 337 /*******************************************************************************
338 338
339 $Function: bookCallDetailsWinCB 339 $Function: bookCallDetailsWinCB
340 340
341 $Description: Window call back function 341 $Description: Window call back function
342 342
343 $Returns: MFW_EVENT_CONSUMED 343 $Returns: MFW_EVENT_CONSUMED
344 344
345 $Arguments: e, event to be handles, w, window handle 345 $Arguments: e, event to be handles, w, window handle
346 346
347 *******************************************************************************/ 347 *******************************************************************************/
348 348
349 static int bookCallDetailsWinCB( MfwEvt e, MfwWin *w ) 349 static int bookCallDetailsWinCB( MfwEvt e, MfwWin *w )
350 { 350 {
351 tBookStandard * data = (tBookStandard *)w->user; 351 tBookStandard * data = (tBookStandard *)w->user;
362 #ifdef NEW_EDITOR 362 #ifdef NEW_EDITOR
363 ATB_edit_Show(data->editor); 363 ATB_edit_Show(data->editor);
364 resources_setTitleColour(COLOUR_EDITOR); 364 resources_setTitleColour(COLOUR_EDITOR);
365 365
366 /* TITLE */ 366 /* TITLE */
367 367
368 dspl_Clear(0,0, SCREEN_SIZE_X-1, data->editor->attr->win_size.py-1); 368 dspl_Clear(0,0, SCREEN_SIZE_X-1, data->editor->attr->win_size.py-1);
369 PROMPT(0,0,0,TxtDetails); 369 PROMPT(0,0,0,TxtDetails);
370 #else /* NEW_EDITOR */ 370 #else /* NEW_EDITOR */
371 char TempBuffer[32]; 371 char TempBuffer[32];
372 T_MFW_PHB_ENTRY p_pEntry; 372 T_MFW_PHB_ENTRY p_pEntry;
387 387
388 if ( bookFindNameInPhonebook( (const char *) my->number, &p_pEntry ) ) 388 if ( bookFindNameInPhonebook( (const char *) my->number, &p_pEntry ) )
389 { 389 {
390 390
391 391
392 //GW Copy name and length 392 //GW Copy name and length
393 bookCopyPhbName(my, &p_pEntry,PHB_MAX_LEN); 393 bookCopyPhbName(my, &p_pEntry,PHB_MAX_LEN);
394 my->name.len = p_pEntry.name.len; 394 my->name.len = p_pEntry.name.len;
395 } 395 }
396 else 396 else
397 { 397 {
408 memset( (char*) my->name, '\0', NAME_SCREEN_MAX ); 408 memset( (char*) my->name, '\0', NAME_SCREEN_MAX );
409 #endif /* NO_ASCIIZ */ 409 #endif /* NO_ASCIIZ */
410 410
411 memset((char*)TempBuffer ,'\0',32); 411 memset((char*)TempBuffer ,'\0',32);
412 412
413 413
414 /* API - 1203 - 30/09/02 - Add the Data and the Time to the TempBuffer to be shown when the details of a 414 /* API - 1203 - 30/09/02 - Add the Data and the Time to the TempBuffer to be shown when the details of a
415 LDN, LMN etc is looked at. Currently commented out as the ACI does not store the 415 LDN, LMN etc is looked at. Currently commented out as the ACI does not store the
416 numbers at present and garbage would be displayed. 416 numbers at present and garbage would be displayed.
417 */ 417 */
418 418
419 /* API - 1542 - 10/01/03 - Update from issue above Added the values written to the structure by ACI to 419 /* API - 1542 - 10/01/03 - Update from issue above Added the values written to the structure by ACI to
420 display them to the user. 420 display them to the user.
421 */ 421 */
422 422
423 /* API - 05/09/03 - SPR2357 - Get the character string for the date and time */ 423 /* API - 05/09/03 - SPR2357 - Get the character string for the date and time */
424 Time = MmiRsrcGetText(TxtCallTime); 424 Time = MmiRsrcGetText(TxtCallTime);
425 Date = MmiRsrcGetText(TxtCallDate); 425 Date = MmiRsrcGetText(TxtCallDate);
426 426
427 sprintf((char*)TempBuffer,"%s%d%d%s%d%d%s %s%d%d%s%d%d%s%d%d%s", 427 sprintf((char*)TempBuffer,"%s%d%d%s%d%d%s %s%d%d%s%d%d%s%d%d%s",
428 Time, (UBYTE) my->time.hour[0], (UBYTE) my->time.hour[1], ":", 428 Time, (UBYTE) my->time.hour[0], (UBYTE) my->time.hour[1], ":",
429 (UBYTE) my->time.minute[0], (UBYTE) my->time.minute[1], "\n", 429 (UBYTE) my->time.minute[0], (UBYTE) my->time.minute[1], "\n",
430 Date, (UBYTE) my->date.day[0], (UBYTE) my->date.day[1], "/", 430 Date, (UBYTE) my->date.day[0], (UBYTE) my->date.day[1], "/",
431 (UBYTE) my->date.month[0], (UBYTE) my->date.month[1], "/", 431 (UBYTE) my->date.month[0], (UBYTE) my->date.month[1], "/",
432 (UBYTE) my->date.year[0], (UBYTE) my->date.year[1], "\n"); 432 (UBYTE) my->date.year[0], (UBYTE) my->date.year[1], "\n");
433 /* API - 05/09/03 - SPR2357 - END */ 433 /* API - 05/09/03 - SPR2357 - END */
434 434
435 435
436 436
437 #ifdef NO_ASCIIZ 437 #ifdef NO_ASCIIZ
438 #ifdef EASY_TEXT_ENABLED 438 #ifdef EASY_TEXT_ENABLED
439 /*MC SPR 1242, changed macros to function calls e.g FIRST_LINE_CHINESE->Mmi_layout_first_line()*/ 439 /*MC SPR 1242, changed macros to function calls e.g FIRST_LINE_CHINESE->Mmi_layout_first_line()*/
440 if (my->name.data[0] ==0x80)//if unicode 440 if (my->name.data[0] ==0x80)//if unicode
441 { //display name as unicode 441 { //display name as unicode
442 dspl_TextOut(0,0, DSPL_TXTATTR_UNICODE, (char *)my->name.data); 442 dspl_TextOut(0,0, DSPL_TXTATTR_UNICODE, (char *)my->name.data);
443 if ((my->name.data[MAX_LINE+2] != 0) && (my->name.data[MAX_LINE+3] != 0)) 443 if ((my->name.data[MAX_LINE+2] != 0) && (my->name.data[MAX_LINE+3] != 0))
460 else 460 else
461 sprintf( (char *) data->edtBuf, "%s%s%s%s%s", 461 sprintf( (char *) data->edtBuf, "%s%s%s%s%s",
462 (char *) my->name.data, "\n", 462 (char *) my->name.data, "\n",
463 (char *) my->number,"\n", 463 (char *) my->number,"\n",
464 TempBuffer ); 464 TempBuffer );
465 465
466 /* show the editor and update the soft keys 466 /* show the editor and update the soft keys
467 */ 467 */
468 edtShow( data->edt ); 468 edtShow( data->edt );
469 } 469 }
470 470
479 else 479 else
480 sprintf( (char *) data->edtBuf, "%s%s%s%s%s", 480 sprintf( (char *) data->edtBuf, "%s%s%s%s%s",
481 (char *) my->name, "\n", 481 (char *) my->name, "\n",
482 (char *) my->number,"\n", 482 (char *) my->number,"\n",
483 TempBuffer ); 483 TempBuffer );
484 484
485 /* show the editor and update the soft keys 485 /* show the editor and update the soft keys
486 */ 486 */
487 edtShow( data->edt ); 487 edtShow( data->edt );
488 #endif /* NO_ASCIIZ */ 488 #endif /* NO_ASCIIZ */
489 #endif /* NEW_EDITOR */ 489 #endif /* NEW_EDITOR */
510 /******************************************************************************* 510 /*******************************************************************************
511 511
512 $Function: bookCallDetailsKeyCB 512 $Function: bookCallDetailsKeyCB
513 513
514 $Description: normal keyboard handler 514 $Description: normal keyboard handler
515 515
516 $Returns: MFW_EVENT_CONSUMED in all cases 516 $Returns: MFW_EVENT_CONSUMED in all cases
517 517
518 $Arguments: e, event to be handled, k keyboard handle 518 $Arguments: e, event to be handled, k keyboard handle
519 519
520 *******************************************************************************/ 520 *******************************************************************************/
521 521
522 static int bookCallDetailsKeyCB( MfwEvt e, MfwKbd *k ) 522 static int bookCallDetailsKeyCB( MfwEvt e, MfwKbd *k )
523 { 523 {
524 T_MFW_HND win = mfwParent( mfw_header() ); 524 T_MFW_HND win = mfwParent( mfw_header() );
543 { 543 {
544 data->phbk->current.selectedName = 0; 544 data->phbk->current.selectedName = 0;
545 } 545 }
546 else 546 else
547 data->phbk->current.selectedName++; 547 data->phbk->current.selectedName++;
548 548
549 } 549 }
550 break; 550 break;
551 551
552 case KCD_MNUUP: 552 case KCD_MNUUP:
553 { 553 {
554 /* scroll up event 554 /* scroll up event
555 */ 555 */
556 if ( data->phbk->current.selectedName == 0 ) 556 if ( data->phbk->current.selectedName == 0 )
557 { 557 {
558 data->phbk->current.selectedName = data->phbk->current.status.used_entries-1; 558 data->phbk->current.selectedName = data->phbk->current.status.used_entries-1;
612 /******************************************************************************* 612 /*******************************************************************************
613 613
614 $Function: bookCallDetailsKbdLongCB 614 $Function: bookCallDetailsKbdLongCB
615 615
616 $Description: Keyboard Long Press event handler 616 $Description: Keyboard Long Press event handler
617 617
618 $Returns: MFW_EVENT_CONSUMED always 618 $Returns: MFW_EVENT_CONSUMED always
619 619
620 $Arguments: e, event, k, keyboard handle 620 $Arguments: e, event, k, keyboard handle
621 621
622 *******************************************************************************/ 622 *******************************************************************************/
623 623
624 static int bookCallDetailsKeyLongCB( MfwEvt e, MfwKbd *k ) 624 static int bookCallDetailsKeyLongCB( MfwEvt e, MfwKbd *k )
625 { 625 {
626 T_MFW_HND win = mfwParent( mfw_header() ); 626 T_MFW_HND win = mfwParent( mfw_header() );
642 642
643 $Function: bookCallDetailsCreate 643 $Function: bookCallDetailsCreate
644 644
645 $Description: Creates the window and associates editors and keyboards 645 $Description: Creates the window and associates editors and keyboards
646 with it. 646 with it.
647 647
648 $Returns: handle of the newly created window, or NULL if failure 648 $Returns: handle of the newly created window, or NULL if failure
649 649
650 $Arguments: parent, handle of parent window 650 $Arguments: parent, handle of parent window
651 651
652 *******************************************************************************/ 652 *******************************************************************************/
653 653
654 static T_MFW_HND bookCallDetailsCreate( MfwHnd parent ) 654 static T_MFW_HND bookCallDetailsCreate( MfwHnd parent )
655 { 655 {
656 T_MFW_WIN *win_data; 656 T_MFW_WIN *win_data;
708 return data->win; 708 return data->win;
709 } 709 }
710 710
711 711
712 /******************************************************************************* 712 /*******************************************************************************
713 713
714 Public methods 714 Public methods
715 715
716 *******************************************************************************/ 716 *******************************************************************************/
717 717
718 718
719 719
720 /******************************************************************************* 720 /*******************************************************************************
721 721
722 $Function: bookCallDetailsStart 722 $Function: bookCallDetailsStart
723 723
724 $Description: entry point for the call details window 724 $Description: entry point for the call details window
725 725
726 $Returns: handle of newly created window, or NULL 726 $Returns: handle of newly created window, or NULL
727 727
728 $Arguments: parent, handle of the parent window 728 $Arguments: parent, handle of the parent window
729 729
730 *******************************************************************************/ 730 *******************************************************************************/
731 731
732 T_MFW_HND bookCallDetailsStart( MfwHnd parent ) 732 T_MFW_HND bookCallDetailsStart( MfwHnd parent )
733 { 733 {
734 T_MFW_HND win; 734 T_MFW_HND win;
750 /******************************************************************************* 750 /*******************************************************************************
751 751
752 $Function: bookCallDetailsDestroy 752 $Function: bookCallDetailsDestroy
753 753
754 $Description: destroys the call details window 754 $Description: destroys the call details window
755 755
756 $Returns: None. 756 $Returns: None.
757 757
758 $Arguments: window, hande of the window to be destroyed 758 $Arguments: window, hande of the window to be destroyed
759 759
760 *******************************************************************************/ 760 *******************************************************************************/
761 761
762 void bookCallDetailsDestroy( MfwHnd window ) 762 void bookCallDetailsDestroy( MfwHnd window )
763 { 763 {
764 T_MFW_WIN *win = ((T_MFW_HDR *)window)->data; 764 T_MFW_WIN *win = ((T_MFW_HDR *)window)->data;
786 786
787 787
788 788
789 789
790 /******************************************************************************* 790 /*******************************************************************************
791 791
792 End of File 792 End of File
793 793
794 *******************************************************************************/ 794 *******************************************************************************/