FreeCalypso > hg > fc-tourmaline
comparison src/ui/bmi/mmiIdle.h @ 55:eca2202f630f
src/ui/bmi/mmiIdle.[ch]: 4-character bogotab cleanup
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 20 Oct 2020 20:52:17 +0000 |
parents | 67bfe9f274f6 |
children | c0052fe355d3 |
comparison
equal
deleted
inserted
replaced
54:a1799f6d6aa7 | 55:eca2202f630f |
---|---|
1 /******************************************************************************* | 1 /******************************************************************************* |
2 | 2 |
3 CONDAT (UK) | 3 CONDAT (UK) |
4 | 4 |
5 ******************************************************************************** | 5 ******************************************************************************** |
6 | 6 |
7 This software product is the property of Condat (UK) Ltd and may not be | 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. | 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 | |
9 | 17 |
10 ******************************************************************************** | 18 $Author: Condat(UK) |
11 | 19 $Date: 25/10/00 |
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 | 20 |
21 ******************************************************************************** | 21 ******************************************************************************** |
22 | 22 |
23 Description: | 23 Description: |
24 | 24 |
26 | 26 |
27 $History: MmiIdle.h | 27 $History: MmiIdle.h |
28 Mar 30, 2007 OMAPS00123019 a0393213(R.Prabakar0 | 28 Mar 30, 2007 OMAPS00123019 a0393213(R.Prabakar0 |
29 Description : Reboot of the target when you unplug/plug USB cable using camera application | 29 Description : Reboot of the target when you unplug/plug USB cable using camera application |
30 | 30 |
31 Oct 13, 2006 OMAPS00095266 a0393213(R.Prabakar) | 31 Oct 13, 2006 OMAPS00095266 a0393213(R.Prabakar) |
32 Description : CT-GCF[27.22.4.22.1]-Incorrect string display | 32 Description : CT-GCF[27.22.4.22.1]-Incorrect string display |
33 Solution : The DCS attribute is set dynamically | 33 Solution : The DCS attribute is set dynamically |
34 | 34 |
35 xashmic 27 Sep 2006, OMAPS00096389 | 35 xashmic 27 Sep 2006, OMAPS00096389 |
36 ENH - a) Providing static menu for re-selection of enum options for enumeration | 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 | 37 b) Popup menu displayed on connect event, can be enabled or disabled via menu option |
38 | 38 |
39 xrashmic 9 Sep 2006, OMAPS00092732 | 39 xrashmic 9 Sep 2006, OMAPS00092732 |
40 USBMS ER | 40 USBMS ER |
41 | 41 |
42 July 12, 2006 REF:DR OMAPS00081477 x0047075 | 42 July 12, 2006 REF:DR OMAPS00081477 x0047075 |
43 Description: SMS (with SMS Report Indicator +CDS Enabled) Reset Issue. | 43 Description: SMS (with SMS Report Indicator +CDS Enabled) Reset Issue. |
44 Solution: Added a window handler for the sms status editor. | 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. | 45 If sms status editor does not exist, create it.If it already exists Update the same. |
46 | 46 |
47 Jun 06, 2006 DR: OMAPS00080543 - xreddymn | 47 Jun 06, 2006 DR: OMAPS00080543 - xreddymn |
48 Changes to display long SAT messages correctly on idle screen. | 48 Changes to display long SAT messages correctly on idle screen. |
49 | 49 |
50 May 15, 2006 DR: OMAPS00075852 - xreddymn | 50 May 15, 2006 DR: OMAPS00075852 - xreddymn |
51 Do not display messages on Idle screen when inside the dialer. | 51 Do not display messages on Idle screen when inside the dialer. |
52 | 52 |
53 Mar 14, 2006 DR: OMAPS00061468 - x0035544. | 53 Mar 14, 2006 DR: OMAPS00061468 - x0035544. |
54 Description: SAT 27.22.4.22.2 SET UP IDLE MODE TEXT (Icon support) fails | 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 | 55 Solution : Added additional parameter to the prototype of addSatMessage() to hold the display type |
56 for SAT idle text with icon support. | 56 for SAT idle text with icon support. |
57 | 57 |
58 Sept 15, 2005 REF: CRR 32410 x0021334 | 58 Sept 15, 2005 REF: CRR 32410 x0021334 |
59 Description: The keypad unlocks even though the unlocking sequence is not executed in quick succession. | 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. | 60 Fix: A new timer expiry event is added and handled. |
61 | 61 |
62 xrashmic 26 Aug, 2004 MMI-SPR-23931 | 62 xrashmic 26 Aug, 2004 MMI-SPR-23931 |
63 | 63 |
64 25/10/00 Original Condat(UK) BMI version. | 64 25/10/00 Original Condat(UK) BMI version. |
65 | 65 |
66 $End | 66 $End |
67 | 67 |
68 *******************************************************************************/ | 68 *******************************************************************************/ |
69 | 69 |
70 /* SPR#1428 - SH - New Editor changes */ | 70 /* SPR#1428 - SH - New Editor changes */ |
78 #include "Mmiicons.h" //for T_BITMAP | 78 #include "Mmiicons.h" //for T_BITMAP |
79 | 79 |
80 #ifndef _DEF_MMI_IDLE_H_ | 80 #ifndef _DEF_MMI_IDLE_H_ |
81 #define _DEF_MMI_IDLE_H_ | 81 #define _DEF_MMI_IDLE_H_ |
82 | 82 |
83 #define EDITOR_SIZE 41 /* SPR761 - SH - Moved from MmiIdle.c, changed to 41 */ | 83 #define EDITOR_SIZE 41 /* SPR761 - SH - Moved from MmiIdle.c, changed to 41 */ |
84 | 84 |
85 /* xreddymn OMAPS00080543 Jun-06-2006 | 85 /* xreddymn OMAPS00080543 Jun-06-2006 |
86 * Maximum length allowed for SAT messages on Idle Screen. | 86 * Maximum length allowed for SAT messages on Idle Screen. |
87 */ | 87 */ |
88 #define MAX_SATMSG_LEN 296 | 88 #define MAX_SATMSG_LEN 296 |
89 | 89 |
90 typedef enum | 90 typedef enum |
91 { /* REASONS */ | 91 { /* REASONS */ |
92 IdleNone = IdleDummy, /* no reason */ | 92 IdleNone = IdleDummy, /* no reason */ |
93 IdleNormal, /* normal idle mode */ | 93 IdleNormal, /* normal idle mode */ |
94 IdleUpdate, | 94 IdleUpdate, |
95 IdleSearchNetwork, | 95 IdleSearchNetwork, |
96 IdleNewSmsMessage, | 96 IdleNewSmsMessage, |
97 IdleActiveKeyPadLocked, | 97 IdleActiveKeyPadLocked, |
98 IdleNewCBImmediateMessage, | 98 IdleNewCBImmediateMessage, |
99 IdleNewCBNormalMessage | 99 IdleNewCBNormalMessage |
100 } E_IDLE_TYPE; /*a0393213 warnings removal-typedef name given*/ | 100 } E_IDLE_TYPE; /*a0393213 warnings removal-typedef name given*/ |
101 | 101 |
102 // Sept 15, 2005 REF: CRR 32410 x0021334 | 102 // Sept 15, 2005 REF: CRR 32410 x0021334 |
103 // Description: The keypad unlocks even though the unlocking sequence is not executed in quick succession. | 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 | 104 // Added a new enum member IDLE_KEYPAD_UNLOCK_TIMER_EXPIRED |
105 typedef enum | 105 typedef enum |
106 { /* REASONS */ | 106 { /* REASONS */ |
107 IDLE_NO_NETWORK, | 107 IDLE_NO_NETWORK, |
108 IDLE_UPDATE, | 108 IDLE_UPDATE, |
109 IDLE_NEW_SMS, | 109 IDLE_NEW_SMS, |
110 IDLE_ACTIVE_KEY_PAD_LOCKED, | 110 IDLE_ACTIVE_KEY_PAD_LOCKED, |
111 IDLE_DETAILS_NUMBER, | 111 IDLE_DETAILS_NUMBER, |
112 IDLE_DIALLING_INIT, | 112 IDLE_DIALLING_INIT, |
113 IDLE_INFO_ENDED, | 113 IDLE_INFO_ENDED, |
114 IDLE_KEYPAD_LOCKED_UPDATE, | 114 IDLE_KEYPAD_LOCKED_UPDATE, |
115 IDLE_START_DIALLING_NUMBER, | 115 IDLE_START_DIALLING_NUMBER, |
116 IDLE_KEYPAD_UNLOCK_TIMER_EXPIRED | 116 IDLE_KEYPAD_UNLOCK_TIMER_EXPIRED |
117 } E_IDLE_EVENTS; /*a0393213 warnings removal-typedef name given*/ | 117 } E_IDLE_EVENTS; /*a0393213 warnings removal-typedef name given*/ |
118 | 118 |
119 typedef enum | 119 typedef enum |
120 { | 120 { |
121 SHOWVERSION_INIT | 121 SHOWVERSION_INIT |
122 } Version_events; | 122 } Version_events; |
123 | 123 |
124 | 124 |
125 #define SHOW_CPRS_DEACTIV 0 | 125 #define SHOW_CPRS_DEACTIV 0 |
126 #define SHOW_CPRS_ACITV 1 | 126 #define SHOW_CPRS_ACITV 1 |
127 #define DONT_SHOW_CPRS 2 //not allowed to show any indication | 127 #define DONT_SHOW_CPRS 2 //not allowed to show any indication |
128 | 128 |
129 /* | 129 /* |
130 * The information related to every window must be encapsulated in such an structure | 130 * The information related to every window must be encapsulated in such an structure |
131 */ | 131 */ |
132 typedef struct | 132 typedef struct |
133 { | 133 { |
134 T_MMI_CONTROL mmi_control; // this a common parameter in every structure | 134 T_MMI_CONTROL mmi_control; // this a common parameter in every structure |
135 T_MFW_HND win; // windows handler, another common parameter | 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 | 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. | 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 */ | 138 #ifdef NEW_EDITOR /* SPR#1428 - SH - New Editor changes */ |
139 T_ED_DATA *editor; | 139 T_ED_DATA *editor; |
140 T_ED_DATA *editor_sat; | 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 | 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 */ | 142 #else /* NEW_EDITOR */ |
143 T_MFW_HND edt; | 143 T_MFW_HND edt; |
144 T_MFW_HND edt_sat; /* SPR759 - SH*/ | 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 | 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 */ | 146 #endif /* NEW_EDITOR */ |
147 T_MFW_HND info_win; | 147 T_MFW_HND info_win; |
148 T_MFW_HND klck_win; // Keypad Locked Window Handler | 148 T_MFW_HND klck_win; // Keypad Locked Window Handler |
149 int missedCalls; | 149 int missedCalls; |
150 int ems; //xrashmic 26 Aug, 2004 MMI-SPR-23931 | 150 int ems; //xrashmic 26 Aug, 2004 MMI-SPR-23931 |
151 UBYTE search; | 151 UBYTE search; |
152 UBYTE flagIdle; | 152 UBYTE flagIdle; |
153 USHORT nm_status; | 153 USHORT nm_status; |
154 char edt_buf[EDITOR_SIZE]; /* SPR761 - SH - Changed from a number to a constant */ | 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 */ | 155 #ifdef NEW_EDITOR /* SPR#1428 - SH - New Editor changes */ |
156 T_ED_ATTR editor_attr; /* Dialling editor */ | 156 T_ED_ATTR editor_attr; /* Dialling editor */ |
157 T_ED_ATTR editor_attr2; /* CB editor */ | 157 T_ED_ATTR editor_attr2; /* CB editor */ |
158 T_ED_ATTR editor_attr3; /* CLASS 0 SMS editor */ | 158 T_ED_ATTR editor_attr3; /* CLASS 0 SMS editor */ |
159 T_ED_ATTR editor_attr_sat; /* SAT & Homezone editor */ | 159 T_ED_ATTR editor_attr_sat; /* SAT & Homezone editor */ |
160 #else /* NEW_EDITOR */ | 160 #else /* NEW_EDITOR */ |
161 MfwEdtAttr edt_attr; //this one for the dialling editor | 161 MfwEdtAttr edt_attr; //this one for the dialling editor |
162 MfwEdtAttr edt_attr2; //this is for the CB editor | 162 MfwEdtAttr edt_attr2; //this is for the CB editor |
163 MfwEdtAttr edt_attr3; //this is for the (only CLASS 0) SMS editor | 163 MfwEdtAttr edt_attr3; //this is for the (only CLASS 0) SMS editor |
164 MfwEdtAttr edt_attr_sat; /* SPR759 - SH*/ | 164 MfwEdtAttr edt_attr_sat; /* SPR759 - SH*/ |
165 #endif /* NEW_EDITOR */ | 165 #endif /* NEW_EDITOR */ |
166 char imei[16]; | 166 char imei[16]; |
167 /* xreddymn OMAPS00075852 May-15-2006 | 167 /* xreddymn OMAPS00075852 May-15-2006 |
168 * This will be set to TRUE when dialer is being displayed. | 168 * This will be set to TRUE when dialer is being displayed. |
169 */ | 169 */ |
170 UBYTE dialer_visible; | 170 UBYTE dialer_visible; |
171 UBYTE new_sms; | 171 UBYTE new_sms; |
172 UBYTE new_cbch; | 172 UBYTE new_cbch; |
173 CHAR incoming_cb_msg[MAX_CBMSG_LEN]; | 173 CHAR incoming_cb_msg[MAX_CBMSG_LEN]; |
174 /*NM, p019*/ | 174 /*NM, p019*/ |
175 CHAR incoming_sms_msg[MAX_MSG_LEN_SGL]; | 175 CHAR incoming_sms_msg[MAX_MSG_LEN_SGL]; |
176 UBYTE right_key_pressed; | 176 UBYTE right_key_pressed; |
177 UBYTE silent_mode; | 177 UBYTE silent_mode; |
178 UBYTE clean_screen; | 178 UBYTE clean_screen; |
179 UBYTE ciphering; | 179 UBYTE ciphering; |
180 UBYTE starting_up; /*SPR#1662 - NH - New field for checking the start up status */ | 180 UBYTE starting_up; /*SPR#1662 - NH - New field for checking the start up status */ |
181 /* xreddymn OMAPS00080543 Jun-06-2006 */ | 181 /* xreddymn OMAPS00080543 Jun-06-2006 */ |
182 CHAR incoming_sat_msg[MAX_SATMSG_LEN]; /* SPR759 - SH*/ | 182 CHAR incoming_sat_msg[MAX_SATMSG_LEN]; /* SPR759 - SH*/ |
183 T_BITMAP* idleNetLogo; //Background for idle screen - NULL if no background. | 183 T_BITMAP* idleNetLogo; //Background for idle screen - NULL if no background. |
184 T_BITMAP * idleBgd; //Background image on the idle Screen | 184 T_BITMAP * idleBgd; //Background image on the idle Screen |
185 int defTextOffset; //start point for text (may vary with bitmap ?) | 185 int defTextOffset; //start point for text (may vary with bitmap ?) |
186 } T_idle; | 186 } T_idle; |
187 | 187 |
188 extern UBYTE KeyPadLock; | 188 extern UBYTE KeyPadLock; |
189 extern T_idle idle_data;/*Oct 13 2006, OMAPS00095266, a0393213(R.Prabakar)*/ | 189 extern T_idle idle_data;/*Oct 13 2006, OMAPS00095266, a0393213(R.Prabakar)*/ |
190 #ifdef FF_MMI_USBMS | 190 #ifdef FF_MMI_USBMS |
217 /* | 217 /* |
218 **Sending additional parameter display_type to hold the display type for SAT Idle text with icon display | 218 **Sending additional parameter display_type to hold the display type for SAT Idle text with icon display |
219 */ | 219 */ |
220 #ifdef FF_MMI_SAT_ICON | 220 #ifdef FF_MMI_SAT_ICON |
221 void addSatMessage(char *satMessage, UBYTE width, UBYTE height, | 221 void addSatMessage(char *satMessage, UBYTE width, UBYTE height, |
222 char *dst, UBYTE selfExplanatory, T_DISPLAY_TYPE display_type); | 222 char *dst, UBYTE selfExplanatory, T_DISPLAY_TYPE display_type); |
223 #else | 223 #else |
224 void addSatMessage(char *satMessage); /* SPR759 - SH*/ | 224 void addSatMessage(char *satMessage); /* SPR759 - SH*/ |
225 #endif | 225 #endif |
226 extern void showIMEI (T_MFW_HND win, char* IMEI); | 226 extern void showIMEI (T_MFW_HND win, char* IMEI); |
227 void idle_setBgdBitmap(int bmp); | 227 void idle_setBgdBitmap(int bmp); |
228 | 228 |
229 /* Added to remove warning Aug - 11 */ | 229 /* Added to remove warning Aug - 11 */ |