diff src/ui/bmi/mmiIdle.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 1876b5f8d922
children
line wrap: on
line diff
--- a/src/ui/bmi/mmiIdle.c	Sun Nov 08 05:12:05 2020 +0000
+++ b/src/ui/bmi/mmiIdle.c	Sun Nov 08 06:39:16 2020 +0000
@@ -29,49 +29,49 @@
 
     May 09, 2007  DR: OMAPS00129014
     Description: COMBO: unable to send SMS during midi playing
-    Solution: Removed the phlock check status code in idle_draw_main_idle. 
-            Added a flag to identify whether autophonelock is enabled or not and start the timer 
+    Solution: Removed the phlock check status code in idle_draw_main_idle.
+            Added a flag to identify whether autophonelock is enabled or not and start the timer
                 based on the flag status
-    
+
     Apr 03, 2007    ER: OMAPS00122561  x0pleela
     Description:   [ACI] Phone lock feature has to be supported by ACI
-    Solution: Phone Lock ER implementation 
- 
+    Solution: Phone Lock ER implementation
+
       Mar 30, 2007 OMAPS00123019 a0393213(R.Prabakar)
       Description :  Reboot of the target when you unplug/plug USB cable using camera application
-      
+
        28th Mar 2007 OMAPS00121870 a0393213(R.Prabakar)
      Description : In Limited service mode unable to access idle screen options menu and Names/Read
-       
+
     Jan 24, 2007 OMAPS00112312 a0393213(R.Prabakar)
     Description:MMI causes system freeze
 
     Jan 05, 2007 OMAPS00084665  x0039928(sumanth)
     Description: Boot time exceed UCSD estimations
-    
+
        Dec 08, 2006 OMAPS00106744  a0393213(R.Prabakar)
        Description : Wrong string is displayed when pressing long [1]
-       
+
     Oct 13, 2006 OMAPS00095266 a0393213(R.Prabakar)
     Description : CT-GCF[27.22.4.22.1]-Incorrect string display
     Solution     : The DCS attribute is set dynamically
-    
+
 
        Oct 30, 2006 ER:OMAPS00091029 x0039928(sumanth)
        Bootup time measurement
-        
+
        Oct 11, 2006 REF:OMAPS00098287  x0039928
        Description : CPHS 4.2: MMI variable als_status is not updated proplery with the SIM contents.
        Solution     : als_status update is deffered until the idle screen is displayed.
-       
-    xashmic 27 Sep 2006, OMAPS00096389 
+
+    xashmic 27 Sep 2006, OMAPS00096389
     ENH - a) Providing static menu for re-selection of enum options for enumeration
     b) Popup menu displayed on connect event, can be enabled or disabled via menu option
-    
+
 
     xashmic 14 Sep 2006, OMAPS00092732 HOT_FIX
     Ports are automatically enumerated if user does not select any option with in 5 seconds.
- 
+
     xrashmic 9 Sep 2006, OMAPS00092732
     USBMS ER
 
@@ -80,19 +80,19 @@
     Solution:   - Removed the definition of new function GLOBAL USHORT get_nm_status(void).
     this function is not requierd as we are removing the new code added in callnumber() : MFW_SS_USSD
     switch case to send the USSD string through at+cusd command. Instead sending through ATDn command
-    
-                
+
+
     Aug 30, 2006  DR: OMAPS00083503 x0pleela
     Description: Result of ss_check_ss_string may be ignored
-    Solution:   - Defined a new function GLOBAL USHORT get_nm_status(void) as per the review 
+    Solution:   - Defined a new function GLOBAL USHORT get_nm_status(void) as per the review
                 comments to avoid the usage of the global variable gnm_status
 
-            
+
     Aug 28, 2006  DR: OMAPS00083503 x0pleela
     Description: Result of ss_check_ss_string may be ignored
-    Solution:   - Defined a new global variable gnm_status to hold the network status which will be 
+    Solution:   - Defined a new global variable gnm_status to hold the network status which will be
             used in mmicall.c
-            - idle_dialling_kbd_cb(): Copy the nm_status which is used during initiating the 
+            - idle_dialling_kbd_cb(): Copy the nm_status which is used during initiating the
             USSD transaction
 
 
@@ -107,17 +107,17 @@
     10 Jul 2006, Ref OMAPS00077654, R.Prabakar(a0393213)
     Description : Cyrillic character support in MMI to pass GCF/PTCRB  UCS2 TC (SATK)
     Solution     : The attribute of ATB editor is set to unicode
-                   
+
    July 04, 2006 REF:OMAPS00083759 a0393213(R.Prabakar)
    Description : Roaming indicator icon shown during searching
    Solution     : Roaming icon display condition will be checked only when we are in full network
-   
+
     Jun 23, 2006    DR: OMAPS00082374 x0pleela
-    Description: EONS Failures - unexpected output from the MMI: 2 carriers; on the top always T-Mobile 
+    Description: EONS Failures - unexpected output from the MMI: 2 carriers; on the top always T-Mobile
     Solution:   a) Removed the usage of global variable gEons_alloc_active
             b) In func, idle_draw_main_idle(), getting network logo statement is remoevd and replaced by NULL to pass the EONs test cases
             c) Added a check to display SPN if PLMN anme and numeric names are NULL
-                
+
        Jun 09, 2006 REF:OMAPS00079650  a0393213 (R.Prabakar)
        Description : CPHS Roaming indication feature implementation
        Solution     : As part of the implementation, in this file, Roaming icon is displayed on idle screen based on a condition
@@ -129,7 +129,7 @@
     Description: CPHS feature on Locosto-Lite
     Solution: For ALS feature,
             a) Added "IDLE_ALS_DATA" to display Current line indicator on the idle screen
-            b) Modified the function "idle_displayData()", "idle_draw_main_idle()" to display 
+            b) Modified the function "idle_displayData()", "idle_draw_main_idle()" to display
                 Current active line indicator on the idle screen
 
     Jun 02, 2006 DR: OMAPS00079699 - xreddymn
@@ -152,7 +152,7 @@
             Removed the code added in earlier version from function idle_kbd_cb()
             Registering for MfwWinResume event in idle_create()
             Handling MfwWinResume event in idle_win_cb()
-    
+
     Feb 09, 2006    ER: OMAPS00065203 x0pleela
     Description: Cingular Operator Name Prioritization implementation required
     Solution: "idle_opername_timer_cb" callback for timer to display opername on idle screen
@@ -160,12 +160,12 @@
             a. If SPN and plmn name are not NULL, SPN is displayed for 5 seconds and then plmn name
                 For the above scenario, display_condition of SPN is not checked as per Cingular's requirement
                 In spite of display_condition being FALSE, we go ahead and display SPN
-               b. If SPN is NULL and plmn name is not NULL, then plmn name is displayed         
-    
+               b. If SPN is NULL and plmn name is not NULL, then plmn name is displayed
+
        Feb 02, 2006 DR: OMAPS00061468 - x0035544.
-       Description: SAT 27.22.4.22.2 SET UP IDLE MODE TEXT (Icon support) fails 
+       Description: SAT 27.22.4.22.2 SET UP IDLE MODE TEXT (Icon support) fails
        Solution : SAT SET UP IDLE MODE TEXT (Icon) support added.
-       
+
     Nov 24, 2005 DR: OMAPS00045909 - Shashi Shekar B.S.
     Description: Improve IMEI control mechanism
     Solution : When MMI calls sAT_PLUSCFUN, if an IMEI invalid error is returned,
@@ -175,7 +175,7 @@
     Nov 17, 2005 DR: OMAPS00050447 - nekkareb
     Description: Even after removing the SIM , Hutch or Airtel network is seen
     Solution : Sim removal event is now being handled and appropriate display shown.
-    
+
     Nov 02, 2005    REF:ER OMAPS00039044  xdeepadh
     Description:   Mp3 Ringer Implementation
     Solution: The Midi Ringer application has been enhanced to support mp3 as ringer.
@@ -184,7 +184,7 @@
        xrashmic 22 Aug, 2004 MMI-SPR-32798
        Adding the support for screen capture using a dynamically assigned key.
 
-    Sept 15, 2005    REF: CRR 32410  x0021334 
+    Sept 15, 2005    REF: CRR 32410  x0021334
     Description: The keypad unlocks even though the unlocking sequence is not executed in quick succession.
     Fix:    A new timer expiry event is added and handled.
 
@@ -194,7 +194,7 @@
 
     Jun 14, 2005 REF: MMI-FIX-30439 x0018858
     Description: The homezone/cityzone tags were not being displayed properly.
-    Solution: Modified to save the tags properly in caches and also made the 
+    Solution: Modified to save the tags properly in caches and also made the
     appropriate modifications to update the same properly during mobility.
 
 
@@ -207,33 +207,33 @@
     Description:    IMEI retreival  by posting a call to ACI sAT_xx API
     Solution:       The direct call to cl_get_imeisv() is replaced with the
                     call to the mmi_imei_store() which inturn calls sAT_Dn() and
-                    retrieves the IMEI info and stores it onto the global 
+                    retrieves the IMEI info and stores it onto the global
                     variable "imei"
-                    
+
     Apr 05, 2005    REF: ENH 29994 xdeepadh
     Description: Implementation of Generic Midi Ringer and Modification of existing Midi Test Application
     Solution: Generic Midi Ringer and Midi Test Application were implemented.
-   
+
     x0018858 24 Mar, 2005 MMI-FIX-11321
     Issue Description :- If the inbox is full and a new message is receivd, no indication is received.
     Fix: Added support for handling indication when message box is full and
     there is a pending message.
-    
+
     Nov 3, 2004    REF: CRR 25887 xkundadu
     Description: Unable to make an emergency call.
     Fix: Changed the code to make the emergency call when the screen is locked.
         Also, a check is done to confirm whether the keypad buffer contains any ECC.
- 
+
     CRR 25268: 13 Oct 2004 - xpradipg
     Description: Unable to see the Number / name and the status read/unread of
     the received EMS/MMS
-    Solution: The status of each message is updated as soon as the Message is 
+    Solution: The status of each message is updated as soon as the Message is
     read, and "old"/"new" is appended based on the status flag
-    
+
     CRR 25270: 13 Oct 2004 - xpradipg
     Description: EMS: Titles such as "no name" is added to EMSs with no titles
     Solution: The corresponding name is retrieved from the phone book for the
-    number from which EMS is received, if name is not present number is 
+    number from which EMS is received, if name is not present number is
     displayed in Inbox
 
     Sep 22, 2004    REF: CRR 23871 xkundadu
@@ -244,39 +244,39 @@
     Description: Giving wrong expected result by long press on "#" key
     Fix:    When user presses long on '#' key it will display 'p'.
         Changed the long press of '*' key to display 'w'
-    
-    May 21, 2004    REF: CRR 16084  Deepa M.D 
+
+    May 21, 2004    REF: CRR 16084  Deepa M.D
     Fix:    SMSFull message string is  displayed,in the clean Idle Screen .
- 
-    Apr 27, 2004    REF: ENH 12646  Deepa M.D 
-    Fix:        When the SMS memory is full,the SMS icon is made to blink.  
-    Apr 14, 2004        REF: CRR 12653  xvilliva  
+
+    Apr 27, 2004    REF: ENH 12646  Deepa M.D
+    Fix:        When the SMS memory is full,the SMS icon is made to blink.
+    Apr 14, 2004        REF: CRR 12653  xvilliva
     Fix:    The FPLMN selection shows "No Service" on idle screen.
             The current mode of "limited service" is queried and the screen is updated
             accordingly. The LSK and RSK also work in sync.
     May 26, 2004    REF: CRR 19656  Sandip and Deepa M.D
     Fix:    when a SETUP IDLE TEXT command is sent with a long text ( 239 characters ), instead of discarding the message
             the message will be displayed.The CR is handled properly by converting it to Space.
-    
+
     Jul 23,2004 CRR:20895 xrashmic - SASKEN
     Description: The keypad should not be unlocked by SEND and *, it should be
        unlocked only by Menu and *
-    Fix: SEND key is now handled the same way as rest of the number keys. 
+    Fix: SEND key is now handled the same way as rest of the number keys.
     Keypad unlock can be done only through MENU and *.
 
-    Apr 14, 2004        REF: CRR 12653  xvilliva  
+    Apr 14, 2004        REF: CRR 12653  xvilliva
     The FPLMN selection shows "No Service" on idle screen.
     The current mode of "limited service" is queried and the screen is updated
     accordingly. The LSK and RSK also work in sync.
         xrashmic 26 Aug, 2004 MMI-SPR-23931
         To display the indication of new EMS in the idle screen
-        
+
     25/10/00            Original Condat(UK) BMI version.
-    
+
     Dec 23, 2005  REF:SR13873   x0020906
-    Description: SMS Play tones to be stopped during button press in idle   
-    FIX : Called for audio_stopSoundById () in the key press event. 
-    
+    Description: SMS Play tones to be stopped during button press in idle
+    FIX : Called for audio_stopSoundById () in the key press event.
+
     Apr 05,2006 REF:OMAPS00061046 x0043641
     Description: On pressing the KCD_HUP key in searching state the menu displays
        'No Network' with 'Name' and 'Menu' as softkeys instead of 'Searching'.
@@ -285,7 +285,7 @@
     Apr 24, 2006    ERT: OMAPS00067603 x0043642
     Description: Engineering mode
     Solution:  Added functionalities to handle the magic sequence to access engineering mode
-       
+
  $End
 
 *******************************************************************************/
@@ -343,7 +343,7 @@
 #include "mfw_simi.h"    // NH : put after mfw_nm.h as it contains a definition required by mfw_simi.h
 #include "mfw_sat.h"
 //Apr 05, 2005    REF: ENH 29994 xdeepadh
-#ifdef FF_MIDI_RINGER  
+#ifdef FF_MIDI_RINGER
 #include "mfw_midi.h"
 #endif
 
@@ -518,7 +518,7 @@
 
 //x0pleela 11 Apr, 2006 ER: OMAPS00075178
  //Timer for battery charging animation
-extern MfwHnd battery_charging_animate; 
+extern MfwHnd battery_charging_animate;
 static int  homezoneFlag = 0; //Jun 14, 2005 REF: MMI-FIX-30439 x0018858
                               // Added a flag.
 
@@ -533,7 +533,7 @@
 #define PLMN    1   /* PLMN name to be displayed on Idle screen*/
 
 static MfwHnd plmn_display;             /* timer handle */
-static UBYTE timer_start_flag = FALSE;      /* Timer start flag */  
+static UBYTE timer_start_flag = FALSE;      /* Timer start flag */
 static UBYTE opername_disp_flag=SPN;        /* Opertor name display flag : SPN or PLMN*/
 
 // Oct 11, 2006 REF:OMAPS00098287  x0039928
@@ -750,7 +750,7 @@
 
 static int lockTimerEvent(MfwEvt e, MfwTim *t);
 static void showPressMenuStar(void);
-/* x0039928 -Lint warning removal 
+/* x0039928 -Lint warning removal
 static void showSMSNewMessage(void); */
 static void showNothing(void);
 
@@ -864,7 +864,7 @@
 {
     /* x0045876, 14-Aug-2006 (WR - "hnd" was set but never used) */
     /* T_MFW_HND hnd; */
-    
+
     winAutoFocus(TRUE);
     idle_data.nm_status = 0;
     //  Apr 27, 2004    REF: ENH 12646  Deepa M.D
@@ -874,7 +874,7 @@
     //  x0pleela 11 Apr, 2006 ER: OMAPS00075178
     //Timer created to animate battery charging
     battery_charging_animate= timCreate(0,1000,(MfwCb) BattChargeEventTim);
-    
+
     //x0pleela 10 Feb, 2006  ER: OMAPS00065203
     //Create timer to display SPN for 5 secs and then display PLMN name
     plmn_display = timCreate(0, 5000, (MfwCb)idle_opername_timer_cb);
@@ -884,25 +884,25 @@
     //Create timer to display Phone lock unlock screen - timer is 10 secs duration
     autoPhLock_timer = timCreate(0, 10000, (MfwCb)idle_autoPhoneLock_timer_cb);
 #endif /*FF_PHONE_LOCK*/
-    
+
     /* x0045876, 14-Aug-2006 (WR - "hnd" was set but never used) */
         /* hnd = idle_create (parent); */
     idle_create (parent);
-    
+
     TRACE_EVENT_P1("FFS_flashData.IdleScreenBgd = %d", FFS_flashData.IdleScreenBgd);
-    
+
     if( FFS_flashData.ProviderNetworkShow != TRUE )
         FFS_flashData.ProviderNetworkShow = FFS_flashData.ProviderNetworkShow;
     else
         FFS_flashData.ProviderNetworkShow = TRUE;
-    
+
     /* x0045876, 14-Aug-2006 (WR - pointless comparison of unsigned integer with zero) */
     /* if((FFS_flashData.IdleScreenBgd >= BGD_NONE) && (FFS_flashData.IdleScreenBgd < BGD_LAST)) */
     if (FFS_flashData.IdleScreenBgd < BGD_LAST)
         idle_setBgdBitmap(FFS_flashData.IdleScreenBgd);
     else
         idle_setBgdBitmap(BGD_TI_LOGO);
-    
+
     /* x0045876, 14-Aug-2006 (WR - pointless comparison of unsigned integer with zero) */
     /* if((FFS_flashData.MainMenuBgd >= BGD_NONE) && (FFS_flashData.MainMenuBgd < BGD_LAST)) */
     if (FFS_flashData.MainMenuBgd < BGD_LAST)
@@ -949,14 +949,14 @@
     sms_animate = 0;
 
     //x0pleela 11 Apr, 2006  ER: OMAPS00075178
-    //Delete the timer of battery charging 
+    //Delete the timer of battery charging
     if (battery_charging_animate)
     {
         timStop(battery_charging_animate);
         timDelete(battery_charging_animate);
     }
     battery_charging_animate = 0;
-    
+
     //x0pleela 14 Feb, 2006  ER: OMAPS00065203
     //Delete the timer of operator name display
     if( plmn_display)
@@ -975,7 +975,7 @@
     }
 #endif /*FF_PHONE_LOCK*/
     mfwSetSatIdle(0);
-    
+
 /* Power management */
 #ifdef NEPTUNE_BOARD
 #ifdef MMI_POWER_MANAGEMENT_TEST
@@ -1067,7 +1067,7 @@
     data->editor_sat = 0;
     AUI_edit_SetAttr(&data->editor_attr2, WIN_DIALLING_CB, COLOUR_EDITOR_XX, EDITOR_FONT, ED_MODE_READONLY, ED_CURSOR_NONE, ATB_DCS_ASCII, (UBYTE*)data->incoming_cb_msg,   MAX_CBMSG_LEN);
     AUI_edit_SetAttr(&data->editor_attr3, WIN_DIALLING_SMS, COLOUR_EDITOR_XX, EDITOR_FONT, ED_MODE_READONLY, ED_CURSOR_NONE, ATB_DCS_ASCII, (UBYTE*)data->incoming_sms_msg, MAX_MSG_LEN_SGL);
-    
+
     /* 09-May-2006, x0045876 (OMAPS00064076) */
    /*10 Jul 2006, Ref OMAPS00077654, R.Prabakar(a0393213)
        Description : Cyrillic character support in MMI to pass GCF/PTCRB  UCS2 TC (SATK)
@@ -1076,10 +1076,10 @@
         Description : CT-GCF[27.22.4.22.1]-Incorrect string display
         Solution     : changes done as part of OMAPS00077654 reverted back. The attribute of ATB editor is set to ASCII itself*/
     AUI_edit_SetAttr(&data->editor_attr_sat, WIN_DIALLING_SAT, COLOUR_EDITOR_XX, EDITOR_FONT, ED_MODE_READONLY, ED_CURSOR_NONE, ATB_DCS_ASCII, (UBYTE*)data->incoming_sat_msg,  MAX_SATMSG_LEN);
-    
+
         // July 12, 2006    REF:DR OMAPS00081477  x0047075
         //Fix:Assigning the sms_status_editor window handle to NULL
-       idle_data.sms_status_editor = NULL; 
+       idle_data.sms_status_editor = NULL;
 #else /* NEW_EDITOR */
     data->edt = 0;
     data->edt_sat = 0; /* SPR759 - SH*/
@@ -1089,7 +1089,7 @@
     bookSetEditAttributes(WIN_DIALLING_SAT, COLOUR_EDITOR_XX,0,edtCurNone,0,(char*)data->incoming_sat_msg,  MAX_SATMSG_LEN,&data->edt_attr_sat);
         // July 12, 2006    REF:DR OMAPS00081477  x0047075
         //Fix:Assigning the sms_status_editor window handle to NULL
-    idle_data.sms_status_edt = NULL; 
+    idle_data.sms_status_edt = NULL;
 #endif /* NEW_EDITOR */
 
     /*
@@ -1395,7 +1395,7 @@
 enum {
     IDLE_CHARGING_MODE,
     IDLE_NETWORK_NAME,
-#ifdef FF_CPHS  
+#ifdef FF_CPHS
     IDLE_ALS_DATA,  //x0pleela 25 May, 2006  DR: OMAPS00070657
 #endif
     IDLE_CALL_SMS_INFO,
@@ -1468,7 +1468,7 @@
 
     /* x0045876, 14-Aug-2006 (WR - "txtFormat" was set but never used) */
     /* int txtFormat = 0; // RAVI */
-    
+
     int noRoom = 0;
 
     if (txtStr != NULL)
@@ -1590,7 +1590,7 @@
 
     /* x0045876, 14-Aug-2006 (WR - "txtFormat" was set but never used) */
     /* txtFormat = 0; */
-    
+
     switch (dataId)
     {
         case IDLE_NETWORK_NAME:
@@ -1599,13 +1599,13 @@
             else
                 yPos = yPos + Mmi_layout_line_height()*3;
             break;
-            
+
 //x0pleela 25 May, 2006  DR:OMAPS00070657
 #ifdef FF_CPHS
         case IDLE_ALS_DATA:
             yPos = Mmi_layout_line_height()*6;
             break;
-#endif          
+#endif
 
         case IDLE_CHARGING_MODE:
             yPos = yPos + Mmi_layout_line_height()*4;
@@ -1753,7 +1753,7 @@
     int editX, editY, editWidth, editHeight;
     int scrollBarSize, scrollBarPos;
 
-    if(e->viewHeight>=e->totalHeight) 
+    if(e->viewHeight>=e->totalHeight)
         return;
 
     editX=e->attr->win_size.px;
@@ -1799,7 +1799,7 @@
   CHAR            oper[MAX_ALPHA_OPER_LEN]; /* operator name */
 
   /* x0045876, 14-Aug-2006 (WR - "mode" was declared but never referenced) */
-  /* T_ACI_COPS_MOD  mode;     */                /* COPS mode     */ 
+  /* T_ACI_COPS_MOD  mode;     */                /* COPS mode     */
 
   /* x0045876, 14-Aug-2006 (WR - "mode" was declared but never referenced) */
   /* T_ACI_COPS_FRMT frmt;       */              /* COPS format   */
@@ -1849,9 +1849,9 @@
         // Jul 08, 2005    REF: ENH 32642 x0018858
         // Set the back ground and foreground colour.
             dspl_SetFgdColour( COL_BLK );
-            dspl_SetBgdColour( COL_TRANSPARENT );     
-
-        if (idle_data.nm_status == NETWORK_FULL_SERVICE) 
+            dspl_SetBgdColour( COL_TRANSPARENT );
+
+        if (idle_data.nm_status == NETWORK_FULL_SERVICE)
         {
             network_get_name (&current_network);
 #ifdef COLOURDISPLAY
@@ -1939,10 +1939,10 @@
               /* In case of no network service icon display is handled in   */
               /* switch case below                                                         */
              if(idle_data.nm_status == NETWORK_NO_SERVICE && sim_status == SIM_NOT_ACTIVE)
-              /* OMAPS00050447: a0393130, handle removal of sim card */             
+              /* OMAPS00050447: a0393130, handle removal of sim card */
              {
                 TRACE_EVENT("ICON display handled below");
-              }           
+              }
               else
               {
                  TRACE_EVENT("Normal ICON display handled");
@@ -1991,26 +1991,26 @@
                 /*p032 end */
 
                 //x0pleela 9 Feb, 2006  ER:OMAPS00065203
-                
+
                 //If SPN and plmn name are not NULL, display SPN for 5 seconds and the plmn name
                 //For the above scenario, display_condition of SPN is not checked as per Cingular's requirement
                 //In spite of display_condition being FALSE, we go ahead and display SPN
 
                 //If SPN is NULL and plmn name is not NULL, then display plmn name
-                
+
                         /* Marcus: Issue 1618: 24/01/2003: Start *
                  *
                  * If we have a service provider name, show that,
                  * else show the PLMN name
                  */
-                
+
                      if(!timer_start_flag)
                      {
                        timStart(plmn_display);
                        timer_start_flag = TRUE;
                      }
 
-                  if( ( opername_disp_flag EQ SPN ) AND 
+                  if( ( opername_disp_flag EQ SPN ) AND
                     (strlen((char*)current_network.service_provider_name)) ) //SPN name
                  {
                    idle_displayData(IDLE_NETWORK_NAME,TxtNull,(char*)current_network.service_provider_name);
@@ -2029,7 +2029,7 @@
             if(network_sync_done==0)
             {
             /*OMAPS00091029 x0039928(sumanth) - to mark the end of network sync event*/
-                boot_time_snapshot(ENetworkSync); 
+                boot_time_snapshot(ENetworkSync);
                    TRACE_EVENT("Boot Time Snapshot - ENetworkSync");
                 network_sync_done=1;
             }
@@ -2046,7 +2046,7 @@
                         {
                             TRACE_EVENT("als_status: Line1");
                         idle_displayData(IDLE_ALS_DATA, TxtLine1, NULL);
-// Oct 11, 2006 REF:OMAPS00098287  x0039928 
+// Oct 11, 2006 REF:OMAPS00098287  x0039928
 // Fix: Update the als_status variable
                         if(als_bootup == TRUE)
                         {
@@ -2055,13 +2055,13 @@
                         }
                         }
                         break;
-                        
+
                     case MFW_SERV_LINE2:
                             {
                                 TRACE_EVENT("als_status: Line2");
                             idle_displayData(IDLE_ALS_DATA, TxtLine2, NULL);
-// Oct 11, 2006 REF:OMAPS00098287  x0039928 
-// Fix: Update the als_status variable      
+// Oct 11, 2006 REF:OMAPS00098287  x0039928
+// Fix: Update the als_status variable
                         if(als_bootup == TRUE)
                         {
                             als_status.selectedLine = MFW_SERV_LINE2;
@@ -2069,22 +2069,22 @@
                         }
                         }
                         break;
-                        
+
                     default:
                         idle_displayData(IDLE_ALS_DATA, TxtNull, NULL);
                         break;
                  }
-// Oct 11, 2006 REF:OMAPS00098287  x0039928 
-// Fix: Update the als_status variable          
+// Oct 11, 2006 REF:OMAPS00098287  x0039928
+// Fix: Update the als_status variable
                 if(als_bootup == TRUE)
                 {
                  als_status.status = (T_MFW_LINE_STATUS)FFS_flashData.als_statLine;
                  als_bootup = FALSE;
                 }
             }
-                    
+
 #endif
-                
+
                 break;
 
             case NETWORK_SEARCH_NETWORK :
@@ -2093,7 +2093,7 @@
                  if(modem_boot_done==0)
                 {
                 /*OMAPS00091029 x0039928(sumanth) - to mark the end of modem boot event*/
-                    boot_time_snapshot(EModemBoot); 
+                    boot_time_snapshot(EModemBoot);
                     TRACE_EVENT("Boot Time Snapshot - EModemBoot");
                     modem_boot_done=1;
                 }
@@ -2104,8 +2104,8 @@
                 {
                                 /* OMAPS00050447: a0393130, handle removal of sim card */
                                 globalSignalPicNumber   =0; /* updating signal strength */
-                                iconsShow();                       
-                                /* OMAPS00050447: a0393130, handle removal of sim card */                   
+                                iconsShow();
+                                /* OMAPS00050447: a0393130, handle removal of sim card */
                                 idle_displayData(IDLE_NETWORK_NAME,TxtNoCard,NULL);
                             }
 // Nov 24, 2005, a0876501, DR: OMAPS00045909
@@ -2113,14 +2113,14 @@
                     idle_displayData(IDLE_NETWORK_NAME,TxtInvalidIMEI,NULL);
                 else
                 {//  Apr 14, 2004        REF: CRR 12653  xvilliva
-                /*a0393213 warnings removal - srvStat initialized with NRG_SVMD_NotPresent(-1) instead of -2*/                  
+                /*a0393213 warnings removal - srvStat initialized with NRG_SVMD_NotPresent(-1) instead of -2*/
                         srvStat = NRG_SVMD_NotPresent;
                           qAT_PercentNRG( CMD_SRC_LCL,
                                           &regMode,
                                           &srvMode,
                                           &oprFrmt,
                                           &srvStat,
-                                          oper);        
+                                          oper);
                         if(srvStat == NRG_SVMD_Limited && globalSignalPicNumber > iconSigStat49)
                         {//xvilliva checking signal and  limited service status.
                             idle_displayData(IDLE_NETWORK_NAME,TxtLimService,NULL);
@@ -2358,7 +2358,7 @@
             {
                 txtStrId = TxtSilentMode;
             }
-            //  May 21, 2004    REF: CRR 16084  Deepa M.D 
+            //  May 21, 2004    REF: CRR 16084  Deepa M.D
             //Display the  Message Full String, when the Idle screen is clean.
             else if (smsidle_get_ready_state() && smsidle_get_memory_full())
             {
@@ -2482,7 +2482,7 @@
 #endif
         {
             dspl_SetFgdColour( COL_BLK );
-            dspl_SetBgdColour( COL_TRANSPARENT );     
+            dspl_SetBgdColour( COL_TRANSPARENT );
 
             strcpy((char *)dt_str,  mfw_td_get_date_str());
             strcpy((char *)time_str,  mfw_td_get_clock_str());
@@ -2490,13 +2490,13 @@
 
             /* x0045876, 14-Aug-2006 (WR - "xPos" was set but never used) */
             /* xPos = 10; */
-            
+
             yPos = Mmi_layout_line_height()*7;
 
             dspl_Clear(10, Mmi_layout_line_height()*7,mmiScrX,mmiScrY);
             dspl_TextOut (10,Mmi_layout_line_height()*7, 0, time_str);
 
-            dspl_Clear(125, Mmi_layout_line_height()*7,mmiScrX,mmiScrY);        
+            dspl_Clear(125, Mmi_layout_line_height()*7,mmiScrX,mmiScrY);
             //x0pleela 09 Nov, 2006 ER: OMAPS00099966
             //resizing for Endurance Font support
         #ifdef FF_ENDURANCE_FONT
@@ -2522,7 +2522,7 @@
 
 //x0pleela 09 May, 2007  DR: OMAPS00129014
 #ifdef FF_PHONE_LOCK
-        //for Automatic Phone lock check    
+        //for Automatic Phone lock check
         if( phlock_auto )
         {
             //start timer to display unlock screen
@@ -2532,7 +2532,7 @@
                 autoPhLock_timer_flag= TRUE;
             }
         }
-#endif //FF_PHONE_LOCK      
+#endif //FF_PHONE_LOCK
     TRACE_FUNCTION("end of idle_draw_main_idle()");
 }
 
@@ -2583,7 +2583,7 @@
             break;
 
 #endif /*FF_PHONE_LOCK*/
-        
+
     case MfwWinFocussed: /* input focus / selected*/
     case MfwWinDelete:/* window will be deleted*/
     default:
@@ -2629,7 +2629,7 @@
 #ifdef MMI_POWER_MANAGEMENT_TEST
 
     mmi_pm_enable(0); /*First, disable PM*/
-    
+
     mmi_pm_enable(1); /*then enable it.*/
 #endif
 #endif
@@ -2660,7 +2660,7 @@
             break;
             }
         idle_data.right_key_pressed = FALSE;
-        
+
         return MFW_EVENT_CONSUMED;
     }
 
@@ -2690,7 +2690,7 @@
 
 #if defined (FF_MMI_EMS) && defined (FF_GPF_TCPIP)
 //xrashmic 26 Aug, 2004 MMI-SPR-23931
-       // To launch the EMS inbox on pressing the "read" left softkey in idle 
+       // To launch the EMS inbox on pressing the "read" left softkey in idle
        // screen after receving the new EMS indication in the idle screen.
        if(idle_data.ems)
        {
@@ -2739,7 +2739,7 @@
                 case KCD_HUP:
                     idle_data.search=FALSE;
                                    /* On pressing the KCD_HUP key in searching state the menu displays
-                                   *'No Network' with 'Name' and 'Menu' as softkeys instead of 
+                                   *'No Network' with 'Name' and 'Menu' as softkeys instead of
                                    *'Searching'.
                                    */
                                    #ifdef NEPTUNE_BOARD
@@ -2748,9 +2748,9 @@
                     winShow(idle_data.win);
                 break;
                 /*28th Mar 2007 OMAPS00121870 a0393213(R.Prabakar)
-                   "Menu" is mapped to right softkey*/  
+                   "Menu" is mapped to right softkey*/
                 case KCD_RIGHT:
-                    bookPhonebookStart(idle_data.win,PhbkMainMenu); 
+                    bookPhonebookStart(idle_data.win,PhbkMainMenu);
                     break;
                 /*CONQ 6436, MC allow entry of emergency number*/
                 /*API - 13-09-02 -Add all KCD_0 and KCD_8 */
@@ -2799,7 +2799,7 @@
 //Apr 05, 2005    REF: ENH 29994 xdeepadh
 //Nov 02, 2005    REF:ER OMAPS00039044  xdeepadh
 // terminate the ringing
-#ifdef FF_MIDI_RINGER  
+#ifdef FF_MIDI_RINGER
     mfw_ringer_stop(sounds_midi_ringer_stop_cb);
 #else
 /* Stop playing ring tone on key press - RAVI  -23-12-2005 */
@@ -2840,7 +2840,7 @@
     //this is for cell broadcast
     if ((!idle_data.clean_screen) && idle_data.new_cbch )
     {
-        TRACE_EVENT_P1("if ((!idle_data.clean_screen) && idle_data.new_cbch ) k->code = %d", k->code);    
+        TRACE_EVENT_P1("if ((!idle_data.clean_screen) && idle_data.new_cbch ) k->code = %d", k->code);
       switch (k->code)
       {
         case KCD_MNUSELECT:
@@ -2848,7 +2848,7 @@
 //Apr 05, 2005    REF: ENH 29994 xdeepadh
 //Nov 02, 2005    REF:ER OMAPS00039044  xdeepadh
 // terminate the ringing
-#ifdef FF_MIDI_RINGER  
+#ifdef FF_MIDI_RINGER
     mfw_ringer_stop(sounds_midi_ringer_stop_cb);
 #else
 /* Stop Playing Ring tone on Key press - RAVI - 23-12-2005 */
@@ -2860,7 +2860,7 @@
           audio_StopSoundbyID( AUDIO_BUZZER, currentRinger );
 #endif
 
-           vsi_t_sleep(0,10); /* small delay */ 
+           vsi_t_sleep(0,10); /* small delay */
 #else
 #ifdef FF_MMI_RINGTONE  /*Stop MSL */
         audio_StopSoundbyID( AUDIO_BUZZER,  SMSTONE_SELECT);
@@ -2889,7 +2889,7 @@
 
     switch (k->code)
     {
-        
+
                 case KCD_MNUUP:
 /* xreddymn OMAPS00080543 Jun-06-2006 */
 //Fix for 19656
@@ -2933,7 +2933,7 @@
                             Indicate that the volume settings menu has been invoked from the
                             incoming call screen.
 //Apr 05, 2005    REF: ENH 29994 xdeepadh                       */
-#ifdef FF_MIDI_RINGER  
+#ifdef FF_MIDI_RINGER
                         IdleScreenVolumeTimer();
 #endif
                         setSoundsReason(SettingVolume);
@@ -2990,8 +2990,8 @@
                             Indicate that the volume settings menu has been invoked from the
                             incoming call screen.
                         */
-//Apr 05, 2005    REF: ENH 29994 xdeepadh                       
-#ifdef FF_MIDI_RINGER  
+//Apr 05, 2005    REF: ENH 29994 xdeepadh
+#ifdef FF_MIDI_RINGER
                         IdleScreenVolumeTimer();
 #endif
                         setSoundsReason(SettingVolume);
@@ -3019,7 +3019,7 @@
                   {
                 /*Apr 05, 2005    REF: ENH 29994 xdeepadh   */
                 /*Terminate ringing */
-#ifdef FF_MIDI_RINGER  
+#ifdef FF_MIDI_RINGER
                     mfw_ringer_stop(sounds_midi_ringer_stop_cb);
 #else
                           currentRinger = getcurrentSMSTone();
@@ -3030,18 +3030,18 @@
 #endif
 
                     vsi_t_sleep(0,10);  /* Small Delay */
-#endif                  
+#endif
                   }
-#else 
+#else
 /* Apr 05, 2005    REF: ENH 29994 xdeepadh   */
 /* Terminate ringing */
-#ifdef FF_MIDI_RINGER  
+#ifdef FF_MIDI_RINGER
                     mfw_ringer_stop(sounds_midi_ringer_stop_cb);
 #endif
 #endif
 /* END RAVI - 23-12-2005 */
 
-                    
+
                     bookPhonebookStart(idle_data.win,PhbkNormal);
                 break;
                 case KCD_CALL:
@@ -3059,14 +3059,14 @@
                     /*cm_force_disconnect();
                      terminate the ringing */
 /*                   audio_StopSoundbyID( AUDIO_BUZZER, currentRinger );
-*/            
+*/
 /* Stop playing audio on key press - RAVI - 23-12-2005 */
 #ifdef NEPTUNE_BOARD
                   if (idle_data.new_sms == TRUE)
                   {
                 /* Apr 05, 2005    REF: ENH 29994 xdeepadh  */
                 /* Terminate ringing */
-#ifdef FF_MIDI_RINGER  
+#ifdef FF_MIDI_RINGER
                     mfw_ringer_stop(sounds_midi_ringer_stop_cb);
 #else
                          currentRinger = getcurrentSMSTone();
@@ -3077,12 +3077,12 @@
 #endif
 
                     vsi_t_sleep(0,10);  /* Small delay */
-#endif                  
+#endif
                   }
-#else 
+#else
 /* Apr 05, 2005    REF: ENH 29994 xdeepadh  */
 /* Terminate ringing */
-#ifdef FF_MIDI_RINGER  
+#ifdef FF_MIDI_RINGER
     mfw_ringer_stop(sounds_midi_ringer_stop_cb);
 #endif
 #endif
@@ -3099,7 +3099,7 @@
 //Apr 05, 2005    REF: ENH 29994 xdeepadh
 //Nov 02, 2005    REF:ER OMAPS00039044  xdeepadh
 //Terminate ringing
-#ifdef FF_MIDI_RINGER  
+#ifdef FF_MIDI_RINGER
     mfw_ringer_stop(sounds_midi_ringer_stop_cb);
 #endif
 
@@ -3116,7 +3116,7 @@
                           idle_data.clean_screen = TRUE;
                     }
 
-                    
+
                        /* delete the message buffer  plus the editor */
                     statusCBCH(FALSE);
                     windowsUpdate();
@@ -3165,7 +3165,7 @@
 
             }
         }
-//End 30973 
+//End 30973
 #endif
 
         return MFW_EVENT_CONSUMED;
@@ -3313,9 +3313,9 @@
      // July 12, 2006    REF:DR OMAPS00081477  x0047075
         //Fix:Assigning the sms_status_editor window handle to NULL
 #ifdef NEW_EDITOR
-    idle_data.sms_status_editor = NULL; 
+    idle_data.sms_status_editor = NULL;
 #else/* NEW_EDITOR */
-      idle_data.sms_status_edt = NULL; 
+      idle_data.sms_status_edt = NULL;
 #endif /* NEW_EDITOR */
     /*redraw the windows*/
     windowsUpdate();
@@ -3370,7 +3370,7 @@
                 }
                 /* xreddymn OMAPS00079699 Jun-02-2006
                  * Do not re-initialize editor if it already exists.
-                 */ 
+                 */
                 else break;
 #else /* NEW_EDITOR */
                 if (!idle_data.edt)
@@ -3379,7 +3379,7 @@
                 }
                 /* xreddymn OMAPS00079699 Jun-02-2006
                  * Do not re-initialize editor if it already exists.
-                 */ 
+                 */
                 else break;
 #endif /* NEW_EDITOR */
 
@@ -3440,7 +3440,7 @@
 #ifdef NEW_EDITOR
          // July 12, 2006    REF:DR OMAPS00081477  x0047075
         //Fix:Creating a new sms status editor, if it already exists just update the editor
-        if(idle_data.sms_status_editor == NULL) 
+        if(idle_data.sms_status_editor == NULL)
             {
                             AUI_edit_SetDefault(&editor_data);
                 AUI_edit_SetDisplay(&editor_data, ZONE_FULLSOFTKEYS, COLOUR_EDITOR_XX, EDITOR_FONT);
@@ -3457,14 +3457,14 @@
             }
           else
             {
-              winShow (idle_data.sms_status_editor); 
-            }     
-        
+              winShow (idle_data.sms_status_editor);
+            }
+
 
 #else
        // July 12, 2006    REF:DR OMAPS00081477  x0047075
        //Fix:Creating a new sms status editor, if it already exists just update the editor
-        if(idle_data.sms_status_edt == NULL) 
+        if(idle_data.sms_status_edt == NULL)
         {
                             editor_data.editor_attr.win.px = 0;
                 editor_data.editor_attr.win.py = 0;
@@ -3497,7 +3497,7 @@
         }
         else
         {
-            winShow (idle_data.sms_status_edt); 
+            winShow (idle_data.sms_status_edt);
         }
 
  #endif
@@ -3582,9 +3582,9 @@
     TRACE_FUNCTION("mmi_usb_display_info()");
     dlg_initDisplayData_TextId( &display_info, lsk, rsk, str1, str2, COLOUR_STATUS);
     dlg_initDisplayData_events( &display_info, NULL, timer, 0 );
-    win=info_dialog (parent_win, &display_info);            
+    win=info_dialog (parent_win, &display_info);
     return win;
-}   
+}
 
 /*******************************************************************************
 
@@ -3598,11 +3598,11 @@
 
 *******************************************************************************/
 void mmi_usbms_mode_disconnect(void)
-{   
+{
     T_MFW_HND parent_win = mfwParent(mfw_header());
     TRACE_FUNCTION("mmi_usbms_mode_disconnect()");
 
-    //xashmic 27 Sep 2006, OMAPS00096389 
+    //xashmic 27 Sep 2006, OMAPS00096389
     //xashmic 21 Sep 2006, OMAPS00095831
     //Skip the disconnect dialog display when ports are enumerated automatically
     if( getBootUpState() > 0 && (getUSBMSFlags() & MFW_USBMS_POPUP_ENABLE))
@@ -3613,7 +3613,7 @@
         bookMenuDestroy(usb_opt_win);
         usb_opt_win=NULL;
         //xashmic 14 Sep 2006, OMAPS00092732 HOT_FIX
-        //Stop the timer and delete it. 
+        //Stop the timer and delete it.
         if(usb_auto_enum_timer)
         {
             timStop(usb_auto_enum_timer);
@@ -3638,18 +3638,18 @@
 
  $Returns:      none
 
- $Arguments:    usbms_enum      -   contains information as to proceed with enumeration or to 
+ $Arguments:    usbms_enum      -   contains information as to proceed with enumeration or to
                                 discontinue enumeration: MFW_USB_ENUM or MFW_USB_NO_ENUM
             usb_enum_type   -   Contains information about which all port to be enumerated
 *******************************************************************************/
 void mmi_usbms_mode_connect(T_MFW_USB_ENUM_CONTROL usbms_enum,T_MFW_USB_ENUM_TYPE usb_enum_type)
-{   
+{
     T_MFW_HND parent_win = mfwParent(mfw_header());
     TRACE_FUNCTION("mmi_usbms_mode_connect()");
-    
+
     //xashmic 27 Sep 2006, OMAPS00096389
-    //When enumerating USB MS individually or with a combination of other ports, 
-    if( (usbms_enum == MFW_USB_ENUM) && 
+    //When enumerating USB MS individually or with a combination of other ports,
+    if( (usbms_enum == MFW_USB_ENUM) &&
     ( (  usb_enum_type == MFW_USB_TYPE_MS) ||   (usb_enum_type == MFW_USB_TYPE_AT_MS) ||
     ( usb_enum_type == MFW_USB_TYPE_MS_TRACE) || (usb_enum_type == MFW_USB_TYPE_ALL) ) )
     {
@@ -3679,8 +3679,8 @@
  $Returns:      none
 
  $Arguments:    parent_win  -   Parent Window
-            Identifier      -   
-            Reason      -   
+            Identifier      -
+            Reason      -
 
 *******************************************************************************/
 void mmi_usb_enumeration_options_cb(T_MFW_HND parent_win, USHORT identifier, SHORT reason)
@@ -3703,13 +3703,13 @@
 
  $Function:     mmi_usb_enumeration_timer_cb
 
- $Description:   Event handler for the timer in option screen 
+ $Description:   Event handler for the timer in option screen
 
  $Returns:      none
 
  $Arguments:    parent_win  -   Parent Window
-            Identifier      -   
-            Reason      -   
+            Identifier      -
+            Reason      -
 //xashmic 14 Sep 2006, OMAPS00092732 HOT_FIX
 *******************************************************************************/
 static void mmi_usb_enumeration_timer_cb(T_MFW_HND parent_win, USHORT identifier, SHORT reason)
@@ -3719,15 +3719,15 @@
     T_MFW_WIN       *win_data   = ((T_MFW_HDR *)window)->data;
     tBookStandard   *data       = (tBookStandard *) win_data->user;
     MfwMnu          *mnu;
-    
+
     TRACE_FUNCTION("mmi_usb_enumeration_timer_cb()");
     if(usb_opt_win && data->menu==((tBookStandard*)(((MfwWin*)(((T_MFW_HDR *)usb_opt_win)->data))->user))->menu) // OMAPS00149237 Added by Sameer & Geetha
     {
         mnuSelect( data->menu ); //OMAPS00149237
         bookMenuDestroy(usb_opt_win);
-        usb_opt_win=NULL;           
+        usb_opt_win=NULL;
     }
-    
+
     //xashmic 14 Sep 2006, OMAPS00092732 HOT_FIX
     //Timer has expired, need to enumerate all ports automatically
     if(usb_auto_enum_timer)
@@ -3752,14 +3752,14 @@
 void mmi_usb_enumeration_options(void)
 {
     TRACE_FUNCTION("mmi_usb_enumeration_options()");
-    
+
     usb_opt_win=bookMenuStart(idle_data.win, USBMenuAttributes(),0);
     //xashmic 14 Sep 2006, OMAPS00092732 HOT_FIX
     //Enumerate all the ports if user does not select any option/exit this menu within 5 Sec
     usb_auto_enum_timer=timCreate(usb_opt_win, AUTO_USB_ENUMERATION_TIMER, (MfwCb)mmi_usb_enumeration_timer_cb);
     timStart(usb_auto_enum_timer);
-    
-    SEND_EVENT(usb_opt_win, ADD_CALLBACK, NULL, (void *)mmi_usb_enumeration_options_cb); 
+
+    SEND_EVENT(usb_opt_win, ADD_CALLBACK, NULL, (void *)mmi_usb_enumeration_options_cb);
 }
 
 /*******************************************************************************
@@ -3773,12 +3773,12 @@
  $Arguments:        m   - pointer to current menu
                 i   - pointer to current menu item
 
-xashmic 27 Sep 2006, OMAPS00096389 
+xashmic 27 Sep 2006, OMAPS00096389
 *******************************************************************************/
 GLOBAL int setUSBMSPS (MfwMnu* m, MfwMnuItem* i)
 {
     T_MFW_HND parent_win = mfwParent(mfw_header());
-    
+
     TRACE_FUNCTION("setUSBMSPS()");
     switch (m->lCursor[m->level])
     {
@@ -3807,12 +3807,12 @@
 
  $Arguments:        m   - pointer to current menu
                 i   - pointer to current menu item
-xashmic 27 Sep 2006, OMAPS00096389 
+xashmic 27 Sep 2006, OMAPS00096389
 *******************************************************************************/
 GLOBAL int setUSBMSPopup (MfwMnu* m, MfwMnuItem* i)
 {
     T_MFW_HND parent_win = mfwParent(mfw_header());
-    
+
     TRACE_FUNCTION("setUSBMSPopup()");
     switch (m->lCursor[m->level])
     {
@@ -3821,7 +3821,7 @@
             break;
         case 1:
         default:
-            FFS_flashData.usb_ms_flags = FFS_flashData.usb_ms_flags & MFW_USBMS_POPUP_DISABLE;  
+            FFS_flashData.usb_ms_flags = FFS_flashData.usb_ms_flags & MFW_USBMS_POPUP_DISABLE;
 
     }
     TRACE_EVENT_P1(" %x",FFS_flashData.usb_ms_flags);
@@ -3854,7 +3854,7 @@
         timDelete(usb_auto_enum_timer);
         usb_auto_enum_timer=NULL;
     }
-    
+
     usbms_enum=MFW_USB_ENUM;
     switch (m->lCursor[m->level])
     {
@@ -3870,22 +3870,22 @@
             TRACE_EVENT("USB FAX");
             usb_enum_type=MFW_USB_TYPE_AT;
             break;
-        case 3://xashmic 27 Sep 2006, OMAPS00096389 
+        case 3://xashmic 27 Sep 2006, OMAPS00096389
             TRACE_EVENT("USB MS FAX n TRACE");
             usb_enum_type=MFW_USB_TYPE_AT_TRACE;
-            break;          
-        case 4://xashmic 27 Sep 2006, OMAPS00096389 
+            break;
+        case 4://xashmic 27 Sep 2006, OMAPS00096389
             TRACE_EVENT("USB MS n TRACE");
             usb_enum_type=MFW_USB_TYPE_MS_TRACE;
-            break;          
-        case 5://xashmic 27 Sep 2006, OMAPS00096389 
+            break;
+        case 5://xashmic 27 Sep 2006, OMAPS00096389
             TRACE_EVENT("USB FAX n MS");
             usb_enum_type=MFW_USB_TYPE_AT_MS;
-            break;          
-        case 6://xashmic 27 Sep 2006, OMAPS00096389 
+            break;
+        case 6://xashmic 27 Sep 2006, OMAPS00096389
             TRACE_EVENT("USB ALL");
             usb_enum_type=MFW_USB_TYPE_ALL;
-            break;          
+            break;
     }
     /*OMAPS00123019 a0393213(R.Prabakar)
        The menu is not destroyed here. It would be destroyed in the key board handler*/
@@ -3901,14 +3901,14 @@
  $Returns:  USB MS flags
 
  $Arguments:        None
-//xashmic 27 Sep 2006, OMAPS00096389 
+//xashmic 27 Sep 2006, OMAPS00096389
 *******************************************************************************/
 UBYTE getUSBMSFlags(void)
 {
     TRACE_EVENT_P1("getUSBMSFlags %x",FFS_flashData.usb_ms_flags);
     return FFS_flashData.usb_ms_flags;
 }
-#endif   
+#endif
 
 
 /*******************************************************************************
@@ -3927,7 +3927,7 @@
 #ifdef FF_MMI_SAT_ICON
 void addSatMessage(char *satMessage, UBYTE width, UBYTE height,
                         char *dst, UBYTE selfExplanatory, T_DISPLAY_TYPE display_type)
-#else                       
+#else
 void addSatMessage(char *satMessage)
 #endif
 {
@@ -3966,7 +3966,7 @@
             memset(idle_data.incoming_sat_msg, '\0', MAX_SATMSG_LEN);
         }
 
-        /* Copy the data to the Editor title field & ATB editor will 
+        /* Copy the data to the Editor title field & ATB editor will
             take care of displaying the Icon */
         if(dst != NULL)
         {
@@ -3974,14 +3974,14 @@
             idle_data.editor_sat->attr->TitleIcon.height = height;
 
             icon_length = width * height;
-                                        
+
             idle_data.editor_sat->attr->TitleIcon.data = (char *)ALLOC_MEMORY (icon_length);
 
             memcpy(idle_data.editor_sat->attr->TitleIcon.data, dst, icon_length);
             idle_data.editor_sat->attr->TitleIcon.display_type = display_type; //x0035544 02-Feb-2006 DR:61468
             idle_data.editor_sat->attr->TitleIcon.isTitle = FALSE;
-            
-        }       
+
+        }
 #else
             /* xreddymn OMAPS00080543 Jun-06-2006 */
             memset(idle_data.incoming_sat_msg, '\0', MAX_SATMSG_LEN);
@@ -3991,8 +3991,8 @@
 
             if ((strlen(satMessage)) < 12)
                 idle_data.editor_attr_sat.startFormat.attr |= DS_ALIGN_CENTRE;
-    
-#endif      
+
+#endif
 
         ATB_edit_Init(idle_data.editor_sat);
 
@@ -4000,13 +4000,13 @@
     else        /* If a null string is passed, get rid of the message */
     {
         if (idle_data.editor_sat)
-        { 
+        {
             // 02-Feb-2006, Sudha.V., x0035544
    #ifdef FF_MMI_SAT_ICON
         /* Check if a Idle mode text malloc was done for icon support, if Yes, free it*/
         if (idle_data.editor_sat->attr->TitleIcon.data != NULL)
         {
-            FREE_MEMORY((U8 *)idle_data.editor_sat->attr->TitleIcon.data, idle_data.editor_sat->attr->TitleIcon.width * 
+            FREE_MEMORY((U8 *)idle_data.editor_sat->attr->TitleIcon.data, idle_data.editor_sat->attr->TitleIcon.width *
                                 idle_data.editor_sat->attr->TitleIcon.height);
             idle_data.editor_sat->attr->TitleIcon.data = NULL;
         }
@@ -4198,7 +4198,7 @@
   if ((own_window) &&
     (win) &&
     (data))
-    {    
+    {
         /* xreddymn OMAPS00075852 May-15-2006
          * When destroying the dialer, set the dialer_visible flag to FALSE.
          */
@@ -4405,25 +4405,25 @@
                 break;
          case INFO_KCD_HUP:
                 screenCaptureKey=KCD_HUP;
-                break;             
+                break;
             case INFO_KCD_UP:
                  dialog_info_destroy (screen_capture_win);
                 screenCaptureKey=KCD_MNUUP;
-                break;                
+                break;
             case INFO_KCD_DOWN:
                  dialog_info_destroy (screen_capture_win);
                 screenCaptureKey=KCD_MNUDOWN;
-                break;                
+                break;
             case INFO_KCD_OFFHOOK:
                 screenCaptureKey=KCD_CALL;
-                break;                
+                break;
             case INFO_KCD_ALL:
                 screenCaptureKey=Identifier;
                 break;
             default:
                 screenCaptureKey=KCD_NONE;
        }
-       
+
 }
 
 /*******************************************************************************
@@ -4449,12 +4449,12 @@
     display_info.TextString="Press a key";
     display_info.TextString2="For screen capture";
     dlg_initDisplayData_events( &display_info,(T_VOID_FUNC)screen_capture_dialog_cb, FOREVER,KEY_ALL );
-    display_info.Identifier  = 0; 
+    display_info.Identifier  = 0;
     screen_capture_win=info_dialog(parent_win, &display_info);
     dspl_Enable(0);
     win_show(screen_capture_win);
     dspl_Enable(1);
-} 
+}
 #endif /* NEPTUNE_BOARD */
 #endif
 
@@ -4544,7 +4544,7 @@
                         ss_send_ussd(&prov_ussd);
         else
             bookInfoDialog("No network", NULL);
-        
+
             }
 #else
               /*    Jun 30, 2006     REF : OMAPS00083503    R.Prabakar
@@ -4589,7 +4589,7 @@
         /* SPR#2342 - SH - HUP detroys editor */
         case KCD_HUP:
             idle_dialling_destroy(data->win);
-            
+
             break;
 
         case KCD_0:
@@ -4640,15 +4640,15 @@
             int i=0;
             wefilename = (T_AUDIO_MMS_PLAY_FROM_FFS_PARAMETER*)mfwAlloc(sizeof(T_AUDIO_MMS_PLAY_FROM_FFS_PARAMETER)*80);
               convert_u8_to_unicode(str1, me_uc);
-        
+
                    while (me_uc[i] != '\0')
                        {
                              wefilename->memo_name[i] = me_uc[i];
                                 i++;
                           }
-                         wefilename->memo_name[i] = '\0';  // add end of string     
-                      
-    
+                         wefilename->memo_name[i] = '\0';  // add end of string
+
+
             ret=audio_mms_play_from_ffs_start(wefilename,return_path);
             mfwFree((U8 *)wefilename,sizeof(T_AUDIO_MMS_PLAY_FROM_FFS_PARAMETER)*80);
             }
@@ -4657,7 +4657,7 @@
 
                 audio_mms_play_from_ffs_stop();
             }
-        
+
 //hou peng test end
 #endif
             if(strcmp((char*)idle_data.edt_buf, "###520#") == 0)
@@ -4668,7 +4668,7 @@
             }
 
 //            #ifdef TI_PS_FF_EM
-#if defined (TI_PS_FF_EM) || defined (MMI_EM_ENABLED)                   
+#if defined (TI_PS_FF_EM) || defined (MMI_EM_ENABLED)
 
                     //xrashmic 22 Aug, 2004 MMI-SPR-32798
                     //Using a dialog to take the input from the user for key to be used for screen capture.
@@ -4717,18 +4717,18 @@
                             break;
                         case MFW_SS_MMI:
 //  May 02, 2005   REF : LOCOSTO-ENH-30818 - xpradipg
-//  guarding the code with the flag                     
-#ifndef FF_MMI_ATC_MIGRATION    
+//  guarding the code with the flag
+#ifndef FF_MMI_ATC_MIGRATION
                             get_imei((char*)idle_data.imei);
                             showIMEI(idle_data.win,(char*)idle_data.imei);
 #endif
                             idle_dialling_destroy(data->win);
                             finishedHere = TRUE;                    /* Handled on # */
 //  May 02, 2005   REF : LOCOSTO-ENH-30818 - xpradipg
-//  replaced the get_imei() with the mmi_imei_retrieve() - sAT_Dn()                         
-#ifdef FF_MMI_ATC_MIGRATION                         
+//  replaced the get_imei() with the mmi_imei_retrieve() - sAT_Dn()
+#ifdef FF_MMI_ATC_MIGRATION
                             mmi_imei_retrieve();
-#endif                          
+#endif
                             break;
                       /*MC, SPR 1111 handle language reset*/
                     case MFW_SS_LANG_RESET:
@@ -4766,7 +4766,7 @@
                 }
 
 //#ifdef TI_PS_FF_EM
-#if defined (TI_PS_FF_EM) || defined (MMI_EM_ENABLED)                   
+#if defined (TI_PS_FF_EM) || defined (MMI_EM_ENABLED)
             }
 #endif
 /* SH - skip out this section if we recognised SS code */
@@ -4873,7 +4873,7 @@
 
             //Sep 2, 2004    REF: CRR 21370 xkundadu
             // Changed the long press of '*' to display 'w'.
-            
+
             ATB_edit_AsciiChar(data->editor, 'w', TRUE);
             win_show(data->win);
         #else /* NEW_EDITOR */
@@ -4911,7 +4911,7 @@
 
         //Sep 2, 2004    REF: CRR 21370 xkundadu
           // Changed the long press of '#' to display 'p'.
-          
+
         edtChar(data->edt,'p');
 
 #endif /* NEW_EDITOR */
@@ -5082,7 +5082,7 @@
     key_code = (U8*)parameter;
     switch (*key_code)
     {
-        
+
         case KCD_RIGHT:
             /* API - 10/10/02 - 1162 - Call the emergency Number if this is true
             */
@@ -5141,12 +5141,12 @@
             }
         break;
         // Jul 23,2004 CRR:20895 xrashmic - SASKEN
-        // Description: The keypad should not be unlocked by SEND and *, it 
+        // Description: The keypad should not be unlocked by SEND and *, it
         // should be unlocked only by Menu and *
-        // Fix: SEND key is now handled the same way as rest of the number  
-        // keys. Keypad unlock can be done only through MENU and *.     
+        // Fix: SEND key is now handled the same way as rest of the number
+        // keys. Keypad unlock can be done only through MENU and *.
         case KCD_CALL:
-            
+
         case KCD_0:
         case KCD_1:
         case KCD_2:
@@ -5167,15 +5167,15 @@
 
                 // Nov 3, 2004 REF: CRR 25887 xkundadu
                 //Description: Unable to make an emergency call.
-                //Fix: Changed the code to make the emergency call when the 
+                //Fix: Changed the code to make the emergency call when the
                 //     screen is locked.
 
 
                 // Check whether the buffer contains  any emergency number or not.
                 // If the number is ECC then allow the user to make emergency call.
-                
+
                 if ((cm_check_emergency((UBYTE*)data->keyPadLockBuf)==TRUE) ||
-                    (( strlen((char*)data->keyPadLockBuf) == ECC_LENGTH) && 
+                    (( strlen((char*)data->keyPadLockBuf) == ECC_LENGTH) &&
                     (cm_check_emergency((UBYTE*)&data->keyPadLockBuf[1])==TRUE) &&
                     (bTwodigitECC == TRUE)))  // RAVI - Changed = to == in condition.
                     {
@@ -5206,12 +5206,12 @@
 
                 // Nov 3, 2004 REF: CRR 25887 xkundadu
                 //Description: Unable to make an emergency call.
-                //Fix: Changed the code to make the emergency call when the 
+                //Fix: Changed the code to make the emergency call when the
                 //     screen is locked.
                     if(strlen((char *)data->keyPadLockBuf) >= 3)
                     {
                         //If the buffer length is greater than or equal to 3 ( i.e ECC_LENGTH)
-                        // remove the first character from the buffer. This is to check 
+                        // remove the first character from the buffer. This is to check
                         // whether the remaining characters are part of ECC.
                         memcpy(&data->keyPadLockBuf[0], &data->keyPadLockBuf[1], KEYPADLOCK_BUF_SIZE-1);
                     }
@@ -5259,13 +5259,13 @@
         case KCD_5:
         case KCD_6:
         case KCD_7:
-        case KCD_HUP:   
-                        // If the user presses key, other than MENU/RSK set the 
-                        // menuPressed key to FALSE. This is done to avoid the 
+        case KCD_HUP:
+                        // If the user presses key, other than MENU/RSK set the
+                        // menuPressed key to FALSE. This is done to avoid the
                         // unlocking by keys except MENU and  '*'.
                         data->menuPressed = FALSE;
 
-        
+
         default:
                         data->menuPressed = FALSE;
 
@@ -5796,7 +5796,7 @@
 
     // Nov 3, 2004 REF: CRR 25887 xkundadu
     //Description: Unable to make an emergency call.
-    //Fix: Changed the code to make the emergency call when the 
+    //Fix: Changed the code to make the emergency call when the
     //     screen is locked.
     // If the "keypad locked" message is timed out, reset the key pad buffer to NULL
     if(data != NULL)
@@ -5805,12 +5805,12 @@
         if(mywin_data != NULL)
         {
                 T_idle_key_pad_locked      * mydata = (T_idle_key_pad_locked *)mywin_data->user;
-                
+
             if(mydata->keyPadLockBuf != NULL)
             {
                 // Set the buffer to null once the 'key locked' message
                 //in the idle screen is timed out.
-                memset(mydata->keyPadLockBuf, '\0', KEYPADLOCK_BUF_SIZE); 
+                memset(mydata->keyPadLockBuf, '\0', KEYPADLOCK_BUF_SIZE);
             }
         }
 
@@ -6214,15 +6214,15 @@
 /* x0045876, 14-Aug-2006 (WR - "currentVoiceTone" was set but never used) */
 #ifndef FF_MIDI_RINGER
 #ifndef FF_MMI_RINGTONE
-    UBYTE currentVoiceTone; 
+    UBYTE currentVoiceTone;
 #endif
 #endif
 
     idle_data.ems=TRUE;
-//Apr 05, 2005    REF: ENH 29994 xdeepadh   
+//Apr 05, 2005    REF: ENH 29994 xdeepadh
 //Nov 02, 2005    REF:ER OMAPS00039044  xdeepadh
 //Play SMS tone for EMS alert
-#ifdef FF_MIDI_RINGER  
+#ifdef FF_MIDI_RINGER
     mfw_ringer_start(AS_RINGER_MODE_SMS,false,sounds_midi_ringer_start_cb);
 #else
 
@@ -6244,7 +6244,7 @@
 
  $Function:     idle_opername_timer_cb
 
- $Description:  Callback for timer 
+ $Description:  Callback for timer
 
  $Returns:
 
@@ -6274,7 +6274,7 @@
 
  $Function:     idle_autoPhoneLock_timer_cb
 
- $Description:  Callback for timer 
+ $Description:  Callback for timer
 
  $Returns:
 
@@ -6304,7 +6304,7 @@
 /*******************************************************************************
 
   $Function:        powerManagementEvent
-  
+
   $Description: Callback function for powermanagement timer..
 
   $Returns: Event consumed
@@ -6322,7 +6322,7 @@
 /*******************************************************************************
 
   $Function:        mmi_update_pm_timer_duration
-  
+
   $Description: function for updating PM timer..
 
   $Returns: void
@@ -6348,10 +6348,10 @@
 /*******************************************************************************
 
   $Function:        mmi_pm_enable
-  
+
   $Description: function to enable/disable Power Management .
 
-  $Returns: void 
+  $Returns: void
 
   $Arguments: ENABLE/DISABLE value
 *******************************************************************************/
@@ -6367,11 +6367,11 @@
     }
     else
     {
-        if(/*idleIsFocussed() &&*/ FFS_flashData.pm_duration)    
+        if(/*idleIsFocussed() &&*/ FFS_flashData.pm_duration)
         {
-            SVC_SCN_EnablePM( 1, FFS_flashData.pm_duration);   
+            SVC_SCN_EnablePM( 1, FFS_flashData.pm_duration);
             pm_on = 1;
-           
+
             /*  timStart(Pm_timer); */
         }
     }