epoc32/include/mw/cmpluginwlandef.h
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
equal deleted inserted replaced
1:666f914201fb 2:2fe1408b6811
     1 cmpluginwlandef.h
     1 /*
       
     2 * Copyright (c) 2006 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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  ?description
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CMPLUGIN_WLAN_DEF_H
       
    19 #define CMPLUGIN_WLAN_DEF_H
       
    20 
       
    21 #include <cmconnectionmethoddef.h>
       
    22 
       
    23 /**  ECOM interface UID */
       
    24 const TUint KUidWlanBearerType = 0x10281BB1;
       
    25 
       
    26 namespace CMManager
       
    27     {
       
    28     /** enumerations for WLAN network modes */
       
    29     enum TWlanNetMode
       
    30         {
       
    31         EAdhoc       = 0,   ///< Ad-Hoc mode
       
    32         EInfra       = 1    ///< Infrastructure mode
       
    33         };
       
    34         
       
    35     /** enumerations for WLAN security modes 
       
    36      ** It's possible to extend this enumeration */
       
    37     enum TWlanSecMode
       
    38         {
       
    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
       
    45         };
       
    46 
       
    47     /** Wlan specific connection method attributes */
       
    48     enum TConnectionMethodWlanSpecificAttributes
       
    49         {
       
    50         /**
       
    51         * Comma separated list of network protocols, e.g. "PPP".
       
    52         * ( String - default: None)
       
    53         */
       
    54         EWlanIfNetworks = KLanBaseIfNetworks,
       
    55 
       
    56         /**
       
    57         * IP net mask of interface.
       
    58         * ( String - default: None)
       
    59         */        
       
    60         EWlanIpNetMask,
       
    61             
       
    62         /**
       
    63         * IP address of gateway
       
    64         * ( String - default: None)
       
    65         */
       
    66         EWlanIpGateway,
       
    67             
       
    68         /**
       
    69         * Get IP addresses (for EPOC) from server?
       
    70         * ( TBool - default: None)
       
    71         */
       
    72         EWlanIpAddrFromServer,
       
    73         
       
    74         /**
       
    75         * IP address of EPOC.
       
    76         * ( String - default: None)
       
    77         */
       
    78         EWlanIpAddr,
       
    79         
       
    80         /**
       
    81         * Get DNS addresses from server?
       
    82         * ( TBool - default: None)
       
    83         */
       
    84         EWlanIpDNSAddrFromServer,
       
    85 
       
    86         /**
       
    87         * IP Address of primary name server.
       
    88         * ( String - default: None)
       
    89         */
       
    90         EWlanIpNameServer1,
       
    91             
       
    92         /**
       
    93         * IP Address of secondary name server.
       
    94         * ( String - default: None)
       
    95         */
       
    96         EWlanIpNameServer2,
       
    97         
       
    98         /**
       
    99         * Get IP6 DNS addresses from server?
       
   100         * ( TBool - default: None)
       
   101         */
       
   102         EWlanIp6DNSAddrFromServer,
       
   103         
       
   104         /**
       
   105         * IP6 Address of primary name server.
       
   106         * ( String - default: None)
       
   107         */
       
   108         EWlanIp6NameServer1,
       
   109         
       
   110         /**
       
   111         * IP6 Address of secondary name server.
       
   112         * ( String - default: None)
       
   113         */
       
   114         EWlanIp6NameServer2,
       
   115         
       
   116         /**
       
   117         * IP address valid from this time, used to store 
       
   118         * dynamically assigned address lease info.
       
   119         * ( String - default: None)
       
   120         */
       
   121         EWlanIpAddrLeaseValidFrom,
       
   122             
       
   123         /**
       
   124         * IP address valid for use until this time, used to store
       
   125         * dynamically assigned address lease info.
       
   126         * ( String - default: None)
       
   127         */
       
   128         EWlanIpAddrLeaseValidTo,
       
   129             
       
   130         /**
       
   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)
       
   136         */
       
   137         EWlanConfigDaemonManagerName,
       
   138             
       
   139         /**
       
   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 
       
   144         * be specified.
       
   145         * ( String - default: None)
       
   146         */
       
   147         EWlanConfigDaemonName,
       
   148             
       
   149         /**
       
   150         * Name of the WLAN Service Extension table.
       
   151         * ( String - default: None)
       
   152         */
       
   153         EWlanServiceExtensionTableName,
       
   154             
       
   155         /**
       
   156         * The record ID of the linked WLAN Service Extension record in the
       
   157         * WLAN Service Extension table.
       
   158         * ( TUint32 - default: None)
       
   159         */
       
   160         EWlanServiceExtensionTableRecordId,
       
   161         
       
   162         /**
       
   163         * Marks the beginning of WLAN specific attributes.
       
   164         */
       
   165         EWlanSpecificAttributes = 30000,
       
   166             
       
   167         /**
       
   168         * The record ID to which IAP record these settings belong to.
       
   169         * ( TUint32 - default: None)
       
   170         */
       
   171         EWlanServiceId = 30100,
       
   172             
       
   173         /**
       
   174         * The connection mode. This can be either Ad-hoc or infrastructure.
       
   175         * TWlanNetMode enum is to be used.
       
   176         * ( TUint32 - default: EInfra )
       
   177         */
       
   178         EWlanConnectionMode,
       
   179             
       
   180         /**
       
   181         * The SSID of this WLAN connection.
       
   182         * ( String - default: None)
       
   183         */
       
   184         EWlanSSID,
       
   185             
       
   186         /**
       
   187         * Used SSID.
       
   188         * ( String - default: None)
       
   189         */
       
   190         EWlanUsedSSID,
       
   191             
       
   192         /**
       
   193         * The security mode of this WLAN connection. It is a TWlanSecMode enum.
       
   194         * ( TUint32 - default: EWlanSecModeOpen )
       
   195         */
       
   196         EWlanSecurityMode,
       
   197             
       
   198         /**
       
   199         * Authentication type: none, wep, wpa, wpapresharedkey
       
   200         * ( TUint32 - default: None )
       
   201         */
       
   202         EWlanAuthenticationMode,
       
   203             
       
   204         /**
       
   205         * Gives whether it should scan for the SSID.
       
   206         * (TBool - default: EFalse )
       
   207         */
       
   208         EWlanScanSSID,
       
   209         
       
   210         /**
       
   211         * This is the channel ID in ad-hoc network mode
       
   212         * ( TUint32 - default: EAdhocAutomatic, if set to EAdhocUserDefined default = 7 )
       
   213         */
       
   214         EWlanChannelID,
       
   215         
       
   216         /**
       
   217         * Gives whether it is allowed to roam inside one SSID or not.
       
   218         * (TBool - default: determined through variation )
       
   219         */
       
   220         EWlanAllowSSIDRoaming,
       
   221         
       
   222             
       
   223         // The following attributes before EWlanRangeMax are for internal use only
       
   224         /**
       
   225         * Internal limiter
       
   226         */
       
   227         EWlanRangeInternal = 35000,
       
   228             
       
   229         /**
       
   230         * Internal, used for the security settings.
       
   231         */
       
   232         EWlanSecuritySettings,
       
   233         
       
   234         /**
       
   235         * Marks the end of WLAN attributes.
       
   236         */
       
   237         EWlanRangeMax = 39999
       
   238         };
       
   239     } // namespace CMManager
       
   240 
       
   241 #endif // CMPLUGIN_WLAN_DEF_H