epoc32/include/mw/apengineconsts.h
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
     1.1 --- a/epoc32/include/mw/apengineconsts.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/mw/apengineconsts.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,279 @@
     1.4 -apengineconsts.h
     1.5 +/*
     1.6 +* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). 
     1.7 +* All rights reserved.
     1.8 +* This component and the accompanying materials are made available
     1.9 +* 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
    1.10 +* which accompanies this distribution, and is available
    1.11 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.12 +*
    1.13 +* Initial Contributors:
    1.14 +* Nokia Corporation - initial contribution.
    1.15 +*
    1.16 +* Contributors:
    1.17 +*
    1.18 +* Description:  Used constants of the ApEngine.
    1.19 +*
    1.20 +*/
    1.21 +
    1.22 +
    1.23 +#ifndef APENGINE_CONSTS_H
    1.24 +#define APENGINE_CONSTS_H
    1.25 +
    1.26 +// Deprecation warning
    1.27 +#warning This header file has been deprecated. Will be removed in one of the next SDK releases.
    1.28 + 
    1.29 + 
    1.30 +#include <ApEngineVer.h>
    1.31 +
    1.32 +
    1.33 +// ERROR CODES
    1.34 +// Used either as return values or leave codes. Apart from these, system error
    1.35 +// codes can also be returned or leaved with.
    1.36 +
    1.37 +/// Attempting to read or write a column which does not exists.
    1.38 +const TInt  KErrInvalidColumn       = -300;
    1.39 +
    1.40 +/// The given bearer is not valid.
    1.41 +const TInt  KErrInvalidBearer       = -301;
    1.42 +
    1.43 +/// The type of the database is not valid
    1.44 +const TInt  KErrInvalidDatabaseType = -302;
    1.45 +
    1.46 +/// The name of the AP is not valid (length = 0)
    1.47 +const TInt  KErrInvalidName         = -303;
    1.48 +
    1.49 +const TInt  KErrDescOverflow        = -304;
    1.50 +
    1.51 +/// The passed pointer was invalid = NULL
    1.52 +const TInt  KErrNullPointerPassed   = -305;
    1.53 +
    1.54 +/// The filter is not valid
    1.55 +const TInt  KErrInvalidFilterType   = -310;
    1.56 +
    1.57 +/// The bearer is not valid
    1.58 +const TInt  KErrInvalidBearerType   = -311;
    1.59 +
    1.60 +/// The ISP type given is invalid
    1.61 +const TInt  KErrInvalidIspRequest   = -312;
    1.62 +
    1.63 +/// Used when the requested value was not specified in the database
    1.64 +const TInt  KErrValueUnspecified    = -323;
    1.65 +
    1.66 +const TInt  KApEngineMaxSql              = 255;
    1.67 +
    1.68 +
    1.69 +
    1.70 +/// These constants are used to represent the sorting order used in CApSelect.
    1.71 +const TInt  KEApSortUidAscending         = 0x00000001;  ///< The sorting is
    1.72 +                                                        ///< done according to
    1.73 +                                                        ///< the ID of the
    1.74 +                                                        ///< access points in
    1.75 +                                                        ///< ascending order.
    1.76 +const TInt  KEApSortUidDescending        = 0x00000002;  ///< The sorting is
    1.77 +                                                        ///< done according to
    1.78 +                                                        ///< the ID of the
    1.79 +                                                        ///< access points in
    1.80 +                                                        ///< descending order.
    1.81 +const TInt  KEApSortNameAscending        = 0x00000003;  ///< The sorting is
    1.82 +                                                        ///< done according to
    1.83 +                                                        ///< the name of the
    1.84 +                                                        ///< access points in
    1.85 +                                                        ///< ascending order.
    1.86 +const TInt  KEApSortNameDescending       = 0x00000004;  ///< The sorting is
    1.87 +                                                        ///< done according to
    1.88 +                                                        ///< the name of the
    1.89 +                                                        ///< access points in
    1.90 +                                                        ///< descending order.
    1.91 +
    1.92 +
    1.93 +/// These enums are used to represent one the filtering criterias in CApSelect.
    1.94 +const TInt  KEApIspTypeInternetOnly     = 0x00000001;   ///< Filter allows only
    1.95 +                                                        ///< access points that
    1.96 +                                                        ///< are capable of
    1.97 +                                                        ///< only internet
    1.98 +                                                        ///< access.
    1.99 +const TInt  KEApIspTypeWAPOnly          = 0x00000002;   ///< Filter allows only
   1.100 +                                                        ///< access points that
   1.101 +                                                        ///< are capable of
   1.102 +                                                        ///< only WAP access.
   1.103 +const TInt  KEApIspTypeInternetAndWAP   = 0x00000004;   ///< Filter allows only
   1.104 +                                                        ///< access points that
   1.105 +                                                        ///< are capable of
   1.106 +                                                        ///< internet AND
   1.107 +                                                        ///< WAP access.
   1.108 +const TInt  KEApIspTypeWAPMandatory     = 0x00000008;   ///< Filter allows only
   1.109 +                                                        ///< access points that
   1.110 +                                                        ///< are capable of
   1.111 +                                                        ///< WAP access AND
   1.112 +                                                        ///< contain mandatory
   1.113 +                                                        ///< WAP settings.
   1.114 +const TInt  KEApIspTypeAll              = 0x00000010;   ///< No filtering is
   1.115 +                                                        ///< done, all access
   1.116 +                                                        ///< points are shown.
   1.117 +const TInt  KEApIspTypeMMSMandatory     = 0x00000020;   ///< Filter allows only
   1.118 +                                                        ///< access points that
   1.119 +                                                        ///< are capable of MMS
   1.120 +                                                        ///< and contain MMS
   1.121 +                                                        ///< mandatory settings
   1.122 +                                                        ///< Starting Page
   1.123 +
   1.124 +
   1.125 +
   1.126 +
   1.127 +const TInt KModifiableTextLength        = 100;
   1.128 +const TInt KModifiableLongTextLength    = 1000;
   1.129 +
   1.130 +
   1.131 +// typedef
   1.132 +enum TApBearerType      /// These enums are used to represent the possible
   1.133 +                        /// bearer types and the filtering criteria
   1.134 +                        /// in CApSelect.
   1.135 +    {
   1.136 +    EApBearerTypeCSD        = 0x00000001,   ///< Filter allows only access
   1.137 +                                            ///< points that has CSD as bearer.
   1.138 +    EApBearerTypeGPRS       = 0x00000002,   ///< Filter allows only access
   1.139 +                                            ///< points that has GPRS as bearer
   1.140 +    EApBearerTypeHSCSD      = 0x00000004,   ///< Filter allows only access
   1.141 +                                            ///< points that has HSCSD
   1.142 +                                            ///< as bearer.
   1.143 +
   1.144 +// Will be deprecated, use EApBearerTypeAllBearers instead !
   1.145 +    EApBearerTypeAll        = 0x00000008,   ///< No filtering is done,
   1.146 +                                            ///< all access points are shown.
   1.147 +                                            
   1.148 +    EApBearerTypeCDMA       = 0x00000010,   ///< Filter allows only access
   1.149 +                                            ///< points that has CDMA as bearer
   1.150 +    EApBearerTypeWLAN       = 0x00000020,   ///< Filter allows only access
   1.151 +                                            ///< points that has WLAN as bearer
   1.152 +    EApBearerTypeLAN        = 0x00000040,   ///< Filter allows only access
   1.153 +                                            ///< points that has LAN as bearer
   1.154 +    EApBearerTypeLANModem   = 0x00000080,   ///< Filter allows only access
   1.155 +                                            ///< points with LAN modem bearer
   1.156 +    EApBearerTypeAllBearers = 0xffffffff    ///< No filtering is done,
   1.157 +                                            ///< all access points are shown.
   1.158 +    };
   1.159 +
   1.160 +
   1.161 +enum TApCallSpeed       /// These enums are used to represent
   1.162 +                        /// the connection speed.
   1.163 +    {
   1.164 +    KSpeedAutobaud=0x00000000,          ///< Autodetect
   1.165 +    KSpeed9600=0x00000001,              ///< 9600
   1.166 +    KSpeed14400=0x00000002,             ///< 14400
   1.167 +    KSpeed19200=0x00000003,             ///< 19200
   1.168 +    KSpeed28800=0x00000004,             ///< 28800
   1.169 +    KSpeed38400=0x00000005,             ///< 38400
   1.170 +    KSpeed43200=0x00000006,             ///< 43200
   1.171 +    KSpeed56000=0x00000007              ///< 56000
   1.172 +    };
   1.173 +
   1.174 +
   1.175 +enum TApCallType        /// These enums are used to represent
   1.176 +                        /// the conn. type Analogue/ISDNv110/ISDNv120
   1.177 +    {
   1.178 +    ECallTypeAnalogue,          ///< Analogue
   1.179 +    ECallTypeISDNv110,          ///< ISDN v. 110
   1.180 +    ECallTypeISDNv120           ///< ISDN v. 120
   1.181 +    };
   1.182 +
   1.183 +const TUint32 KMaxAnalogueSpeed    = KSpeed28800;
   1.184 +const TUint32 KMaxIsdnSpeed        = KSpeed43200;
   1.185 +
   1.186 +//if WCDMA is enabled, then the max speed are :
   1.187 +const TUint32 KMaxAnalogueSpeedWcdma    = KSpeed28800;
   1.188 +const TUint32 KMaxIsdnSpeedWdma         = KSpeed56000;
   1.189 +
   1.190 +
   1.191 +enum TIPvType
   1.192 +    {
   1.193 +    EIPv4       = 1,
   1.194 +    EIPv6       = 2
   1.195 +    };
   1.196 +
   1.197 +
   1.198 +enum TWlanNetMode
   1.199 +    {
   1.200 +    EAdhoc       = 0,
   1.201 +    EInfra       = 1
   1.202 +    };
   1.203 +
   1.204 +
   1.205 +enum TWlanSecMode
   1.206 +    {
   1.207 +    EOpen       = 1,
   1.208 +    EWep        = 2,
   1.209 +    E802_1x     = 4,
   1.210 +    EWpa        = 8,
   1.211 +    EWpa2       = 16
   1.212 +    };
   1.213 +
   1.214 +
   1.215 +#define KApMaxConnNameLength            30
   1.216 +
   1.217 +// The following constants are deprecated, DO NOT USE THEM!
   1.218 +// DO NOT USE STARTS
   1.219 +#define KApMaxGprsApNameLength          100
   1.220 +#define KApMaxLoginNameLength           32
   1.221 +#define KApMaxStartPageLength           1000
   1.222 +#define KApMaxAccessNumLength           21
   1.223 +#define KApCBInfoLength                 21
   1.224 +#define KApMaxServiceCentreAddrLength   21
   1.225 +#define KApMaxIpAddressLength           100
   1.226 +#define KApMaxLoginScriptLength         1000
   1.227 +#define KApMaxLoginPasswordLength       20
   1.228 +// DO NOT USE ENDS
   1.229 +
   1.230 +
   1.231 +_LIT( KSqlSelectNum, "SELECT %s from %s WHERE %s=%d" );
   1.232 +_LIT( KSqlSelectBaseNum, "SELECT * from %s WHERE %s=%d" );
   1.233 +
   1.234 +/// 'Dynamic' IP address to use in comparisons
   1.235 +_LIT( KDynIpAddress, "0.0.0.0" );
   1.236 +
   1.237 +/// A start page, which have to be considered as invalid.
   1.238 +_LIT( KInvStartPage, "http://" );
   1.239 +
   1.240 +/// A name for the 'location' to use
   1.241 +_LIT( KLocation, "Mobile" );
   1.242 +
   1.243 +
   1.244 +/// Modem bearer names for (HS)CSD Access Points
   1.245 +_LIT( KModemBearerCSD, "CSD Modem" ); 
   1.246 +
   1.247 +/// Modem bearer names for GPRS/WCDMA Access Points
   1.248 +_LIT( KModemBearerGPRS, "GPRS Modem" );
   1.249 +
   1.250 +/// Modem bearer names for CDMA Access Points
   1.251 +_LIT( KModemBearerCDMA, "CDMA Modem" );
   1.252 +
   1.253 +/// Modem bearer names for WLAN Access Points
   1.254 +_LIT( KModemBearerWLAN, "WLANBearer" );
   1.255 +
   1.256 +/// Modem bearer names for LAN Access Points
   1.257 +_LIT( KModemBearerLAN, "LANBearer" );
   1.258 +
   1.259 +/// Modem bearer names for LAN Modem Access Points
   1.260 +_LIT( KModemBearerLANModem, "LANModem" );
   1.261 +
   1.262 +
   1.263 +/// Number of retries that are used in database operations
   1.264 +const TInt KRetryCount              = 5;
   1.265 +
   1.266 +
   1.267 +/// Time to wait before retry database operation 
   1.268 +// (==0.10 secs = 100000microsec.)
   1.269 +#define KRetryWait  100000 /* in TTimeIntervalMicroSeconds32 */
   1.270 +
   1.271 +// callback timeout in microseconds
   1.272 +const TUint32 KCallBackTimeOut  = 60000000;
   1.273 +
   1.274 +_LIT( KDynIpv6Address, "0:0:0:0:0:0:0:0" );
   1.275 +
   1.276 +
   1.277 +_LIT( KDaemonManagerName, "NetCfgExtnDhcp" );
   1.278 +_LIT( KConfigDaemonName, "!DhcpServ" );
   1.279 +
   1.280 +
   1.281 +#endif
   1.282 +
   1.283 +// End of File