comparison src/ui/bmi/mmiIcons.h @ 3:67bfe9f274f6

src/ui: import of src/ui3 from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 06:33:10 +0000
parents
children c0052fe355d3
comparison
equal deleted inserted replaced
2:3a14ee9a9843 3:67bfe9f274f6
1 #ifndef _MMIICONS_H_
2 #define _MMIICONS_H_ 1
3
4 /*******************************************************************************
5
6 CONDAT (UK)
7
8 ********************************************************************************
9
10 This software product is the property of Condat (UK) Ltd and may not be
11 disclosed to any third party without the express permission of the owner.
12
13 ********************************************************************************
14
15 $Project name: Basic MMI
16 $Project code: BMI (6349)
17 $Module: Icons
18 $File: Mmiicons.h
19 $Revision: 1.0
20
21 $Author: Condat(UK)
22 $Date: 25/10/00
23
24 ********************************************************************************
25
26 Description:
27
28 This provides the implementation of the icon handling in the basic MMI
29
30 ********************************************************************************
31 $History: Mmiicons.h
32
33 Jun 09, 2006 REF:OMAPS00079650 a0393213 (R.Prabakar)
34 Description : CPHS Roaming indication feature implementation
35 Solution : As part of the implementation, in this file, Roaming icon is added to the list of icons
36
37 Apr 17, 2006 REF: ER: OMAPS00075178 x0pleela
38 Description: When the charger connect to phone(i-sample), the charger driver works, but the
39 MMI and App don't work
40 Solution: Added prototype for the function BattChargeEventTim which is the callback called
41 for the timeout of battery charging timer
42
43 Apr 27, 2004 REF: ENH 12646 Deepa M.D
44 Fix: When the SMS memory is full,the SMS icon is made to blink.
45 25/10/00 Original Condat(UK) BMI version.
46
47 $End
48
49 *******************************************************************************/
50
51 #include "MmiResources.h" //For display definition
52
53
54
55 /*******************************************************************************
56
57 Required Definitions
58
59 *******************************************************************************/
60
61 #define ALLOC_MEMORY mfwAlloc
62 #define FREE_MEMORY mfwFree
63
64
65
66
67 /*******************************************************************************
68
69 Public Enum types
70
71 *******************************************************************************/
72
73 /* GW #1471 11/12/02 - Add TI logo as powerdown animation */
74 #ifndef COLOURDISPLAY
75 #define animwelcome 10
76 #define animGoodbye 10
77 #else
78 #define CALLANIMATION 4
79 #define animwelcome 2
80 #define animGoodbye 2
81 #endif
82 #define screenparts 5
83
84 typedef enum /* AVAILABLE ICONS IDLE MODE*/
85 {
86 iconIdSMS = 0, /* icon New SMS message */
87 iconIdVoice, /* icon New Voice mail */
88 iconIdCallFor, /* icon Call forward uncond */
89 iconIdSilRin, /* icon silent ringer */
90 iconIdRoaming, /*icon Roaming Indicator */ /*Jun 09, 2006 REF:OMAPS00079650 a0393213 (R.Prabakar)*/
91 iconIdKeyplock, /* icon Keypad locked */
92 iconIdCipheringActiv, /* icon Ciphering */
93 iconIdCipheringDeActiv, /* icon Ciphering */
94 iconIdRinger, /* icon ringer */
95 iconIdVibrator, /* icon vibrator */
96 iconIdRingVibr, /* icon ringer + vibrator */
97 iconIdAlarm, /* icon alarm on */
98 iconSIMTool, /* icon SIM Toolkit */
99 iconMessages, /* icon Messages */
100 iconOrganiser, /* icon Organiser */
101 iconSounds, /* icon Sounds */
102 iconSettings, /* icon Settings */
103 iconServices, /* icon Services */
104 iconExtra, /* icon Extra */
105 iconWAP, /* icon WAP */
106 iconIdGPRSOn, /* icon GPRS ON (sbh 18/01/02) */
107 iconIdHomezone, /* icon Homezone (SH 29/11/01) */
108 iconIdTTY, /* SPR#xxx- SH - icon TTY */
109 #ifdef NEPTUNE_BOARD
110 /* OMAPS00074454 - Edge icon - 24-04-2006 */
111 iconIdEdgeOn, /*EDGE Icon */
112 /* END */
113 #endif
114 idlIdMax /* number of icons */
115 } IconId;
116
117 typedef enum /* AVAILABLE ICONS INPUT MODE*/
118 {
119 iconAMBLOW = 0, /* icon ambigous mode low */
120 iconAMBUPP, /* icon ambigous mode upper */
121 iconAMBNUM, /* icon ambigous mode numeric */
122 iconMTLOW, /* icon multitap mode low */
123 iconMTUPP, /* icon multitap mode upper */
124 iconMTNUM, /* icon multitap mode numeric */
125 inputIdMax /* number of icons */
126 } IconInputId;
127
128 typedef enum /* AVAILABLE ICONS BATTERY */
129 {
130 iconBattery4 = 0, /* icon Battery 0-4% */
131 iconBattery14, /* icon Battery 5-14% */
132 iconBattery24, /* icon Battery 15-24% */
133 iconBattery49, /* icon Battery 25-49% */
134 iconBattery100, /* icon Battery 50-100% */
135 iconBattMax /* number of batterie icon */
136 }IconBattId;
137
138 typedef enum /* AVAILABLE ICONS SIGNAL */
139 {
140 iconSigStat49 = 0, /* icon Signal 0-49 */
141 iconSigStat99, /* icon Signal 50-99 */
142 iconSigStat149, /* icon Signal 100-149 */
143 iconSigStat199, /* icon Signal 150-199 */
144 iconSigStat255, /* icon Signal 200-255 */
145 iconSignalMax /* number of signal icon */
146 }IconSignId;
147
148
149
150 /*******************************************************************************
151
152 Externally declared data elements
153
154 *******************************************************************************/
155
156 extern const MfwIcnAttr idl_Attr[ idlIdMax ];
157 extern const MfwIcnAttr batt_Attr[ iconBattMax ];
158 extern const MfwIcnAttr sign_Attr[ iconSignalMax ];
159 extern const MfwIcnAttr goodbye_Attr[ animGoodbye ];
160 extern const MfwIcnAttr welcome_Attr[ animwelcome];
161 #ifdef COLOURDISPLAY
162 extern const MfwIcnAttr incoming_call_animate [CALLANIMATION];
163 #endif
164 extern MfwIcnAttr callBackDrop;
165 extern MfwIcnAttr mainIconSimToolkit;
166 extern MfwIcnAttr mainIconCalculator;
167 extern MfwIcnAttr mainIconSettings;
168 extern MfwIcnAttr mainIconRecentCalls;
169 extern MfwIcnAttr mainIconCallDivert;
170 extern MfwIcnAttr mainIconSecurity;
171 extern MfwIcnAttr mainIconMessages;
172 extern MfwIcnAttr mainIconPhonebook;
173 extern MfwIcnAttr mainIconWAP;
174 extern MfwIcnAttr IconTexteZiText;
175 extern MfwIcnAttr IconTexteZiTextSmall;
176
177 extern MfwIcnAttr mainIconBackground;
178
179 extern const MfwIcnAttr IconCol1Attr;
180 extern const MfwIcnAttr IconCol2Attr;
181 extern const MfwIcnAttr IconCol3Attr;
182 extern const MfwIcnAttr IconCol4Attr;
183 extern MfwIcnAttr IconLogo;
184
185 //gb icons for game(four in a row)
186 extern const unsigned char white_stone_bw[];
187 extern const unsigned char black_stone_bw[];
188 extern const unsigned char game_cursor[];
189
190 extern const unsigned char game_name1[];
191 extern const unsigned char player_win1[];
192 extern const unsigned char player_lost1[];
193 extern const unsigned char board_full1[];
194
195 extern const unsigned char game_name2[];
196 extern const unsigned char player_win2[];
197 extern const unsigned char player_lost2[];
198 extern const unsigned char board_full2[];
199
200 //gb icons for melodygenerator
201 extern const MfwIcnAttr melodygenerator_Attr[ screenparts];
202 //active frame
203 extern const unsigned char akt_frame[];
204 //begin of noteline
205 extern const unsigned char noteline_begin[];
206 //notelines
207 extern const unsigned char noteline_background[];
208 //end of noteline
209 extern const unsigned char noteline_end[];
210 //all the possible musical notes
211 //all notes with flag up
212 extern const unsigned char n1[];
213 extern const unsigned char n1_16[];
214 extern const unsigned char n1_32[];
215 extern const unsigned char n1_8[];
216 extern const unsigned char n1_f[];
217 extern const unsigned char n1_h[];
218 //all notes with flag down
219 extern const unsigned char n5[];
220 extern const unsigned char n5_16[];
221 extern const unsigned char n5_32[];
222 extern const unsigned char n5_8[];
223 extern const unsigned char n5_h[];
224 //all musical pauses
225 extern const unsigned char n4_b[];
226 extern const unsigned char n8_b[];
227 extern const unsigned char n16_b[];
228 extern const unsigned char n32_b[];
229 extern const unsigned char nf_b[];
230 extern const unsigned char nh_b[];
231 //musical sign
232 extern const unsigned char n_point[];
233 extern const unsigned char n_hash[];
234 extern const unsigned char screenpart0[];
235 extern const unsigned char screenpart1[];
236 extern const unsigned char screenpart2[];
237 extern const unsigned char screenpart3[];
238 extern const unsigned char screenpart4[];
239 //multicaller icon
240 extern const unsigned char multi_pointer[];
241
242 #define T_BITMAP MfwIcnAttr
243
244 enum {
245 BGD_NONE,
246 BGD_BUBBLES,
247 BGD_CLOUD,
248 BGD_SQUARE,
249 BGD_O2,
250 BGD_TI_LOGO,
251 BGD_TREE,
252 BGD_SUNSET,
253 BGD_EDINBURGH1,
254 BGD_EDINBURGH2,
255 BGD_EDINBURGH3,
256 BGD_EDINBURGH4,
257 BGD_INCALL,
258 BGD_LAST
259 };
260
261 /*******************************************************************************
262
263 Public method prototypes
264
265 *******************************************************************************/
266
267 void iconsInit( void );
268 void iconsExit( void );
269
270 void iconsSetState( int icon );
271 void iconsDeleteState( int icon );
272 U8 iconsGetState( int icon );
273
274 void iconsShow( void );
275 int iconsShowBattery( U8 batterystatus );
276 int iconsShowSignal( U8 signalstatus );
277 void iconsInputShow( int IconInputId );
278
279 void iconsMainIconsAreaSet (MfwRect selected_area);
280 void iconShowGoodbye(void); /* Warning Correction */
281 // Apr 27, 2004 REF: ENH 12646 Deepa M.D
282 int iconsShowSmsFull(void ); //to start the timer for blinking SMS Icon
283 //x0pleela 11 Apr, 2006 ER: OMAPS00075178
284 //Callback for battery charging animation timer
285 int BattChargeEventTim( MfwEvt e, MfwTim *tc );
286
287 T_BITMAP* icon_getNetworkIcon( UBYTE* networkNumber);
288 T_BITMAP* icon_getBgdBitmap( int bgdId );
289 T_BITMAP *icon_getBitmapFromId( int bgdId, T_BITMAP *bmpData);
290 // Apr 27, 2004 REF: ENH 12646 Deepa M.D
291 int smsFullEventTim( MfwEvt e, MfwTim *tc ); //Timer callback for blinking SMS Icon(sms_animate)
292
293 int icon_networkShow (MfwMnu* m, MfwMnuItem* i);
294 int icon_networkDontShow (MfwMnu* m, MfwMnuItem* i);
295
296 #define ICON_VISIBLE (0)
297 #define ICON_INVISIBLE (0xFF)
298 /*******************************************************************************
299
300 End Of File
301
302 *******************************************************************************/
303
304 #endif
305