24 /** ECOM interface UID */ |
23 /** ECOM interface UID */ |
25 const TUint KUidWlanBearerType = 0x10281BB1; |
24 const TUint KUidWlanBearerType = 0x10281BB1; |
26 |
25 |
27 namespace CMManager |
26 namespace CMManager |
28 { |
27 { |
29 /** Enumerations for WLAN network modes. */ |
28 /** enumerations for WLAN network modes */ |
30 enum TWlanNetMode |
29 enum TWlanNetMode |
31 { |
30 { |
32 EAdhoc = 0, ///< Ad-Hoc mode |
31 EAdhoc = 0, ///< Ad-Hoc mode |
33 EInfra = 1 ///< Infrastructure mode |
32 EInfra = 1 ///< Infrastructure mode |
34 }; |
33 }; |
35 |
34 |
36 /** Enumerations for WLAN security modes. |
35 /** enumerations for WLAN security modes |
37 ** It's possible to extend this enumeration. */ |
36 ** It's possible to extend this enumeration */ |
38 enum TWlanSecMode |
37 enum TWlanSecMode |
39 { |
38 { |
40 EWlanSecModeOpen = 1, ///< Open security mode |
39 EWlanSecModeOpen = 1, ///< Open security mode |
41 EWlanSecModeWep = 2, ///< WEP security mode |
40 EWlanSecModeWep = 2, ///< WEP security mode |
42 EWlanSecMode802_1x = 4, ///< 802.1x security mode |
41 EWlanSecMode802_1x = 4, ///< 802.1x security mode |
43 EWlanSecModeWpa = 8, ///< WPA security mode |
42 EWlanSecModeWpa = 8, ///< WPA security mode |
44 EWlanSecModeWpa2 = 16, ///< WPA2 security mode |
43 EWlanSecModeWpa2 = 16, ///< WPA2 security mode |
45 EWlanSecModeWAPI = 32 ///< WAPI security mode |
44 EWlanSecModeWAPI = 32 ///< WAPI security mode |
46 }; |
45 }; |
47 |
46 |
48 /** Enumerations for WLAN authentication modes. |
47 /** Wlan specific connection method attributes */ |
49 ** It's possible to extend this enumeration. */ |
|
50 enum TWlanAuthMode |
|
51 { |
|
52 EWlanAuthModeOpen = 0, |
|
53 EWlanAuthModeShared = 1 |
|
54 }; |
|
55 |
|
56 /** Enumerations for WAPI pre-shared key format (ascii, hex). |
|
57 ** It's possible to extend this enumeration. */ |
|
58 enum TWlanWapiPskFormat |
|
59 { |
|
60 EWlanWapiPskFormatAscii = 0, |
|
61 EWlanWapiPskFormatHex |
|
62 }; |
|
63 |
|
64 /** Enumerations for the WEP key indexes. |
|
65 ** It's possible to extend this enumeration. */ |
|
66 enum TWepKeyIndex |
|
67 { |
|
68 EWepKeyIndex1 = 0, // Key number 1 |
|
69 EWepKeyIndex2, // Key number 2 |
|
70 EWepKeyIndex3, // Key number 3 |
|
71 EWepKeyIndex4 // Key number 4 |
|
72 }; |
|
73 |
|
74 /** WLAN specific connection method attributes. */ |
|
75 enum TConnectionMethodWlanSpecificAttributes |
48 enum TConnectionMethodWlanSpecificAttributes |
76 { |
49 { |
77 /** |
50 /** |
78 * Comma separated list of network protocols, e.g. "PPP". |
51 * Comma separated list of network protocols, e.g. "PPP". |
79 * ( String - default: None) |
52 * ( String - default: None) |
113 /** |
86 /** |
114 * IP Address of primary name server. |
87 * IP Address of primary name server. |
115 * ( String - default: None) |
88 * ( String - default: None) |
116 */ |
89 */ |
117 EWlanIpNameServer1, |
90 EWlanIpNameServer1, |
118 |
91 |
119 /** |
92 /** |
120 * IP Address of secondary name server. |
93 * IP Address of secondary name server. |
121 * ( String - default: None) |
94 * ( String - default: None) |
122 */ |
95 */ |
123 EWlanIpNameServer2, |
96 EWlanIpNameServer2, |
124 |
97 |
125 /** |
98 /** |
126 * Get IP6 DNS addresses from server? |
99 * Get IP6 DNS addresses from server? |
127 * ( TBool - default: None) |
100 * ( TBool - default: None) |
128 */ |
101 */ |
129 EWlanIp6DNSAddrFromServer, |
102 EWlanIp6DNSAddrFromServer, |
130 |
103 |
131 /** |
104 /** |
132 * IP6 Address of primary name server. |
105 * IP6 Address of primary name server. |
133 * ( String - default: None) |
106 * ( String - default: None) |
134 */ |
107 */ |
135 EWlanIp6NameServer1, |
108 EWlanIp6NameServer1, |
136 |
109 |
137 /** |
110 /** |
138 * IP6 Address of secondary name server. |
111 * IP6 Address of secondary name server. |
139 * ( String - default: None) |
112 * ( String - default: None) |
140 */ |
113 */ |
141 EWlanIp6NameServer2, |
114 EWlanIp6NameServer2, |
142 |
115 |
143 /** |
116 /** |
144 * IP address valid from this time, used to store |
117 * IP address valid from this time, used to store |
145 * dynamically assigned address lease info. |
118 * dynamically assigned address lease info. |
146 * ( String - default: None) |
119 * ( String - default: None) |
147 */ |
120 */ |
148 EWlanIpAddrLeaseValidFrom, |
121 EWlanIpAddrLeaseValidFrom, |
149 |
122 |
150 /** |
123 /** |
151 * IP address valid for use until this time, used to store |
124 * IP address valid for use until this time, used to store |
152 * dynamically assigned address lease info. |
125 * dynamically assigned address lease info. |
153 * ( String - default: None) |
126 * ( String - default: None) |
154 */ |
127 */ |
155 EWlanIpAddrLeaseValidTo, |
128 EWlanIpAddrLeaseValidTo, |
156 |
129 |
157 /** |
130 /** |
158 * Name of the ECOM configuration daemon manager component. |
131 * Name of the ECOM configuration daemon manager component. |
159 * This component interfaces with the server identified in |
132 * This component interfaces with the server identified in |
160 * ISP_CONFIG_DAEMON_NAME. If specified, ISP_CONFIG_DAEMON_NAME |
133 * ISP_CONFIG_DAEMON_NAME. If specified, ISP_CONFIG_DAEMON_NAME |
161 * should also be specified. |
134 * should also be specified. |
162 * ( String - default: None) |
135 * ( String - default: None) |
163 */ |
136 */ |
164 EWlanConfigDaemonManagerName, |
137 EWlanConfigDaemonManagerName, |
165 |
138 |
166 /** |
139 /** |
167 * Name of the configuration daemon server. |
140 * Name of the configuration daemon server. |
168 * This server is used to provide further configuration for |
141 * This server is used to provide further configuration for |
169 * a connection, e.g. dynamic IP address assignment. |
142 * a connection, e.g. dynamic IP address assignment. |
170 * If specified, ISP_CONFIG_DAEMON_MANAGER_NAME should also |
143 * If specified, ISP_CONFIG_DAEMON_MANAGER_NAME should also |
171 * be specified. |
144 * be specified. |
172 * ( String - default: None) |
145 * ( String - default: None) |
173 */ |
146 */ |
174 EWlanConfigDaemonName, |
147 EWlanConfigDaemonName, |
175 |
148 |
176 /** |
149 /** |
177 * Name of the WLAN Service Extension table. |
150 * Name of the WLAN Service Extension table. |
178 * ( String - default: None) |
151 * ( String - default: None) |
179 */ |
152 */ |
180 EWlanServiceExtensionTableName, |
153 EWlanServiceExtensionTableName, |
181 |
154 |
182 /** |
155 /** |
183 * The record ID of the linked WLAN Service Extension record in the |
156 * The record ID of the linked WLAN Service Extension record in the |
184 * WLAN Service Extension table. |
157 * WLAN Service Extension table. |
185 * ( TUint32 - default: None) |
158 * ( TUint32 - default: None) |
186 */ |
159 */ |
187 EWlanServiceExtensionTableRecordId, |
160 EWlanServiceExtensionTableRecordId, |
188 |
161 |
189 /** |
162 /** |
190 * Marks the beginning of WLAN specific attributes. |
163 * Marks the beginning of WLAN specific attributes. |
191 */ |
164 */ |
192 EWlanSpecificAttributes = 30000, |
165 EWlanSpecificAttributes = 30000, |
193 |
166 |
194 /** |
167 /** |
195 * The record ID to which IAP record these settings belong to. |
168 * The record ID to which IAP record these settings belong to. |
196 * ( TUint32 - default: None) |
169 * ( TUint32 - default: None) |
197 */ |
170 */ |
198 EWlanServiceId = 30100, |
171 EWlanServiceId = 30100, |
199 |
172 |
200 /** |
173 /** |
201 * The connection mode. This can be either Ad-hoc or infrastructure. |
174 * The connection mode. This can be either Ad-hoc or infrastructure. |
202 * TWlanNetMode enum is to be used. |
175 * TWlanNetMode enum is to be used. |
203 * ( TUint32 - default: EInfra ) |
176 * ( TUint32 - default: EInfra ) |
204 */ |
177 */ |
205 EWlanConnectionMode, |
178 EWlanConnectionMode, |
206 |
179 |
207 /** |
180 /** |
208 * The SSID of this WLAN connection. |
181 * The SSID of this WLAN connection. |
209 * ( String - default: None) |
182 * ( String - default: None) |
210 */ |
183 */ |
211 EWlanSSID, |
184 EWlanSSID, |
212 |
185 |
213 /** |
186 /** |
214 * Used SSID. |
187 * Used SSID. |
215 * ( String - default: None) |
188 * ( String - default: None) |
216 */ |
189 */ |
217 EWlanUsedSSID, |
190 EWlanUsedSSID, |
218 |
191 |
219 /** |
192 /** |
220 * The security mode of this WLAN connection. It is a TWlanSecMode enum. |
193 * The security mode of this WLAN connection. It is a TWlanSecMode enum. |
221 * ( TUint32 - default: EWlanSecModeOpen ) |
194 * ( TUint32 - default: EWlanSecModeOpen ) |
222 */ |
195 */ |
223 EWlanSecurityMode, |
196 EWlanSecurityMode, |
224 |
197 |
225 /** |
198 /** |
226 * Authentication mode: Defined in TWlanAuthMode. |
199 * Authentication type: none, wep, wpa, wpapresharedkey |
227 * ( TUint32 - default: EWlanAuthModeOpen ) |
200 * ( TUint32 - default: None ) |
228 */ |
201 */ |
229 EWlanAuthenticationMode, |
202 EWlanAuthenticationMode, |
230 |
203 |
231 /** |
204 /** |
232 * Gives whether it should scan for the SSID. |
205 * Gives whether it should scan for the SSID. |
233 * (TBool - default: EFalse ) |
206 * (TBool - default: EFalse ) |
234 */ |
207 */ |
235 EWlanScanSSID, |
208 EWlanScanSSID, |
236 |
209 |
237 /** |
210 /** |
238 * This is the channel ID in ad-hoc network mode |
211 * This is the channel ID in ad-hoc network mode |
239 * ( TUint32 - default: EAdhocAutomatic, if set to EAdhocUserDefined default = 7 ) |
212 * ( TUint32 - default: EAdhocAutomatic, if set to EAdhocUserDefined default = 7 ) |
240 */ |
213 */ |
241 EWlanChannelID, |
214 EWlanChannelID, |
242 |
215 |
243 /** |
216 /** |
244 * Gives whether it is allowed to roam inside one SSID or not. |
217 * Gives whether it is allowed to roam inside one SSID or not. |
245 * (TBool - default: determined through variation ) |
218 * (TBool - default: determined through variation ) |
246 */ |
219 */ |
247 EWlanAllowSSIDRoaming, |
220 EWlanAllowSSIDRoaming, |
248 |
221 |
249 /** |
222 |
250 * WEP key data. |
223 // The following attributes before EWlanRangeMax are for internal use only |
251 * Key data is in hex-format (0-9, A-F, length 10 or 26). |
|
252 * String (8-bit) |
|
253 */ |
|
254 EWlanWepKey1InHex = 31000, |
|
255 EWlanWepKey2InHex, |
|
256 EWlanWepKey3InHex, |
|
257 EWlanWepKey4InHex, |
|
258 |
|
259 /** |
|
260 * WEP key data. |
|
261 * Key data is in ascii-format (length 5 or 13). |
|
262 * String (8-bit) |
|
263 */ |
|
264 EWlanWepKey1InAscii, |
|
265 EWlanWepKey2InAscii, |
|
266 EWlanWepKey3InAscii, |
|
267 EWlanWepKey4InAscii, |
|
268 |
|
269 /** |
|
270 * Used WEP key. |
|
271 * TWepKeyIndex |
|
272 */ |
|
273 EWlanWepKeyIndex, |
|
274 |
|
275 /** |
|
276 * Is unencrypted mode allowed in 802.1x. |
|
277 * TBool |
|
278 */ |
|
279 EWlan802_1xAllowUnencrypted = 31050, |
|
280 |
|
281 /** |
|
282 * WPA pre-shared key usage. |
|
283 * TBool |
|
284 */ |
|
285 EWlanEnableWpaPsk = 31100, |
|
286 |
|
287 /** |
|
288 * WPA pre-shared key. |
|
289 * String (8-bit) |
|
290 */ |
|
291 EWlanWpaPreSharedKey, |
|
292 |
|
293 /** |
|
294 * WAPI pre-shared key data. |
|
295 * String (8-bit) |
|
296 */ |
|
297 EWlanWapiPsk = 31150, |
|
298 |
|
299 /** |
|
300 * The format of the WAPI key (ascii, hex) |
|
301 * TWlanWapiKeyFormat |
|
302 */ |
|
303 EWlanWapiPskFormat, |
|
304 |
|
305 // The following attributes before EWlanRangeMax are for internal use only. |
|
306 /** |
224 /** |
307 * Internal limiter |
225 * Internal limiter |
308 */ |
226 */ |
309 EWlanRangeInternal = 35000, |
227 EWlanRangeInternal = 35000, |
310 |
228 |
311 /** |
229 /** |
312 * Internal, used for the security settings. |
230 * Internal, used for the security settings. |
313 */ |
231 */ |
314 EWlanSecuritySettings, |
232 EWlanSecuritySettings, |
315 |
233 |
316 /** |
234 /** |
317 * Marks the end of WLAN attributes. |
235 * Marks the end of WLAN attributes. |
318 */ |
236 */ |
319 EWlanRangeMax = 39999 |
237 EWlanRangeMax = 39999 |
320 }; |
238 }; |