FreeCalypso > hg > leo2moko-debug
comparison g23m/condat/ms/src/bmi/MmiIdle.h @ 0:509db1a7b7b8
initial import: leo2moko-r1
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 01 Jun 2015 03:24:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:509db1a7b7b8 |
---|---|
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 | |
29 Mar 14, 2006 DR: OMAPS00061468 - x0035544. | |
30 Description: SAT 27.22.4.22.2 SET UP IDLE MODE TEXT (Icon support) fails | |
31 Solution : Added additional parameter to the prototype of addSatMessage() to hold the display type | |
32 for SAT idle text with icon support. | |
33 | |
34 Sept 15, 2005 REF: CRR 32410 x0021334 | |
35 Description: The keypad unlocks even though the unlocking sequence is not executed in quick succession. | |
36 Fix: A new timer expiry event is added and handled. | |
37 | |
38 xrashmic 26 Aug, 2004 MMI-SPR-23931 | |
39 | |
40 25/10/00 Original Condat(UK) BMI version. | |
41 | |
42 $End | |
43 | |
44 *******************************************************************************/ | |
45 | |
46 /* SPR#1428 - SH - New Editor changes */ | |
47 #ifdef NEW_EDITOR | |
48 #include "ATBCommon.h" | |
49 #include "ATBDisplay.h" | |
50 #include "ATBEditor.h" | |
51 #else | |
52 #include "mfw_edt.h" | |
53 #endif | |
54 #include "Mmiicons.h" //for T_BITMAP | |
55 | |
56 #ifndef _DEF_MMI_IDLE_H_ | |
57 #define _DEF_MMI_IDLE_H_ | |
58 | |
59 #define EDITOR_SIZE 41 /* SPR761 - SH - Moved from MmiIdle.c, changed to 41 */ | |
60 | |
61 typedef enum | |
62 { /* REASONS */ | |
63 IdleNone = IdleDummy, /* no reason */ | |
64 IdleNormal, /* normal idle mode */ | |
65 IdleUpdate, | |
66 IdleSearchNetwork, | |
67 IdleNewSmsMessage, | |
68 IdleActiveKeyPadLocked, | |
69 IdleNewCBImmediateMessage, | |
70 IdleNewCBNormalMessage | |
71 }; | |
72 | |
73 // Sept 15, 2005 REF: CRR 32410 x0021334 | |
74 // Description: The keypad unlocks even though the unlocking sequence is not executed in quick succession. | |
75 // Added a new enum member IDLE_KEYPAD_UNLOCK_TIMER_EXPIRED | |
76 typedef enum | |
77 { /* REASONS */ | |
78 IDLE_NO_NETWORK, | |
79 IDLE_UPDATE, | |
80 IDLE_NEW_SMS, | |
81 IDLE_ACTIVE_KEY_PAD_LOCKED, | |
82 IDLE_DETAILS_NUMBER, | |
83 IDLE_DIALLING_INIT, | |
84 IDLE_INFO_ENDED, | |
85 IDLE_KEYPAD_LOCKED_UPDATE, | |
86 IDLE_START_DIALLING_NUMBER, | |
87 IDLE_KEYPAD_UNLOCK_TIMER_EXPIRED | |
88 }; | |
89 | |
90 typedef enum | |
91 { | |
92 SHOWVERSION_INIT | |
93 } Version_events; | |
94 | |
95 | |
96 #define SHOW_CPRS_DEACTIV 0 | |
97 #define SHOW_CPRS_ACITV 1 | |
98 #define DONT_SHOW_CPRS 2 //not allowed to show any indication | |
99 | |
100 /* | |
101 * The information related to every window must be encapsulated in such an structure | |
102 */ | |
103 typedef struct | |
104 { | |
105 T_MMI_CONTROL mmi_control; // this a common parameter in every structure | |
106 T_MFW_HND win; // windows handler, another common parameter | |
107 T_MFW_HND kbd; // To control all of the events, 2 handler are needed kbd that handles the key press | |
108 T_MFW_HND kbd_long; // event and kbd_long that handles the release and long key event. | |
109 #ifdef NEW_EDITOR /* SPR#1428 - SH - New Editor changes */ | |
110 T_ED_DATA *editor; | |
111 T_ED_DATA *editor_sat; | |
112 #else /* NEW_EDITOR */ | |
113 T_MFW_HND edt; | |
114 T_MFW_HND edt_sat; /* SPR759 - SH*/ | |
115 #endif /* NEW_EDITOR */ | |
116 T_MFW_HND info_win; | |
117 T_MFW_HND klck_win; // Keypad Locked Window Handler | |
118 int missedCalls; | |
119 int ems; //xrashmic 26 Aug, 2004 MMI-SPR-23931 | |
120 UBYTE search; | |
121 UBYTE flagIdle; | |
122 USHORT nm_status; | |
123 char edt_buf[EDITOR_SIZE]; /* SPR761 - SH - Changed from a number to a constant */ | |
124 #ifdef NEW_EDITOR /* SPR#1428 - SH - New Editor changes */ | |
125 T_ED_ATTR editor_attr; /* Dialling editor */ | |
126 T_ED_ATTR editor_attr2; /* CB editor */ | |
127 T_ED_ATTR editor_attr3; /* CLASS 0 SMS editor */ | |
128 T_ED_ATTR editor_attr_sat; /* SAT & Homezone editor */ | |
129 #else /* NEW_EDITOR */ | |
130 MfwEdtAttr edt_attr; //this one for the dialling editor | |
131 MfwEdtAttr edt_attr2; //this is for the CB editor | |
132 MfwEdtAttr edt_attr3; //this is for the (only CLASS 0) SMS editor | |
133 MfwEdtAttr edt_attr_sat; /* SPR759 - SH*/ | |
134 #endif /* NEW_EDITOR */ | |
135 char imei[16]; | |
136 UBYTE new_sms; | |
137 UBYTE new_cbch; | |
138 CHAR incoming_cb_msg[MAX_CBMSG_LEN]; | |
139 /*NM, p019*/ | |
140 CHAR incoming_sms_msg[MAX_MSG_LEN_SGL]; | |
141 UBYTE right_key_pressed; | |
142 UBYTE silent_mode; | |
143 UBYTE clean_screen; | |
144 UBYTE ciphering; | |
145 UBYTE starting_up; /*SPR#1662 - NH - New field for checking the start up status */ | |
146 CHAR incoming_sat_msg[MAX_CBMSG_LEN]; /* SPR759 - SH*/ | |
147 T_BITMAP* idleNetLogo; //Background for idle screen - NULL if no background. | |
148 T_BITMAP * idleBgd; //Background image on the idle Screen | |
149 int defTextOffset; //start point for text (may vary with bitmap ?) | |
150 } T_idle; | |
151 | |
152 extern UBYTE KeyPadLock; | |
153 | |
154 /* PROTOTYPES */ | |
155 extern void wake_up_rr(void); | |
156 | |
157 void idleInit (MfwHnd parent); | |
158 void idleExit (void); | |
159 void idleExec (int reason, MmiState next); | |
160 void idleEvent(int reason); | |
161 void idleDialBuffer(char* dialBuffer); | |
162 | |
163 MfwHnd idle_get_window(void); | |
164 | |
165 int idleIsFocussed(void); | |
166 | |
167 void idle_set_starting_up(UBYTE set); | |
168 | |
169 void windowsUpdate(void); | |
170 | |
171 void addMissedCall(void); | |
172 void addNewEMS(void);//xrashmic 26 Aug, 2004 MMI-SPR-23931 | |
173 void addCBCH(char* cbch_string, UBYTE type); | |
174 void statusCBCH(UBYTE status); | |
175 | |
176 // 09-Dec-2005, Shashi Shekar B.S., a0876501, START | |
177 //x0035544 Mar 14, 2006 DR:OMAPS00061468 | |
178 /* | |
179 **Sending additional parameter display_type to hold the display type for SAT Idle text with icon display | |
180 */ | |
181 #ifdef FF_MMI_SAT_ICON | |
182 void addSatMessage(char *satMessage, UBYTE width, UBYTE height, | |
183 char *dst, UBYTE selfExplanatory, T_DISPLAY_TYPE display_type); | |
184 #else | |
185 void addSatMessage(char *satMessage); /* SPR759 - SH*/ | |
186 #endif | |
187 extern void showIMEI (T_MFW_HND win, char* IMEI); | |
188 void idle_setBgdBitmap(int bmp); | |
189 | |
190 #endif | |
191 |