comparison src/ui3/bmi/mmiCPHS.h @ 421:6a4d9f47793e

src/ui3/bmi: file renames to make the case consistent
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 21 Jan 2018 03:28:53 +0000
parents src/ui3/bmi/MmiCPHS.h@e8ddbb0837ed
children
comparison
equal deleted inserted replaced
420:e8ddbb0837ed 421:6a4d9f47793e
1 #ifndef _MMI_CPHS_H_
2 #define _MMI_CPHS_H_
3
4 /*******************************************************************************
5
6 CONDAT (UK)
7
8 ********************************************************************************
9
10 This software product is the property of Condat (UK) Ltd and may not be
11 disclosed to any third party without the express permission of the owner.
12
13 ********************************************************************************
14
15 $Project name: Basic MMI
16 $Project code: BMI (6349)
17 $Module: CPHS
18 $File: MmiCPHS.h
19 $Revision: 1.0
20
21 $Author: Condat(UK)
22 $Date: 25/01/02
23
24 ********************************************************************************
25
26 Description:
27
28 Handles CPHS functionality
29
30
31 ********************************************************************************
32 $History: MmiCPHS.h
33
34 May 30, 2006 DR: OMAPS00070657 x0pleela
35 Description: CPHS feature on Locosto-Lite
36 Solution: For ALS feature,
37 Added prototypes for the functions cphs_edit_line1(), cphs_edit_line2(),
38 mmi_cphs_set_als_value(), mmi_cphs_get_als_value( void ),
39 T_MFW_LINE_INDEX mmi_get_als_selectedLine( void)
40
41 // May 31, 2004 REF: CRR 17291 xvilliva
42 // Bug: After power cycle the setting of the used line which have been made
43 // from the BMI is lost.
44 // Fix: The global variable g_Pin2 is declared here.
45
46 25/01/02 Original Condat(UK) BMI version.
47
48 $End
49
50 *******************************************************************************/
51 #include "mfw_cphs.h"
52 #include "mfw_mfw.h"
53 #include "MmiBookShared.h"
54 #include "mfw_mnu.h"
55
56 typedef enum
57 {
58 LINE1,
59 LINE2,
60 FAX,
61 DATA
62 } ALS_lines;
63 #define VOICEMAIL 0x7070
64 typedef enum
65 {
66 MAILBOX,
67 CHECK_STATUS
68 } T_CPHS_FUNCS;
69
70
71 #ifdef FF_CPHS_REL4
72 typedef enum
73 {
74 SRV_CHV1_Disable = 1, /* #1 CHV1 disable function */
75 SRV_ADN, /* #2 Abbreviated Dialling Numbers (ADN) */
76 SRV_FDN, /* #3 Fixed Dialling Numbers (FDN) */
77 SRV_SMS_Storage, /* #4 Short Message Storage (SMS) */
78 SRV_AOC, /* #5 Advice of Charge (AoC) */
79 SRV_CCP, /* #6 Capability Configuration Parameters (CCP) */
80 SRV_PLMN_Select, /* #7 PLMN selector */
81 SRV_RFU1, /* #8 RFU */
82 SRV_MSISDN, /* #9 MSISDN */
83 SRV_EXT1, /* #10 Extension1 */
84 SRV_EXT2, /* #11 Extension2 */
85 SRV_SMS_Parms, /* #12 SMS Parameters */
86 SRV_LDN, /* #13 Last Number Dialled (LND) */
87 SRV_CBM_Ident, /* #14 Cell Broadcast Message Identifier */
88 SRV_GrpLvl1, /* #15 Group Identifier Level 1 */
89 SRV_GrpLvl2, /* #16 Group Identifier Level 2 */
90 SRV_SrvProvName, /* #17 Service Provider Name */
91 SRV_SDN, /* #18 Service Dialling Numbers (SDN) */
92 SRV_EXT3, /* #19 Extension3 */
93 SRV_RFU2, /* #20 RFU */
94 SRV_VCGS, /* #21 VGCS Group Identifier List (EFVGCS and EFVGCSS) */
95 SRV_VBS, /* #22 VBS Group Identifier List (EFVBS and EFVBSS) */
96 SRV_EMLPP, /* #23 enhanced Multi Level Precedence and Pre emption Service */
97 SRV_AutoEMLPP, /* #24 Automatic Answer for eMLPP */
98 SRV_DtaDownlCB, /* #25 Data download via SMS CB */
99 SRV_DtaDownlPP, /* #26 Data download via SMS PP */
100 SRV_MnuSel, /* #27 Menu selection */
101 SRV_CalCntrl, /* #28 Call control */
102 SRV_ProActSIM, /* #29 Proactive SIM */
103 SRV_CBMIdRnge, /* #30 Cell Broadcast Message Identifier Ranges */
104 SRV_BDN, /* #31 Barred Dialling Numbers (BDN) */
105 SRV_EXT4, /* #32 Extension4 */
106 SRV_DePersCK, /* #33 De personalization Control Keys */
107 SRV_CoOpNwL, /* #34 Co operative Network List */
108 SRV_SMS_StatRep, /* #35 Short Message Status Reports */
109 SRV_NwIndAlMS, /* #36 Network's indication of alerting in the MS */
110 SRV_MOSMCtrlSIM, /* #37 Mobile Originated Short Message control by SIM */
111 SRV_GPRS, /* #38 GPRS */
112 SRV_RFU3, /* #39 Image (IMG) */
113 SRV_RFU4, /* #40 SoLSA (Support of Local Service Area) */
114 SRV_USSDsupportInCC, /* #41 USSD string data object supported in Call Control */
115 SRV_No_42, /* #42 RUN AT COMMAND command */
116 SRV_No_43, /* #43 User controlled PLMN Selector with Access Technology */
117 SRV_No_44, /* #44 Operator controlled PLMN Selector with Access Technology */
118 SRV_No_45, /* #45 HPLMN Selector with Access Technology */
119 SRV_No_46, /* #46 CPBCCH Information */
120 SRV_No_47, /* #47 Investigation Scan */
121 SRV_No_48, /* #48 Extended Capability Configuration Parameters */
122 SRV_No_49, /* #49 MExE */
123 SRV_No_50, /* #50 RPLMN last used Access Technology */
124 SRV_PNN, /* #51 PLMN Network Name */
125 SRV_OPL, /* #52 Operator PLMN List */
126 SRV_No_53, /* #53 Mailbox Dialling Numbers */
127 SRV_No_54, /* #54 Message Waiting Indication Status */
128 SRV_No_55, /* #55 Call Forwarding Indication Status */
129 SRV_No_56, /* #56 Service Provider Display Information */
130 SRV_No_57, /* #57 Multimedia Messaging Service (MMS) */
131 SRV_No_58, /* #58 Extension 8 */
132 SRV_No_59 /* #59 MMS User Connectivity Parameters */
133 } T_SIM_SRV;
134 #endif
135
136 //xvilliva SPR17291
137 extern char g_pin2[MAX_PIN+1];
138
139 /*a0393213 cphs rel4*/
140 #ifdef FF_CPHS_REL4
141 extern T_MFW_CPHS_REL4_DV_STAT call_forwarding_status_rel4;
142 extern BOOL isCFISFilePresent();
143 #endif
144
145 //initialise CPHS
146 T_MFW_HND mmi_cphs_init(void); // RAVI
147
148 //call mailbox numbers
149 int menu_cphs_call_mailbox_number(MfwMnu* m, MfwMnuItem* i);
150
151 //edit mailbox numbers
152 int menu_cphs_edit_mailbox_number(MfwMnu* m, MfwMnuItem* i);
153
154 //get operator name from CPHS SIM
155 T_MFW_CPHS_OP_NAME* CphsRequestOperatorName(void); // RAVI
156
157 //returns TRUE if present
158 UBYTE CphsPresent(void); // RAVI
159
160 //returns TRUE if SIM configured for mailbox number
161 USHORT CphsMailboxPresent(void /* struct MfwMnuTag *m, struct MfwMnuAttrTag *ma, struct MfwMnuItemTag *mi*/ ); // RAVI
162
163 //Get voicemail status, returns status of line requested in parameter
164 T_MFW_CFLAG_STATUS GetCphsVoicemailStatus(UBYTE line);
165
166 //get call forwarding status of specified line
167 T_MFW_CFLAG_STATUS GetCphsDivertStatus(UBYTE line);
168
169 //get current enabled ALS line
170 int cphs_als_status(MfwMnu* m, MfwMnuItem* i);
171
172 #ifdef FF_CPHS_REL4
173 int build_profile_list(MfwMnu* m, MfwMnuItem* i);
174 int build_profile_list1(MfwMnu* m, MfwMnuItem* i);
175 USHORT MSPPresent( struct MfwMnuTag *m, struct MfwMnuAttrTag *ma, struct MfwMnuItemTag *mi );
176 int item_flag_isMWISFilePresent(struct MfwMnuTag *m, struct MfwMnuAttrTag *ma, struct MfwMnuItemTag *mi);
177 int item_flag_isMBDNFileNotPresent(struct MfwMnuTag *m, struct MfwMnuAttrTag *ma, struct MfwMnuItemTag *mi);
178 int item_flag_isMBDNFilePresent(struct MfwMnuTag *m, struct MfwMnuAttrTag *ma, struct MfwMnuItemTag *mi);
179 int menu_cphs_rel4_show_mailbox_number(MfwMnu* m, MfwMnuItem* i);
180 BOOL isMWISFilePresent(void);
181 BOOL isMBDNFilePresent(void);
182 #endif
183
184 // Set the current CPHS ALS lock status
185 int cphs_lock_als(MfwMnu* m, MfwMnuItem* i);
186 int cphs_unlock_als(MfwMnu* m, MfwMnuItem* i);
187
188 //Set ALS line to Line 1
189 int cphs_line1_select(MfwMnu* m, MfwMnuItem* i);
190
191 //Set ALS line to Line 2
192 int cphs_line2_select(MfwMnu* m, MfwMnuItem* i);
193
194 //Display any info numbers
195 int InfoNumbers( MfwMnu *m, MfwMnuItem *i );
196
197 //Pop up a dialogue
198 void ShowMessage(T_MFW_HND win, USHORT TextId1, USHORT TextId2);
199
200 //check if ALS
201 USHORT ALSPresent( struct MfwMnuTag *m, struct MfwMnuAttrTag *ma, struct MfwMnuItemTag *mi );
202 USHORT CphsALSUnlocked( struct MfwMnuTag *m, struct MfwMnuAttrTag *ma, struct MfwMnuItemTag *mi );
203 USHORT CphsALSLocked( struct MfwMnuTag *m, struct MfwMnuAttrTag *ma, struct MfwMnuItemTag *mi );
204
205 //check if any info nums
206 USHORT InfoNumbersPresent( struct MfwMnuTag *m, struct MfwMnuAttrTag *ma, struct MfwMnuItemTag *mi );
207 void mmi_cphs_refresh(void); // RAVI
208 UBYTE GetAlsLine(void); // RAVI
209
210 #ifdef FF_CPHS
211 //x0pleela 25 May, 2006 DR: OMAPS00070657
212 int cphs_edit_line1(MfwMnu* m, MfwMnuItem* i);
213 int cphs_edit_line2(MfwMnu* m, MfwMnuItem* i);
214
215 //x0pleela 29 May, 2006 DR: OMAPS00070657
216 void mmi_cphs_set_als_value( UBYTE als_val);
217 UBYTE mmi_cphs_get_als_value( void );
218 T_MFW_LINE_INDEX mmi_get_als_selectedLine( void);
219 #endif
220
221 #endif