FreeCalypso > hg > fc-magnetite
comparison src/ui3/bmi/mmiIdle.h @ 421:6a4d9f47793e
src/ui3/bmi: file renames to make the case consistent
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 21 Jan 2018 03:28:53 +0000 |
parents | src/ui3/bmi/MmiIdle.h@e8ddbb0837ed |
children |
comparison
equal
deleted
inserted
replaced
420:e8ddbb0837ed | 421:6a4d9f47793e |
---|---|
1 /******************************************************************************* | |
2 | |
3 CONDAT (UK) | |
4 | |
5 ******************************************************************************** | |
6 | |
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. | |
9 | |
10 ******************************************************************************** | |
11 | |
12 $Project name: Basic MMI | |
13 $Project code: BMI (6349) | |
14 $Module: Call | |
15 $File: MmiIdle.h | |
16 $Revision: 1.0 | |
17 | |
18 $Author: Condat(UK) | |
19 $Date: 25/10/00 | |
20 | |
21 ******************************************************************************** | |
22 | |
23 Description: | |
24 | |
25 ******************************************************************************** | |
26 | |
27 $History: MmiIdle.h | |
28 Mar 30, 2007 OMAPS00123019 a0393213(R.Prabakar0 | |
29 Description : Reboot of the target when you unplug/plug USB cable using camera application | |
30 | |
31 Oct 13, 2006 OMAPS00095266 a0393213(R.Prabakar) | |
32 Description : CT-GCF[27.22.4.22.1]-Incorrect string display | |
33 Solution : The DCS attribute is set dynamically | |
34 | |
35 xashmic 27 Sep 2006, OMAPS00096389 | |
36 ENH - a) Providing static menu for re-selection of enum options for enumeration | |
37 b) Popup menu displayed on connect event, can be enabled or disabled via menu option | |
38 | |
39 xrashmic 9 Sep 2006, OMAPS00092732 | |
40 USBMS ER | |
41 | |
42 July 12, 2006 REF:DR OMAPS00081477 x0047075 | |
43 Description: SMS (with SMS Report Indicator +CDS Enabled) Reset Issue. | |
44 Solution: Added a window handler for the sms status editor. | |
45 If sms status editor does not exist, create it.If it already exists Update the same. | |
46 | |
47 Jun 06, 2006 DR: OMAPS00080543 - xreddymn | |
48 Changes to display long SAT messages correctly on idle screen. | |
49 | |
50 May 15, 2006 DR: OMAPS00075852 - xreddymn | |
51 Do not display messages on Idle screen when inside the dialer. | |
52 | |
53 Mar 14, 2006 DR: OMAPS00061468 - x0035544. | |
54 Description: SAT 27.22.4.22.2 SET UP IDLE MODE TEXT (Icon support) fails | |
55 Solution : Added additional parameter to the prototype of addSatMessage() to hold the display type | |
56 for SAT idle text with icon support. | |
57 | |
58 Sept 15, 2005 REF: CRR 32410 x0021334 | |
59 Description: The keypad unlocks even though the unlocking sequence is not executed in quick succession. | |
60 Fix: A new timer expiry event is added and handled. | |
61 | |
62 xrashmic 26 Aug, 2004 MMI-SPR-23931 | |
63 | |
64 25/10/00 Original Condat(UK) BMI version. | |
65 | |
66 $End | |
67 | |
68 *******************************************************************************/ | |
69 | |
70 /* SPR#1428 - SH - New Editor changes */ | |
71 #ifdef NEW_EDITOR | |
72 #include "ATBCommon.h" | |
73 #include "ATBDisplay.h" | |
74 #include "ATBEditor.h" | |
75 #else | |
76 #include "mfw_edt.h" | |
77 #endif | |
78 #include "Mmiicons.h" //for T_BITMAP | |
79 | |
80 #ifndef _DEF_MMI_IDLE_H_ | |
81 #define _DEF_MMI_IDLE_H_ | |
82 | |
83 #define EDITOR_SIZE 41 /* SPR761 - SH - Moved from MmiIdle.c, changed to 41 */ | |
84 | |
85 /* xreddymn OMAPS00080543 Jun-06-2006 | |
86 * Maximum length allowed for SAT messages on Idle Screen. | |
87 */ | |
88 #define MAX_SATMSG_LEN 296 | |
89 | |
90 typedef enum | |
91 { /* REASONS */ | |
92 IdleNone = IdleDummy, /* no reason */ | |
93 IdleNormal, /* normal idle mode */ | |
94 IdleUpdate, | |
95 IdleSearchNetwork, | |
96 IdleNewSmsMessage, | |
97 IdleActiveKeyPadLocked, | |
98 IdleNewCBImmediateMessage, | |
99 IdleNewCBNormalMessage | |
100 } E_IDLE_TYPE; /*a0393213 warnings removal-typedef name given*/ | |
101 | |
102 // Sept 15, 2005 REF: CRR 32410 x0021334 | |
103 // Description: The keypad unlocks even though the unlocking sequence is not executed in quick succession. | |
104 // Added a new enum member IDLE_KEYPAD_UNLOCK_TIMER_EXPIRED | |
105 typedef enum | |
106 { /* REASONS */ | |
107 IDLE_NO_NETWORK, | |
108 IDLE_UPDATE, | |
109 IDLE_NEW_SMS, | |
110 IDLE_ACTIVE_KEY_PAD_LOCKED, | |
111 IDLE_DETAILS_NUMBER, | |
112 IDLE_DIALLING_INIT, | |
113 IDLE_INFO_ENDED, | |
114 IDLE_KEYPAD_LOCKED_UPDATE, | |
115 IDLE_START_DIALLING_NUMBER, | |
116 IDLE_KEYPAD_UNLOCK_TIMER_EXPIRED | |
117 } E_IDLE_EVENTS; /*a0393213 warnings removal-typedef name given*/ | |
118 | |
119 typedef enum | |
120 { | |
121 SHOWVERSION_INIT | |
122 } Version_events; | |
123 | |
124 | |
125 #define SHOW_CPRS_DEACTIV 0 | |
126 #define SHOW_CPRS_ACITV 1 | |
127 #define DONT_SHOW_CPRS 2 //not allowed to show any indication | |
128 | |
129 /* | |
130 * The information related to every window must be encapsulated in such an structure | |
131 */ | |
132 typedef struct | |
133 { | |
134 T_MMI_CONTROL mmi_control; // this a common parameter in every structure | |
135 T_MFW_HND win; // windows handler, another common parameter | |
136 T_MFW_HND kbd; // To control all of the events, 2 handler are needed kbd that handles the key press | |
137 T_MFW_HND kbd_long; // event and kbd_long that handles the release and long key event. | |
138 #ifdef NEW_EDITOR /* SPR#1428 - SH - New Editor changes */ | |
139 T_ED_DATA *editor; | |
140 T_ED_DATA *editor_sat; | |
141 T_MFW_HND sms_status_editor; //July 12, 2006 REF:DR OMAPS00081477 x0047075 Fix:Handler for the sms status editor | |
142 #else /* NEW_EDITOR */ | |
143 T_MFW_HND edt; | |
144 T_MFW_HND edt_sat; /* SPR759 - SH*/ | |
145 T_MFW_HND sms_status_edt; //July 12,2006 REF:DR OMAPS00081477 x0047075 Fix:Handler for the sms status editor | |
146 #endif /* NEW_EDITOR */ | |
147 T_MFW_HND info_win; | |
148 T_MFW_HND klck_win; // Keypad Locked Window Handler | |
149 int missedCalls; | |
150 int ems; //xrashmic 26 Aug, 2004 MMI-SPR-23931 | |
151 UBYTE search; | |
152 UBYTE flagIdle; | |
153 USHORT nm_status; | |
154 char edt_buf[EDITOR_SIZE]; /* SPR761 - SH - Changed from a number to a constant */ | |
155 #ifdef NEW_EDITOR /* SPR#1428 - SH - New Editor changes */ | |
156 T_ED_ATTR editor_attr; /* Dialling editor */ | |
157 T_ED_ATTR editor_attr2; /* CB editor */ | |
158 T_ED_ATTR editor_attr3; /* CLASS 0 SMS editor */ | |
159 T_ED_ATTR editor_attr_sat; /* SAT & Homezone editor */ | |
160 #else /* NEW_EDITOR */ | |
161 MfwEdtAttr edt_attr; //this one for the dialling editor | |
162 MfwEdtAttr edt_attr2; //this is for the CB editor | |
163 MfwEdtAttr edt_attr3; //this is for the (only CLASS 0) SMS editor | |
164 MfwEdtAttr edt_attr_sat; /* SPR759 - SH*/ | |
165 #endif /* NEW_EDITOR */ | |
166 char imei[16]; | |
167 /* xreddymn OMAPS00075852 May-15-2006 | |
168 * This will be set to TRUE when dialer is being displayed. | |
169 */ | |
170 UBYTE dialer_visible; | |
171 UBYTE new_sms; | |
172 UBYTE new_cbch; | |
173 CHAR incoming_cb_msg[MAX_CBMSG_LEN]; | |
174 /*NM, p019*/ | |
175 CHAR incoming_sms_msg[MAX_MSG_LEN_SGL]; | |
176 UBYTE right_key_pressed; | |
177 UBYTE silent_mode; | |
178 UBYTE clean_screen; | |
179 UBYTE ciphering; | |
180 UBYTE starting_up; /*SPR#1662 - NH - New field for checking the start up status */ | |
181 /* xreddymn OMAPS00080543 Jun-06-2006 */ | |
182 CHAR incoming_sat_msg[MAX_SATMSG_LEN]; /* SPR759 - SH*/ | |
183 T_BITMAP* idleNetLogo; //Background for idle screen - NULL if no background. | |
184 T_BITMAP * idleBgd; //Background image on the idle Screen | |
185 int defTextOffset; //start point for text (may vary with bitmap ?) | |
186 } T_idle; | |
187 | |
188 extern UBYTE KeyPadLock; | |
189 extern T_idle idle_data;/*Oct 13 2006, OMAPS00095266, a0393213(R.Prabakar)*/ | |
190 #ifdef FF_MMI_USBMS | |
191 extern T_MFW_HND usb_opt_win; /*Mar 30, 2007 OMAPS00123019 a0393213(R.Prabakar)*/ | |
192 #endif | |
193 /* PROTOTYPES */ | |
194 extern void wake_up_rr(void); | |
195 | |
196 void idleInit (MfwHnd parent); | |
197 void idleExit (void); | |
198 void idleExec (int reason, MmiState next); | |
199 void idleEvent(int reason); | |
200 void idleDialBuffer(char* dialBuffer); | |
201 | |
202 MfwHnd idle_get_window(void); | |
203 | |
204 int idleIsFocussed(void); | |
205 | |
206 void idle_set_starting_up(UBYTE set); | |
207 | |
208 void windowsUpdate(void); | |
209 | |
210 void addMissedCall(void); | |
211 void addNewEMS(void);//xrashmic 26 Aug, 2004 MMI-SPR-23931 | |
212 void addCBCH(char* cbch_string, UBYTE type); | |
213 void statusCBCH(UBYTE status); | |
214 | |
215 // 09-Dec-2005, Shashi Shekar B.S., a0876501, START | |
216 //x0035544 Mar 14, 2006 DR:OMAPS00061468 | |
217 /* | |
218 **Sending additional parameter display_type to hold the display type for SAT Idle text with icon display | |
219 */ | |
220 #ifdef FF_MMI_SAT_ICON | |
221 void addSatMessage(char *satMessage, UBYTE width, UBYTE height, | |
222 char *dst, UBYTE selfExplanatory, T_DISPLAY_TYPE display_type); | |
223 #else | |
224 void addSatMessage(char *satMessage); /* SPR759 - SH*/ | |
225 #endif | |
226 extern void showIMEI (T_MFW_HND win, char* IMEI); | |
227 void idle_setBgdBitmap(int bmp); | |
228 | |
229 /* Added to remove warning Aug - 11 */ | |
230 EXTERN U32 dspl_GetBorderColour ( void ); | |
231 EXTERN U32 dspl_GetFgdColour ( void ); | |
232 EXTERN U32 dspl_SetBorderColour (U32 inColour); | |
233 EXTERN int dspl_GetContrastColour( int ipCol); | |
234 EXTERN UBYTE sms_check_message_pending(void); | |
235 EXTERN int M_callVoice(MfwMnu* m, MfwMnuItem* i); | |
236 /* End - Remove warning Aug - 11 */ | |
237 | |
238 #endif | |
239 | |
240 #ifdef NEPTUNE_BOARD | |
241 #ifdef MMI_POWER_MANAGEMENT_TEST | |
242 /* Callback function for powermanagement timer. */ | |
243 int powerManagementEvent( MfwEvt e, MfwTim *tc ); | |
244 | |
245 /*function for updating PM timer.*/ | |
246 void mmi_update_pm_timer_duration(void); | |
247 | |
248 /*function to enable/disable Power Management .*/ | |
249 void mmi_pm_enable( int enable_pm); | |
250 #endif | |
251 #endif | |
252 //xashmic 9 Sep 2006, OMAPS00092732 | |
253 #ifdef FF_MMI_USBMS | |
254 void mmi_usb_mode_connect(void); | |
255 void mmi_usb_mode_disconnect(void); | |
256 GLOBAL int mmi_usb_enumeration (MfwMnu* m, MfwMnuItem* i); | |
257 GLOBAL int setUSBMSPS (MfwMnu* m, MfwMnuItem* i);//xashmic 27 Sep 2006, OMAPS00096389 | |
258 GLOBAL int setUSBMSPopup (MfwMnu* m, MfwMnuItem* i);//xashmic 27 Sep 2006, OMAPS00096389 | |
259 UBYTE getUSBMSFlags(void);//xashmic 27 Sep 2006, OMAPS00096389 | |
260 | |
261 #endif |