FreeCalypso > hg > fc-magnetite
comparison src/ui3/bmi/mmiSat_i.h @ 420:e8ddbb0837ed
src/ui3: initial import of TCS3/LoCosto BMI & MFW code
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 21 Jan 2018 03:09:00 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
419:59143cd42ec7 | 420:e8ddbb0837ed |
---|---|
1 | |
2 /******************************************************************************* | |
3 | |
4 CONDAT (UK) | |
5 | |
6 ******************************************************************************** | |
7 | |
8 This software product is the property of Condat (UK) Ltd and may not be | |
9 disclosed to any third party without the express permission of the owner. | |
10 | |
11 ******************************************************************************** | |
12 | |
13 $Project name: Basic MMI | |
14 $Project code: BMI (6349) | |
15 $Module: MMI | |
16 $File: MmiSat_I.h | |
17 $Revision: 1.0 | |
18 | |
19 $Author: Condat(UK) | |
20 $Date: 25/10/00 | |
21 | |
22 ******************************************************************************** | |
23 | |
24 Description: | |
25 | |
26 MMI SIM toolkit internal/private interface | |
27 | |
28 | |
29 ******************************************************************************** | |
30 | |
31 $History: MmiSat_I.h | |
32 | |
33 Nov 07, 2006 ER:OMAPS00070661 R.Prabakar(a0393213) | |
34 R99 network compliancy : Implemented Language Notification and Provide Local Information (Language setting) | |
35 SAT proactive commands and Language Selection SAT event | |
36 | |
37 Mar 11, 2006 REF:DR:OMAPS00061467 x0035544 | |
38 Description: 27.22.4.13.3 SET UP CALL (display of icons) fails. | |
39 Solution: created and defined the new structure called T_SAT_IconInfo at the structure | |
40 T_SAT_call_setup_parameter to support SAT icon data. | |
41 | |
42 | |
43 25/10/00 Original Condat(UK) BMI version. | |
44 | |
45 $End | |
46 | |
47 *******************************************************************************/ | |
48 | |
49 #ifndef _DEF_MMI_SAT_I_H_ | |
50 #define _DEF_MMI_SAT_I_H_ | |
51 | |
52 #include "mfw_mfw.h" | |
53 #include "mfw_sat.h" | |
54 #include "MmiDummy.h" | |
55 | |
56 | |
57 #define THREE_SECS 0x0BB8 /* 3000 milliseconds. */ | |
58 #define FIVE_SECS 0x1388 /* 5000 milliseconds. */ | |
59 #define TEN_SECS 0x2710 /* 10000 milliseconds. */ | |
60 #define TWENTY_SECS 0x4E20 /* 20000 milliseconds. */ | |
61 #define TWO_MIN 0x1D4C0 /* 2 min */ | |
62 #define FOREVER 0xFFFF /* Infinite time period. */ | |
63 //x0035544 Feb 06, 2006 DR:OMAPS00061467 | |
64 #ifdef FF_MMI_SAT_ICON | |
65 typedef struct | |
66 { /* SAT ICON DATA */ | |
67 U8 width; /* SAT Icon width */ | |
68 U8 height; /* SAT Icon height */ | |
69 char* dst; /* Icon data */ | |
70 BOOL selfExplanatory; | |
71 } T_SAT_IconInfo; | |
72 #endif | |
73 | |
74 typedef struct | |
75 { | |
76 S16 callId; /* id of new call */ | |
77 S32 redialTime; /* maximal redial time */ | |
78 char * TextString; /* name of called party */ | |
79 char * TextString2; /* alpha id 2 - use on "calling" screen */ | |
80 //x0035544 Feb 06, 2006 DR:OMAPS00061467 | |
81 #ifdef FF_MMI_SAT_ICON | |
82 T_SAT_IconInfo IconInfo; /*Icon data */ | |
83 T_SAT_IconInfo IconInfo2; | |
84 #endif | |
85 | |
86 } T_SAT_call_setup_parameter; | |
87 | |
88 /* | |
89 * SAT Command qualifier | |
90 */ | |
91 #define SAT_F_CALL_IF_NOT_BUSY (U8)0x00 | |
92 #define SAT_F_CALL_IF_NOT_BUSY_REDIAL (U8)0x01 | |
93 #define SAT_F_CALL_PUT_ON_HOLD (U8)0x02 | |
94 #define SAT_F_CALL_PUT_ON_HOLD_REDIAL (U8)0x03 | |
95 #define SAT_F_CALL_DISCONNECT (U8)0x04 | |
96 #define SAT_F_CALL_DISCONNECT_REDIAL (U8)0x05 | |
97 | |
98 #define SAT_M_SMS_PACKING (U8)0x01 | |
99 | |
100 #define SAT_M_TEXT_HIGH_PRIO (U8)0x01 | |
101 #define SAT_M_TEXT_WAIT (U8)0x80 | |
102 | |
103 #define SAT_M_INKEY_ALPHA (U8)0x01 | |
104 #define SAT_M_INKEY_UCS2 (U8)0x02 | |
105 #define SAT_M_INKEY_YES_NO (U8)0x04 | |
106 #define SAT_M_INKEY_HELP_AVAIL (U8)0x80 | |
107 | |
108 #define SAT_M_INPUT_ALPHA (U8)0x01 | |
109 #define SAT_M_INPUT_UCS2 (U8)0x02 | |
110 #define SAT_M_INPUT_NOECHO (U8)0x04 | |
111 #define SAT_M_INPUT_PACKING (U8)0x08 | |
112 #define SAT_M_INPUT_HELP_AVAIL (U8)0x80 | |
113 | |
114 #define SAT_M_SELECT_TYPE_ENA (U8)0x01 | |
115 #define SAT_M_SELECT_PRESENT_NAV (U8)0x02 | |
116 #define SAT_M_SELECT_HELP_AVAIL (U8)0x80 | |
117 | |
118 #define SAT_M_SETUP_HELP_AVAIL (U8)0x80 | |
119 | |
120 /* | |
121 * SAT Event definitions (NOTE: corresponding MfwSat* is a flag bitfield) | |
122 */ | |
123 typedef enum SAT_EVENTS { | |
124 SAT_UNKNOWN = 100, /* event not handled by MMI */ | |
125 SAT_DISPLAY_TEXT, /* display string, destroy after timeout */ | |
126 SAT_DISPLAY_TEXT_WAIT,/* display string, wait for user response */ | |
127 SAT_GET_KEY, /* get user keystroke */ | |
128 SAT_GET_STRING, /* get user input */ | |
129 SAT_PLAY_TONE, /* play audio tone */ | |
130 SAT_SETUP_MENU, /* setup toolkit menu */ | |
131 SAT_SELECT_ITEM, /* select menu item */ | |
132 SAT_SEND_SMS, /* send short message */ | |
133 SAT_SEND_SS, /* send service command */ | |
134 SAT_SETUP_CALL, /* setup a call */ | |
135 SAT_CALL_RESULT, /* call control result */ | |
136 SAT_CALL_ALERT, /* call control alerting */ | |
137 SAT_SESSION_END, /* session terminated */ | |
138 SAT_RETURN, /* SETUP_MENU shall recreate */ | |
139 SAT_EXIT, /* SETUP_MENU shall selfdestroy */ | |
140 SAT_CALL_REDIAL, /* attempt a redial */ | |
141 SAT_REFRESH, /* refresh SIM fields */ | |
142 SAT_CALL_END, /* clean up after call end */ | |
143 SAT_DESTROY_WINDOW, /* sbh - destroy the current window */ | |
144 SAT_IDLE_TEXT, /* sbh - display text on idle screen */ | |
145 SAT_SET_EVENTS, /* sbh - request when events will happen */ | |
146 SAT_SEND_DTMF, /* send service command */ | |
147 | |
148 /* SPR#1786 - DS - SAT Class E Events */ | |
149 SAT_OPEN_CHANNEL, | |
150 SAT_CLOSE_CHANNEL, | |
151 SAT_SEND_DATA, | |
152 SAT_RECEIVE_DATA | |
153 #ifdef FF_MMI_R99_SAT_LANG | |
154 ,SAT_LANGUAGE_NOTIFY, /*OMAPS00070661(SAT-Lang Notifiy) a0393213(R.Prabakar)*/ | |
155 SAT_LOCAL_INFO /*OMAPS00070661(SAT-Local Info) a0393213(R.Prabakar)*/ | |
156 #endif | |
157 #ifdef FF_WAP | |
158 ,SAT_LAUNCH_BROWSER /*Class C Launch Browser event */ | |
159 #endif | |
160 } T_SAT_EVENTS; | |
161 | |
162 /* | |
163 * SAT defintions for returning results with sat_done() | |
164 */ | |
165 #define SAT_ERR_INDEX 0 | |
166 #define SAT_AI_INDEX 1 | |
167 typedef U8 T_SAT_RES[2]; | |
168 | |
169 /* | |
170 * SAT internal prototypes | |
171 */ | |
172 extern T_MFW_HND sat_display_text_create (T_MFW_HND parent_window); | |
173 extern T_MFW_HND sat_play_tone_create (T_MFW_HND parent_window); | |
174 extern T_MFW_HND sat_get_string_create (T_MFW_HND parent_window); | |
175 extern T_MFW_HND sat_get_key_create (T_MFW_HND parent_window); | |
176 extern T_MFW_HND sat_setup_menu_start(T_SAT_CMD * sat_command); | |
177 extern T_MFW_HND sat_select_item_create (T_MFW_HND parent); | |
178 extern T_MFW_HND sat_call_setup_create(T_MFW_HND parent_window); | |
179 extern int sat_win_cb (T_MFW_EVENT event, T_MFW_WIN * win); | |
180 extern int sat_kbd_cb (T_MFW_EVENT event, T_MFW_KBD * key); | |
181 extern void sat_set_setup_menu_win(T_MFW_HND win); | |
182 extern void sat_set_call_setup_win(T_MFW_HND win); | |
183 | |
184 extern void sat_set_setup_menu_listmnu_win(T_MFW_HND win); | |
185 extern T_MFW_HND sat_get_setup_menu_listmnu_win(void); | |
186 | |
187 extern BOOL g_SATsession_is_active; | |
188 | |
189 /* | |
190 * SAT string conversion routines | |
191 */ | |
192 extern char * sat_create_TEXT_ASCIIZ (T_SAT_TXT * txt); | |
193 extern char * sat_create_ITEM_ASCIIZ (SatItem * item); | |
194 extern void sat_destroy_TEXT_ASCIIZ (char * str); | |
195 #define sat_destroy_ITEM_ASCIIZ sat_destroy_TEXT_ASCIIZ | |
196 | |
197 /*MC SPR 940/2uncommented unicode function, and changed return type*/ | |
198 extern char* sat_create_TEXT_UCODE (T_SAT_TXT * txt); | |
199 /*MC end*/ | |
200 /*MC, SPR 940/2 uncommented unicode function and changed parameter type*/ | |
201 extern void sat_destroy_TEXT_UCODE (char* str); | |
202 /*MC end */ | |
203 #ifdef INTEGRATION_SEPT00 | |
204 #else /* INTEGRATION_SEPT00 */ | |
205 | |
206 #ifndef _WCHAR_T | |
207 #define _WCHAR_T | |
208 typedef unsigned short wchar_t; // wide unicaode character type | |
209 #endif /* _WCHAR_T */ | |
210 #include "mfw_ss.h" /* T_MFW_DCS */ | |
211 | |
212 typedef ListMenuData ListMenuData_t; | |
213 | |
214 #define E_EDIT_READ_ONLY_MODE READ_ONLY_MODE | |
215 #define E_EDIT_DIGITS_MODE DIGITS_MODE | |
216 #define E_EDIT_ALPHA_MODE ALPHA_MODE | |
217 #endif /* INTEGRATION_SEPT00 */ | |
218 | |
219 extern void sat_gsm_to_ascii (char * ascii_string, char * gsm_string, U16 length); | |
220 extern void sat_ascii_to_gsm (char * gsm_string, char * ascii_string, U16 length); | |
221 extern void sat_ascii_to_ucode (wchar_t * UCS2_chars, char * ascii_string, U16 length); | |
222 extern void sat_ucode_to_ascii (char * ascii_string, wchar_t * UCS2_chars, U16 length); | |
223 extern void sat_TEXT_to_ASCIIZ (char * destination, T_SAT_TXT * txt); | |
224 | |
225 #endif /* _DEF_MMI_SAT_I_H_ */ |