|
1 /* |
|
2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Various definitions |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef NWDEFS_H |
|
21 #define NWDEFS_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32std.h> |
|
25 #include "PsetConstants.h" |
|
26 |
|
27 // DATA TYPES |
|
28 //basic service groups |
|
29 enum TBasicServiceGroups |
|
30 { |
|
31 EUnknown = -1, //this is not part of GSM standard |
|
32 // Phone settings updates this automatically to ETelephony or to EAltTele, |
|
33 // depending on if ALS is supported, and which line is active. |
|
34 EAllTeleAndBearer = 0, |
|
35 EAllTele = 10, |
|
36 ETelephony = 11, |
|
37 EAllDataTele = 12, |
|
38 EFax = 13, |
|
39 ESms = 16, |
|
40 EAllDataExSms = 18, //voice broadcast in gsm 02.30 v. 7.1.0 |
|
41 EAllTeleExcSms = 19, |
|
42 |
|
43 EAllPlmnTele = 50, |
|
44 EPlmnTele1 = 51, |
|
45 EPlmnTele2 = 52, |
|
46 EPlmnTele3 = 53, |
|
47 EPlmnTele4 = 54, |
|
48 EPlmnTele5 = 55, |
|
49 EPlmnTele6 = 56, |
|
50 EPlmnTele7 = 57, |
|
51 EPlmnTele8 = 58, |
|
52 EPlmnTele9 = 59, |
|
53 EPlmnTeleA = 60, |
|
54 EPlmnTeleB = 61, |
|
55 EPlmnTeleC = 62, |
|
56 EPlmnTeleD = 63, |
|
57 EPlmnTeleE = 64, |
|
58 EPlmnTeleF = 65, |
|
59 |
|
60 EAllBearer = 20, |
|
61 EAllAsync = 21, |
|
62 EAllSync = 22, |
|
63 ESyncData = 24, |
|
64 EAsyncData = 25, |
|
65 EPacketData = 26, |
|
66 EPadAccess = 27, |
|
67 |
|
68 EAllPlmnBearer = 70, |
|
69 EPlmnBearerServ1 = 71, |
|
70 EPlmnBearerServ2 = 72, |
|
71 EPlmnBearerServ3 = 73, |
|
72 EPlmnBearerServ4 = 74, |
|
73 EPlmnBearerServ5 = 75, |
|
74 EPlmnBearerServ6 = 76, |
|
75 EPlmnBearerServ7 = 77, |
|
76 EPlmnBearerServ8 = 78, |
|
77 EPlmnBearerServ9 = 79, |
|
78 EPlmnBearerServA = 80, |
|
79 EPlmnBearerServB = 81, |
|
80 EPlmnBearerServC = 82, |
|
81 EPlmnBearerServD = 83, |
|
82 EPlmnBearerServE = 84, |
|
83 EPlmnBearerServF = 85, |
|
84 |
|
85 EAltTele = 89 // no ui note support |
|
86 }; |
|
87 |
|
88 // basic teleservice groups (ETSI Gsm 02.03 and 02.04) |
|
89 enum TServiceGroup { |
|
90 EServiceGroupVoice = 0x00000001, |
|
91 EServiceGroupData = 0x00000002, |
|
92 EServiceGroupFax = 0x00000004, |
|
93 EServiceGroupAllTeleservices = EServiceGroupVoice | |
|
94 EServiceGroupData | |
|
95 EServiceGroupFax |
|
96 }; |
|
97 |
|
98 ///////////////////////////////////////////////////////////////////////////// |
|
99 // barring data types |
|
100 //barring supplementary services |
|
101 enum TBarringProgram |
|
102 { |
|
103 EBarringTypeAllBarrings = 0x0001, |
|
104 EBarringTypeAllOutgoing = 0x0002, |
|
105 EBarringTypeOutgoingInternational = 0x0004, |
|
106 EBarringTypeOutgoingInternationalExceptToHomeCountry = 0x0008, |
|
107 EBarringTypeAllIncoming = 0x0010, |
|
108 EBarringTypeIncomingWhenRoaming = 0x0020, |
|
109 EBarringTypeAllServices, |
|
110 EBarringTypeAllOutgoingServices, |
|
111 EBarringTypeAllIncomingServices |
|
112 }; |
|
113 |
|
114 //barring actions |
|
115 enum TBarringSetting |
|
116 { |
|
117 EActivateBarring, |
|
118 ECancelBarring |
|
119 }; |
|
120 |
|
121 //barring status |
|
122 enum TBarringStatus |
|
123 { |
|
124 EBarringStatusActive, |
|
125 EBarringStatusInactive, |
|
126 EBarringStatusNotProvisioned, |
|
127 EBarringStatusUnavailable, |
|
128 EBarringStatusUnknown |
|
129 }; |
|
130 |
|
131 ///////////////////////////////////////////////////////////////////////////// |
|
132 // diverting data types |
|
133 //call forwarding conditions |
|
134 enum TCallDivertingCondition { |
|
135 EDivertConditionUnconditional, |
|
136 EDivertConditionBusy, |
|
137 EDivertConditionNoReply, |
|
138 EDivertConditionNotReachable, |
|
139 EDivertConditionAllCalls, |
|
140 EDivertConditionAllConditionalCases |
|
141 }; |
|
142 |
|
143 //call forwarding actions |
|
144 enum TDivertingSetting |
|
145 { |
|
146 EActivateDiverting, |
|
147 ECancelDiverting, |
|
148 ERegisterDiverting, |
|
149 EEraseDiverting, |
|
150 ECheckStatus |
|
151 }; |
|
152 |
|
153 //call forwarding statuses |
|
154 enum TDivertingStatus |
|
155 { |
|
156 EDivertingStatusActive, |
|
157 EDivertingStatusInactive, |
|
158 EDivertingStatusNotRegistered, |
|
159 EDivertingStatusNotProvisioned, |
|
160 EDivertingStatusUnknown |
|
161 }; |
|
162 |
|
163 //call forwarding cenrep key statuses. |
|
164 enum TCallForwardingStatus |
|
165 { |
|
166 EForwardingUnknown = 0x0, |
|
167 EForwardingActiveVoice = 0x01, |
|
168 EForwardingActiveFax = 0x02, |
|
169 EForwardingActiveData = 0x04 |
|
170 }; |
|
171 |
|
172 // CLASS DEFINITIONS |
|
173 // Supplemental class to contain all call barring settings. |
|
174 class TCallBarringSetting |
|
175 { |
|
176 public: //member data |
|
177 //Barring program |
|
178 TBarringProgram iType; |
|
179 //Barring settings |
|
180 TBarringSetting iSetting; |
|
181 //Barring group |
|
182 TServiceGroup iServiceGroup; |
|
183 //Barring password |
|
184 TBarringPassword iPassword; |
|
185 }; |
|
186 |
|
187 // Supplemental class to contain all call forwarding settings. |
|
188 class TCallDivertSetting |
|
189 { |
|
190 public: //new |
|
191 void Initialize() |
|
192 { |
|
193 iCondition = EDivertConditionUnconditional; |
|
194 iStatus = EDivertingStatusUnknown; |
|
195 iServiceGroup = EServiceGroupAllTeleservices; |
|
196 iNumber = KNullDesC; |
|
197 iNoReplyTimer = 0; |
|
198 } |
|
199 |
|
200 public: //member data |
|
201 //Divert condition |
|
202 TCallDivertingCondition iCondition; |
|
203 //Divert setting |
|
204 TDivertingSetting iSetting; |
|
205 //Divert status |
|
206 TDivertingStatus iStatus; |
|
207 //Divert service group |
|
208 TServiceGroup iServiceGroup; |
|
209 //Diverted-to number |
|
210 TTelNumber iNumber; |
|
211 //Delay time before starting diverting |
|
212 TInt iNoReplyTimer; |
|
213 }; |
|
214 #endif // NWDEFS_H |
|
215 // End of file |