2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: ?description
18 #ifndef CMPLUGIN_WLAN_DEF_H
19 #define CMPLUGIN_WLAN_DEF_H
21 #include <cmconnectionmethoddef.h>
23 /** ECOM interface UID */
24 const TUint KUidWlanBearerType = 0x10281BB1;
28 /** enumerations for WLAN network modes */
31 EAdhoc = 0, ///< Ad-Hoc mode
32 EInfra = 1 ///< Infrastructure mode
35 /** enumerations for WLAN security modes
36 ** It's possible to extend this enumeration */
39 EWlanSecModeOpen = 1, ///< Open security mode
40 EWlanSecModeWep = 2, ///< WEP security mode
41 EWlanSecMode802_1x = 4, ///< 802.1x security mode
42 EWlanSecModeWpa = 8, ///< WPA security mode
43 EWlanSecModeWpa2 = 16, ///< WPA2 security mode
44 EWlanSecModeWAPI = 32 ///< WAPI security mode
47 /** Wlan specific connection method attributes */
48 enum TConnectionMethodWlanSpecificAttributes
51 * Comma separated list of network protocols, e.g. "PPP".
52 * ( String - default: None)
54 EWlanIfNetworks = KLanBaseIfNetworks,
57 * IP net mask of interface.
58 * ( String - default: None)
63 * IP address of gateway
64 * ( String - default: None)
69 * Get IP addresses (for EPOC) from server?
70 * ( TBool - default: None)
72 EWlanIpAddrFromServer,
76 * ( String - default: None)
81 * Get DNS addresses from server?
82 * ( TBool - default: None)
84 EWlanIpDNSAddrFromServer,
87 * IP Address of primary name server.
88 * ( String - default: None)
93 * IP Address of secondary name server.
94 * ( String - default: None)
99 * Get IP6 DNS addresses from server?
100 * ( TBool - default: None)
102 EWlanIp6DNSAddrFromServer,
105 * IP6 Address of primary name server.
106 * ( String - default: None)
111 * IP6 Address of secondary name server.
112 * ( String - default: None)
117 * IP address valid from this time, used to store
118 * dynamically assigned address lease info.
119 * ( String - default: None)
121 EWlanIpAddrLeaseValidFrom,
124 * IP address valid for use until this time, used to store
125 * dynamically assigned address lease info.
126 * ( String - default: None)
128 EWlanIpAddrLeaseValidTo,
131 * Name of the ECOM configuration daemon manager component.
132 * This component interfaces with the server identified in
133 * ISP_CONFIG_DAEMON_NAME. If specified, ISP_CONFIG_DAEMON_NAME
134 * should also be specified.
135 * ( String - default: None)
137 EWlanConfigDaemonManagerName,
140 * Name of the configuration daemon server.
141 * This server is used to provide further configuration for
142 * a connection, e.g. dynamic IP address assignment.
143 * If specified, ISP_CONFIG_DAEMON_MANAGER_NAME should also
145 * ( String - default: None)
147 EWlanConfigDaemonName,
150 * Name of the WLAN Service Extension table.
151 * ( String - default: None)
153 EWlanServiceExtensionTableName,
156 * The record ID of the linked WLAN Service Extension record in the
157 * WLAN Service Extension table.
158 * ( TUint32 - default: None)
160 EWlanServiceExtensionTableRecordId,
163 * Marks the beginning of WLAN specific attributes.
165 EWlanSpecificAttributes = 30000,
168 * The record ID to which IAP record these settings belong to.
169 * ( TUint32 - default: None)
171 EWlanServiceId = 30100,
174 * The connection mode. This can be either Ad-hoc or infrastructure.
175 * TWlanNetMode enum is to be used.
176 * ( TUint32 - default: EInfra )
181 * The SSID of this WLAN connection.
182 * ( String - default: None)
188 * ( String - default: None)
193 * The security mode of this WLAN connection. It is a TWlanSecMode enum.
194 * ( TUint32 - default: EWlanSecModeOpen )
199 * Authentication type: none, wep, wpa, wpapresharedkey
200 * ( TUint32 - default: None )
202 EWlanAuthenticationMode,
205 * Gives whether it should scan for the SSID.
206 * (TBool - default: EFalse )
211 * This is the channel ID in ad-hoc network mode
212 * ( TUint32 - default: EAdhocAutomatic, if set to EAdhocUserDefined default = 7 )
217 * Gives whether it is allowed to roam inside one SSID or not.
218 * (TBool - default: determined through variation )
220 EWlanAllowSSIDRoaming,
223 // The following attributes before EWlanRangeMax are for internal use only
227 EWlanRangeInternal = 35000,
230 * Internal, used for the security settings.
232 EWlanSecuritySettings,
235 * Marks the end of WLAN attributes.
237 EWlanRangeMax = 39999
239 } // namespace CMManager
241 #endif // CMPLUGIN_WLAN_DEF_H