comparison src/aci2/bmi/MmiServices.h @ 3:93999a60b835

src/aci2, src/condat2: import of g23m/condat source pieces from TCS211
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 26 Sep 2016 00:29:36 +0000
parents
children
comparison
equal deleted inserted replaced
2:c41a534f33c6 3:93999a60b835
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: Services
15 $File: MmiServices.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: MmiServices.h
28 Jun 02,2004 CRR:13649 xpradipg-SASKEN
29 subject: CBA : Management of password
30 solution: password is promted on selecting activation/deactivation option as against the previous
31 case where it was shown up on selecting CallBarring option in the Network Services menu.
32 25/10/00 Original Condat(UK) BMI version.
33
34 $End
35
36 *******************************************************************************/
37
38 #ifndef _DEF_MMI_SERVICES_H_
39 #define _DEF_MMI_SERVICES_H_
40
41 /*
42 * External Interfaces
43 */
44
45
46
47 /*
48 * Top Window Defintions
49 */
50 T_MFW_HND services_create (T_MFW_HND parent_window);
51 void services_destroy (T_MFW_HND own_window);
52 void services (T_MFW_HND win, USHORT event, SHORT value, void * parameter);
53
54
55
56
57 /*
58 * Event definitions
59 */
60 #define SS_OK 100
61 #define SS_FAILED 101
62 #define SS_ERROR 102
63 #define SS_WAIT 103
64 #define SS_DO_CALL_DIVERT 104
65 #define SS_USSD_ENTER_NUMBER 105
66 #define SS_USSD_LIST_FULL 106
67
68 #define SS_CB_CNF 110
69
70 /* REASONS */
71 typedef enum
72 {
73 ServicesIdle = ServicesDummy,
74 ServicesOk,
75 ServicesFailed,
76 ServicesActCW,
77 ServicesDeactCW,
78 ServicesCheckCW,
79 ServicesCheckCW_OK,
80 ServicesActCF,
81 ServicesDeactCF,
82 ServicesCheckCF,
83 ServicesCFU_OK,
84 ServicesCB_OK,
85 ServicesExecCF,
86 ServicesDoCallDivert,
87 ServicesResShow,
88 ServicesActCLIR,
89 ServicesDeactCLIR,
90 ServicesCheckCLIR,
91 ServicesCheckCLI_OK,
92 ServicesIMEI_OK,
93 ServicesUSSD_REQ_OK,
94 ServicesUSSD_CNF_OK,
95 ServicesUSSDEnter,
96 ServicesUSSDEnter_Send,
97 ServicesUSSDNew,
98 ServicesUSSDSendEdit,
99 ServicesUSSDSendEdit_Ok,
100 ServicesUSSDAlreadyFull,
101 ServicesUSSDListMenu,
102 ServicesUSSDOptions,
103 ServicesUSSDChange,
104 ServicesUSSDChange_OK,
105 ServicesUSSDDelete,
106 ServicesOtherNumber,
107 SERVICES_INPUT_INIT,
108 SERVICES_INPUT_LEFT,
109 SERVICES_INPUT_RIGHT,
110 SERVICES_INPUT_CLEAR,
111 SERVICES_INPUT_DESTROY,
112 SERVICES_DO_CALL_VOICE_DIVERT,
113 ServicesError
114
115 };
116
117 #define SERVICESIDLE ServicesIdle
118 #define SERVICESOK ServicesOk
119 #define SERVICESFAILED ServicesFailed
120 #define SERVICESACTCW ServicesActCW
121 #define SERVICESDEACTCW ServicesDeactCW
122 #define SERVICESCHECKCW ServicesCheckCW
123 #define SERVICESCHECKCW_OK ServicesCheckCW_OK
124 #define SERVICESACTCF ServicesActCF
125 #define SERVICESDEACTCF ServicesDeactCF
126 #define SERVICESCHECKCF ServicesCheckCF
127 #define SERVICESCFU_OK ServicesCFU_OK
128 #define SERVICESCB_OK ServicesCB_OK
129 #define SERVICESEXECCF ServicesExecCF
130 #define SERVICESDOCALLDIVERT ServicesDoCallDivert
131 #define SERVICESRESSHOW ServicesResShow
132 #define SERVICESACTCLIR ServicesActCLIR
133 #define SERVICESDEACTCLIR ServicesDeactCLIR
134 #define SERVICESCHECKCLIR ServicesCheckCLIR
135 #define SERVICESCHECKCLI_OK ServicesCheckCLI_OK
136 #define SERVICESIMEI_OK ServicesIMEI_OK
137 #define SERVICESUSSD_REQ_OK ServicesUSSD_REQ_OK
138 #define SERVICESUSSD_CNF_OK ServicesUSSD_CNF_OK
139 #define SERVICESUSSDENTER ServicesUSSDEnter
140 #define SERVICESUSSDENTER_SEND ServicesUSSDEnter_Send
141 #define SERVICESUSSDNEW ServicesUSSDNew
142 #define SERVICESUSSDSENDEDIT ServicesUSSDSendEdit
143 #define SERVICESUSSDSENDEDIT_OK ServicesUSSDSendEdit_Ok
144 #define SERVICESUSSDALREADYFULL ServicesUSSDAlreadyFull
145 #define SERVICESUSSDLISTMENU ServicesUSSDListMenu
146 #define SERVICESUSSDOPTIONS ServicesUSSDOptions
147 #define SERVICESUSSDCHANGE ServicesUSSDChange
148 #define SERVICESUSSDCHANGE_OK ServicesUSSDChange_OK
149 #define SERVICESUSSDDELETE ServicesUSSDDelete
150 #define SERVICESERROR ServicesError
151
152
153 int servicesNumbers(MfwMnu* m, MfwMnuItem* i);
154 int servicesInfraRed(void);
155
156 int servicesActivateCLIR(MfwMnu* m, MfwMnuItem* i);
157 int servicesDeactivateCLIR(MfwMnu* m, MfwMnuItem* i);
158 int servicesCheckCLIR(MfwMnu* m, MfwMnuItem* i);
159
160 int servicesCheckCWaiting(MfwMnu* m, MfwMnuItem* i);
161 int servicesActivateCWaiting(MfwMnu* m, MfwMnuItem* i);
162 int servicesDeactivateCWaiting(MfwMnu* m, MfwMnuItem* i);
163 int servicesInterCFU(void);
164
165 int servicesActivateIRDA(MfwMnu* m, MfwMnuItem* i);
166 int servicesDeactivateIRDA(MfwMnu* m, MfwMnuItem* i);
167
168 T_MFW_HND servicesInit(T_MFW_HND parentWindow);
169 void servicesExit(void);
170 void services (T_MFW_HND win, USHORT event, SHORT value, void * parameter);
171
172 void servicesExec (int reason, MmiState next);
173
174
175
176
177 void servicesDivertActivate(void);
178 void servicesDivertDeactivate(void);
179 void servicesDivertCheck(void);
180 void servicesDivertDeactivate(void);
181 void servicesDivertVoice(void);
182 void servicesDivertFax(void);
183 void servicesDivertData(void);
184 void servicesDivertActionAll(void);
185 void servicesDivertBusy(void);
186 void servicesDivertNoAnswer(void);
187 void servicesDivertNotReachable(void);
188 void servicesDivertAllCalls(void);
189 void servicesDivertNoService(void);
190 void servicesDivertCancelAll(void);
191 void servicesDoVoiceMailNumber(void);
192 void servicesDoOtherNumber(void);
193
194 void servicesBarringAllOutgoing(void);
195 void servicesBarringInternational(void);
196 void servicesBarringInternationalHome(void);
197 void servicesBarringAllIncoming(void);
198 void servicesBarringIncomingRoaming(void);
199
200 void servicesCallBarringActivate(void);
201 void servicesCallBarringDeactivate(void);
202 void servicesCallBarringCheck(void);
203 void servicesCallBarringCancelAll(void);
204 //Jun 02,2004 CRR:13649 xpradipg-SASKEN - start
205 //Declaration for the functions added
206 void servicesCallBarringActivatePassword(void);
207 void servicesCallBarringDeactivatePassword(void);
208 void servicesCallBarringCancelAllPassword(void);
209 void enterOldCBPassword(void);
210 //Jun 02,2004 CRR:13649 xpradipg-SASKEN - end
211 void requestCBPassword(void);
212 //CQ-16432 start
213 void requestSatCBPassword(void);
214 //CQ-16432 end
215 void changeCBPassword(void);
216 void confirmNewCBPassword(void);
217 void enterNewCBPassword(void);
218
219
220 static void getCBPassword(char* pSSstring);
221 static void getCBType(char* pSSstring);
222 static void getCBAction(char * pSSstring);
223 static void CB_password_cb(T_MFW_HND win, UBYTE identifier, UBYTE reason);
224
225 #if 0
226 /* SH - This whole editor appears to be redundant */
227 void servicesUSSDDisplayList(void);
228 void servicesUSSDSend(void);
229 void servicesUSSDAddNew(void);
230 #endif
231
232 void featurePlaceholder(void); //SPR#1113 - DS - Added prototype for placeholder function for not-yet-implemented features.
233 #endif
234
235