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