FreeCalypso > hg > fc-magnetite
comparison src/aci2/bmi/Mmiicons.h @ 3:93999a60b835
src/aci2, src/condat2: import of g23m/condat source pieces from TCS211
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 26 Sep 2016 00:29:36 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2:c41a534f33c6 | 3:93999a60b835 |
---|---|
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 Apr 27, 2004 REF: ENH 12646 Deepa M.D | |
33 Fix: When the SMS memory is full,the SMS icon is made to blink. | |
34 25/10/00 Original Condat(UK) BMI version. | |
35 | |
36 $End | |
37 | |
38 *******************************************************************************/ | |
39 | |
40 #include "MmiResources.h" //For display definition | |
41 | |
42 | |
43 | |
44 /******************************************************************************* | |
45 | |
46 Required Definitions | |
47 | |
48 *******************************************************************************/ | |
49 | |
50 #define ALLOC_MEMORY mfwAlloc | |
51 #define FREE_MEMORY mfwFree | |
52 | |
53 | |
54 | |
55 | |
56 /******************************************************************************* | |
57 | |
58 Public Enum types | |
59 | |
60 *******************************************************************************/ | |
61 | |
62 /* GW #1471 11/12/02 - Add TI logo as powerdown animation */ | |
63 #ifndef COLOURDISPLAY | |
64 #define animwelcome 10 | |
65 #define animGoodbye 10 | |
66 #else | |
67 #define CALLANIMATION 4 | |
68 #define animwelcome 2 | |
69 #define animGoodbye 2 | |
70 #endif | |
71 #define screenparts 5 | |
72 | |
73 typedef enum /* AVAILABLE ICONS IDLE MODE*/ | |
74 { | |
75 iconIdSMS = 0, /* icon New SMS message */ | |
76 iconIdVoice, /* icon New Voice mail */ | |
77 iconIdCallFor, /* icon Call forward uncond */ | |
78 iconIdSilRin, /* icon silent ringer */ | |
79 iconIdKeyplock, /* icon Keypad locked */ | |
80 iconIdCipheringActiv, /* icon Ciphering */ | |
81 iconIdCipheringDeActiv, /* icon Ciphering */ | |
82 iconIdRinger, /* icon ringer */ | |
83 iconIdVibrator, /* icon vibrator */ | |
84 iconIdRingVibr, /* icon ringer + vibrator */ | |
85 iconIdAlarm, /* icon alarm on */ | |
86 iconSIMTool, /* icon SIM Toolkit */ | |
87 iconMessages, /* icon Messages */ | |
88 iconOrganiser, /* icon Organiser */ | |
89 iconSounds, /* icon Sounds */ | |
90 iconSettings, /* icon Settings */ | |
91 iconServices, /* icon Services */ | |
92 iconExtra, /* icon Extra */ | |
93 iconWAP, /* icon WAP */ | |
94 iconIdGPRSOn, /* icon GPRS ON (sbh 18/01/02) */ | |
95 iconIdHomezone, /* icon Homezone (SH 29/11/01) */ | |
96 iconIdTTY, /* SPR#xxx- SH - icon TTY */ | |
97 idlIdMax /* number of icons */ | |
98 } IconId; | |
99 | |
100 typedef enum /* AVAILABLE ICONS INPUT MODE*/ | |
101 { | |
102 iconAMBLOW = 0, /* icon ambigous mode low */ | |
103 iconAMBUPP, /* icon ambigous mode upper */ | |
104 iconAMBNUM, /* icon ambigous mode numeric */ | |
105 iconMTLOW, /* icon multitap mode low */ | |
106 iconMTUPP, /* icon multitap mode upper */ | |
107 iconMTNUM, /* icon multitap mode numeric */ | |
108 inputIdMax /* number of icons */ | |
109 } IconInputId; | |
110 | |
111 typedef enum /* AVAILABLE ICONS BATTERY */ | |
112 { | |
113 iconBattery4 = 0, /* icon Battery 0-4% */ | |
114 iconBattery14, /* icon Battery 5-14% */ | |
115 iconBattery24, /* icon Battery 15-24% */ | |
116 iconBattery49, /* icon Battery 25-49% */ | |
117 iconBattery100, /* icon Battery 50-100% */ | |
118 iconBattMax /* number of batterie icon */ | |
119 }IconBattId; | |
120 | |
121 typedef enum /* AVAILABLE ICONS SIGNAL */ | |
122 { | |
123 iconSigStat49 = 0, /* icon Signal 0-49 */ | |
124 iconSigStat99, /* icon Signal 50-99 */ | |
125 iconSigStat149, /* icon Signal 100-149 */ | |
126 iconSigStat199, /* icon Signal 150-199 */ | |
127 iconSigStat255, /* icon Signal 200-255 */ | |
128 iconSignalMax /* number of signal icon */ | |
129 }IconSignId; | |
130 | |
131 | |
132 | |
133 /******************************************************************************* | |
134 | |
135 Externally declared data elements | |
136 | |
137 *******************************************************************************/ | |
138 | |
139 extern const MfwIcnAttr idl_Attr[ idlIdMax ]; | |
140 extern const MfwIcnAttr batt_Attr[ iconBattMax ]; | |
141 extern const MfwIcnAttr sign_Attr[ iconSignalMax ]; | |
142 extern const MfwIcnAttr goodbye_Attr[ animGoodbye ]; | |
143 extern const MfwIcnAttr welcome_Attr[ animwelcome]; | |
144 #ifdef COLOURDISPLAY | |
145 extern const MfwIcnAttr incoming_call_animate [CALLANIMATION]; | |
146 #endif | |
147 extern MfwIcnAttr callBackDrop; | |
148 extern MfwIcnAttr mainIconSimToolkit; | |
149 extern MfwIcnAttr mainIconCalculator; | |
150 extern MfwIcnAttr mainIconSettings; | |
151 extern MfwIcnAttr mainIconRecentCalls; | |
152 extern MfwIcnAttr mainIconCallDivert; | |
153 extern MfwIcnAttr mainIconSecurity; | |
154 extern MfwIcnAttr mainIconMessages; | |
155 extern MfwIcnAttr mainIconPhonebook; | |
156 extern MfwIcnAttr mainIconWAP; | |
157 extern MfwIcnAttr IconTexteZiText; | |
158 extern MfwIcnAttr IconTexteZiTextSmall; | |
159 | |
160 extern MfwIcnAttr mainIconBackground; | |
161 | |
162 extern const MfwIcnAttr IconCol1Attr; | |
163 extern const MfwIcnAttr IconCol2Attr; | |
164 extern const MfwIcnAttr IconCol3Attr; | |
165 extern const MfwIcnAttr IconCol4Attr; | |
166 extern MfwIcnAttr IconLogo; | |
167 | |
168 //gb icons for game(four in a row) | |
169 extern const unsigned char white_stone_bw[]; | |
170 extern const unsigned char black_stone_bw[]; | |
171 extern const unsigned char game_cursor[]; | |
172 | |
173 extern const unsigned char game_name1[]; | |
174 extern const unsigned char player_win1[]; | |
175 extern const unsigned char player_lost1[]; | |
176 extern const unsigned char board_full1[]; | |
177 | |
178 extern const unsigned char game_name2[]; | |
179 extern const unsigned char player_win2[]; | |
180 extern const unsigned char player_lost2[]; | |
181 extern const unsigned char board_full2[]; | |
182 | |
183 //gb icons for melodygenerator | |
184 extern const MfwIcnAttr melodygenerator_Attr[ screenparts]; | |
185 //active frame | |
186 extern const unsigned char akt_frame[]; | |
187 //begin of noteline | |
188 extern const unsigned char noteline_begin[]; | |
189 //notelines | |
190 extern const unsigned char noteline_background[]; | |
191 //end of noteline | |
192 extern const unsigned char noteline_end[]; | |
193 //all the possible musical notes | |
194 //all notes with flag up | |
195 extern const unsigned char n1[]; | |
196 extern const unsigned char n1_16[]; | |
197 extern const unsigned char n1_32[]; | |
198 extern const unsigned char n1_8[]; | |
199 extern const unsigned char n1_f[]; | |
200 extern const unsigned char n1_h[]; | |
201 //all notes with flag down | |
202 extern const unsigned char n5[]; | |
203 extern const unsigned char n5_16[]; | |
204 extern const unsigned char n5_32[]; | |
205 extern const unsigned char n5_8[]; | |
206 extern const unsigned char n5_h[]; | |
207 //all musical pauses | |
208 extern const unsigned char n4_b[]; | |
209 extern const unsigned char n8_b[]; | |
210 extern const unsigned char n16_b[]; | |
211 extern const unsigned char n32_b[]; | |
212 extern const unsigned char nf_b[]; | |
213 extern const unsigned char nh_b[]; | |
214 //musical sign | |
215 extern const unsigned char n_point[]; | |
216 extern const unsigned char n_hash[]; | |
217 extern const unsigned char screenpart0[]; | |
218 extern const unsigned char screenpart1[]; | |
219 extern const unsigned char screenpart2[]; | |
220 extern const unsigned char screenpart3[]; | |
221 extern const unsigned char screenpart4[]; | |
222 //multicaller icon | |
223 extern const unsigned char multi_pointer[]; | |
224 | |
225 #define T_BITMAP MfwIcnAttr | |
226 | |
227 enum { | |
228 BGD_NONE, | |
229 BGD_BUBBLES, | |
230 BGD_CLOUD, | |
231 BGD_SQUARE, | |
232 BGD_O2, | |
233 BGD_TI_LOGO, | |
234 BGD_TREE, | |
235 BGD_SUNSET, | |
236 BGD_EDINBURGH1, | |
237 BGD_EDINBURGH2, | |
238 BGD_EDINBURGH3, | |
239 BGD_EDINBURGH4, | |
240 BGD_INCALL, | |
241 BGD_LAST | |
242 }; | |
243 | |
244 /******************************************************************************* | |
245 | |
246 Public method prototypes | |
247 | |
248 *******************************************************************************/ | |
249 | |
250 void iconsInit( void ); | |
251 void iconsExit( void ); | |
252 | |
253 void iconsSetState( int icon ); | |
254 void iconsDeleteState( int icon ); | |
255 U8 iconsGetState( int icon ); | |
256 | |
257 void iconsShow( void ); | |
258 int iconsShowBattery( U8 batterystatus ); | |
259 int iconsShowSignal( U8 signalstatus ); | |
260 void iconsInputShow( int IconInputId ); | |
261 | |
262 void iconsMainIconsAreaSet (MfwRect selected_area); | |
263 void iconShowGoodbye(void); // RAVI | |
264 // Apr 27, 2004 REF: ENH 12646 Deepa M.D | |
265 int iconsShowSmsFull(void ); //to start the timer for blinking SMS Icon // RAVI | |
266 | |
267 T_BITMAP* icon_getNetworkIcon( UBYTE* networkNumber); | |
268 T_BITMAP* icon_getBgdBitmap( int bgdId ); | |
269 T_BITMAP *icon_getBitmapFromId( int bgdId, T_BITMAP *bmpData); | |
270 // Apr 27, 2004 REF: ENH 12646 Deepa M.D | |
271 int smsFullEventTim( MfwEvt e, MfwTim *tc ); //Timer callback for blinking SMS Icon(sms_animate) | |
272 | |
273 int icon_networkShow (MfwMnu* m, MfwMnuItem* i); | |
274 int icon_networkDontShow (MfwMnu* m, MfwMnuItem* i); | |
275 | |
276 #define ICON_VISIBLE (0) | |
277 #define ICON_INVISIBLE (0xFF) | |
278 /******************************************************************************* | |
279 | |
280 End Of File | |
281 | |
282 *******************************************************************************/ | |
283 | |
284 #endif | |
285 |