comparison src/ui/bmi/mmiIcons.c @ 152:8129ee8ee6c2

mmiIcons.c: remove excessive emply lines
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 16 Nov 2020 07:07:46 +0000
parents 77321341946c
children 03ac997d2d43
comparison
equal deleted inserted replaced
151:60f8c8e710f4 152:8129ee8ee6c2
48 SPR:12822 vvadiraj : Network Icon status info displayed always 48 SPR:12822 vvadiraj : Network Icon status info displayed always
49 25/10/00 Original Condat(UK) BMI version. 49 25/10/00 Original Condat(UK) BMI version.
50 50
51 $End 51 $End
52 *******************************************************************************/ 52 *******************************************************************************/
53
54
55 53
56 54
57 /******************************************************************************* 55 /*******************************************************************************
58 56
59 Include Files 57 Include Files
116 #include "MmiDummy.h" 114 #include "MmiDummy.h"
117 #include "MmiDialogs.h" 115 #include "MmiDialogs.h"
118 #include "MmiLists.h" 116 #include "MmiLists.h"
119 117
120 118
121
122 #include "MmiMenu.h" 119 #include "MmiMenu.h"
123 #include "mmiCall.h" 120 #include "mmiCall.h"
124 #include "Mmiicons.h" 121 #include "Mmiicons.h"
125 #include "MmiIdle.h" 122 #include "MmiIdle.h"
126 123
252 */ 249 */
253 static const unsigned char idlCallforw[] = 250 static const unsigned char idlCallforw[] =
254 { 251 {
255 0xC4,0xC6,0xFF,0x7E,0x04 252 0xC4,0xC6,0xFF,0x7E,0x04
256 }; 253 };
257
258 254
259 255
260 /* Keypad locked 256 /* Keypad locked
261 */ 257 */
262 static const unsigned char idlKeypLock[] = 258 static const unsigned char idlKeypLock[] =
1972 static IconState state[ idlIdMax ]; 1968 static IconState state[ idlIdMax ];
1973 static IconState battstate[ iconBattMax ]; 1969 static IconState battstate[ iconBattMax ];
1974 static IconState signalstate[ iconSignalMax ]; 1970 static IconState signalstate[ iconSignalMax ];
1975 1971
1976 1972
1977
1978
1979 /******************************************************************************* 1973 /*******************************************************************************
1980 1974
1981 Private Methods 1975 Private Methods
1982 1976
1983 *******************************************************************************/ 1977 *******************************************************************************/
2013 *******************************************************************************/ 2007 *******************************************************************************/
2014 2008
2015 static void iconsBattEvent( MfwEvt e, MfwIcn *i ) 2009 static void iconsBattEvent( MfwEvt e, MfwIcn *i )
2016 { 2010 {
2017 } 2011 }
2018
2019 2012
2020 2013
2021 /******************************************************************************* 2014 /*******************************************************************************
2022 2015
2023 $Function: iconsSignEvent 2016 $Function: iconsSignEvent
2051 static void iconsScreenDelete( void ) 2044 static void iconsScreenDelete( void )
2052 { 2045 {
2053 dspl_Clear( 0,0, SCREEN_SIZE_X, Mmi_layout_IconHeight()-1 ); 2046 dspl_Clear( 0,0, SCREEN_SIZE_X, Mmi_layout_IconHeight()-1 );
2054 } 2047 }
2055 #endif 2048 #endif
2056
2057 2049
2058 2050
2059 /******************************************************************************* 2051 /*******************************************************************************
2060 2052
2061 $Function: iconsShowIcon 2053 $Function: iconsShowIcon
2073 if ( Icon->state == ICON_VISIBLE ) 2065 if ( Icon->state == ICON_VISIBLE )
2074 { 2066 {
2075 icnShow( Icon->h ); 2067 icnShow( Icon->h );
2076 } 2068 }
2077 } 2069 }
2078
2079
2080
2081 2070
2082 2071
2083 /******************************************************************************* 2072 /*******************************************************************************
2084 2073
2085 Public Methods 2074 Public Methods
2127 signalstate[i].h = icnCreate( 0, (MfwIcnAttr *)&sign_Attr[i], E_ICN_VISIBLE, (MfwCb) iconsSignEvent ); 2116 signalstate[i].h = icnCreate( 0, (MfwIcnAttr *)&sign_Attr[i], E_ICN_VISIBLE, (MfwCb) iconsSignEvent );
2128 } 2117 }
2129 } 2118 }
2130 2119
2131 2120
2132
2133
2134
2135 /******************************************************************************* 2121 /*******************************************************************************
2136 2122
2137 $Function: iconsExit 2123 $Function: iconsExit
2138 2124
2139 $Description: Exit the MMI icons handling 2125 $Description: Exit the MMI icons handling
2207 if ( ( iconId >= 0 ) && ( iconId < idlIdMax ) ) 2193 if ( ( iconId >= 0 ) && ( iconId < idlIdMax ) )
2208 state[iconId].state = ICON_VISIBLE; 2194 state[iconId].state = ICON_VISIBLE;
2209 } 2195 }
2210 2196
2211 2197
2212
2213
2214
2215 /******************************************************************************* 2198 /*******************************************************************************
2216 2199
2217 $Function: iconsDeleteState 2200 $Function: iconsDeleteState
2218 2201
2219 $Description: Sets the state of an icon to be invisible 2202 $Description: Sets the state of an icon to be invisible
2230 /* Only set the state if the iconId is valid, ie in range 2213 /* Only set the state if the iconId is valid, ie in range
2231 */ 2214 */
2232 if ( ( iconId >= 0 ) && ( iconId < idlIdMax ) ) 2215 if ( ( iconId >= 0 ) && ( iconId < idlIdMax ) )
2233 state[iconId].state = ICON_INVISIBLE; 2216 state[iconId].state = ICON_INVISIBLE;
2234 } 2217 }
2235
2236
2237 2218
2238 2219
2239 /******************************************************************************* 2220 /*******************************************************************************
2240 2221
2241 $Function: iconsShow 2222 $Function: iconsShow
2347 { 2328 {
2348 iconsShowIcon( &state[ iconIdTTY ] ); 2329 iconsShowIcon( &state[ iconIdTTY ] );
2349 } 2330 }
2350 #endif 2331 #endif
2351 /* end SH */ 2332 /* end SH */
2352
2353
2354
2355 2333
2356 if ( GlobalIconStatus & GlobalAlarmIconFlag ) 2334 if ( GlobalIconStatus & GlobalAlarmIconFlag )
2357 iconsShowIcon( &state[ iconIdAlarm ] ); 2335 iconsShowIcon( &state[ iconIdAlarm ] );
2358 2336
2359 /* May 30, 2006 REF:OMAPS00079650 a0393213 (R.Prabakar) 2337 /* May 30, 2006 REF:OMAPS00079650 a0393213 (R.Prabakar)
2587 { 2565 {
2588 // iconsShowIcon( &state[ iconGoodbye ] ); 2566 // iconsShowIcon( &state[ iconGoodbye ] );
2589 } 2567 }
2590 2568
2591 2569
2592
2593 /******************************************************************************* 2570 /*******************************************************************************
2594 2571
2595 $Function: iconsShowSignal 2572 $Function: iconsShowSignal
2596 2573
2597 $Description: Shows the signal status icons 2574 $Description: Shows the signal status icons
2624 */ 2601 */
2625 icnShow( signalstate[ signalstatus ].h ); 2602 icnShow( signalstate[ signalstatus ].h );
2626 2603
2627 return 1; 2604 return 1;
2628 } 2605 }
2629
2630 2606
2631 2607
2632 /******************************************************************************* 2608 /*******************************************************************************
2633 2609
2634 $Function: iconsInputShow 2610 $Function: iconsInputShow
2691 } 2667 }
2692 } 2668 }
2693 2669
2694 void iconsMainIconsAreaSet (MfwRect selected_area) 2670 void iconsMainIconsAreaSet (MfwRect selected_area)
2695 { 2671 {
2696
2697
2698 copyAreaAttr( &mainIconSimToolkit.area, &selected_area); 2672 copyAreaAttr( &mainIconSimToolkit.area, &selected_area);
2699 copyAreaAttr( &mainIconCalculator.area, &selected_area); 2673 copyAreaAttr( &mainIconCalculator.area, &selected_area);
2700 copyAreaAttr( &mainIconSettings.area, &selected_area); 2674 copyAreaAttr( &mainIconSettings.area, &selected_area);
2701 copyAreaAttr( &mainIconWAP.area, &selected_area); 2675 copyAreaAttr( &mainIconWAP.area, &selected_area);
2702 copyAreaAttr( &mainIconRecentCalls.area, &selected_area); 2676 copyAreaAttr( &mainIconRecentCalls.area, &selected_area);
2902 /* Orange Bitmaps */ 2876 /* Orange Bitmaps */
2903 addnetwork(&orange_icon, "34001"); 2877 addnetwork(&orange_icon, "34001");
2904 addnetwork(&orange_icon, "20801"); 2878 addnetwork(&orange_icon, "20801");
2905 addnetwork(&orange_icon, "23433"); 2879 addnetwork(&orange_icon, "23433");
2906 addnetwork(&orange_icon, "23830"); 2880 addnetwork(&orange_icon, "23830");
2907
2908
2909 } 2881 }
2910 2882
2911 /******************************************************************************* 2883 /*******************************************************************************
2912 2884
2913 $Function: 2885 $Function:
3224 /******************************************************************************* 3196 /*******************************************************************************
3225 3197
3226 End Of File 3198 End Of File
3227 3199
3228 *******************************************************************************/ 3200 *******************************************************************************/
3229