S60 3rd Edition API Reference: apengineconsts.h Source File

apengineconsts.h

Go to the documentation of this file.
00001 /*
00002 * ============================================================================
00003 *  Name     : ApEngineConsts.h
00004 *  Part of  : Access Point Engine
00005 *
00006 *  Description: Used constants of the ApEngine.
00007 *  Version:
00008 *
00009 *  Copyright (C) 2002 Nokia Corporation.
00010 *  This material, including documentation and any related 
00011 *  computer programs, is protected by copyright controlled by 
00012 *  Nokia Corporation. All rights are reserved. Copying, 
00013 *  including reproducing, storing,  adapting or translating, any 
00014 *  or all of this material requires the prior written consent of 
00015 *  Nokia Corporation. This material also contains confidential 
00016 *  information which may not be disclosed to others without the 
00017 *  prior written consent of Nokia Corporation.
00018 *
00019 * ============================================================================
00020 */
00021 
00022 #ifndef APENGINE_CONSTS_H
00023 #define APENGINE_CONSTS_H
00024 
00025 #include <ApEngineVer.h>
00026 
00027 
00028 // ERROR CODES
00029 // Used either as return values or leave codes. Apart from these, system error
00030 // codes can also be returned or leaved with.
00031 
00033 const TInt  KErrInvalidColumn       = -300;
00034 
00036 const TInt  KErrInvalidBearer       = -301;
00037 
00039 const TInt  KErrInvalidDatabaseType = -302;
00040 
00042 const TInt  KErrInvalidName         = -303;
00043 
00044 const TInt  KErrDescOverflow        = -304;
00045 
00047 const TInt  KErrNullPointerPassed   = -305;
00048 
00050 const TInt  KErrInvalidFilterType   = -310;
00051 
00053 const TInt  KErrInvalidBearerType   = -311;
00054 
00056 const TInt  KErrInvalidIspRequest   = -312;
00057 
00059 const TInt  KErrValueUnspecified    = -323;
00060 
00061 const TInt  KApEngineMaxSql              = 255;
00062 
00063 
00064 
00066 const TInt  KEApSortUidAscending         = 0x00000001;  
00067 
00068 
00069 
00070 
00071 const TInt  KEApSortUidDescending        = 0x00000002;  
00072 
00073 
00074 
00075 
00076 const TInt  KEApSortNameAscending        = 0x00000003;  
00077 
00078 
00079 
00080 
00081 const TInt  KEApSortNameDescending       = 0x00000004;  
00082 
00083 
00084 
00085 
00086 
00087 
00089 const TInt  KEApIspTypeInternetOnly     = 0x00000001;   
00090 
00091 
00092 
00093 
00094 const TInt  KEApIspTypeWAPOnly          = 0x00000002;   
00095 
00096 
00097 
00098 const TInt  KEApIspTypeInternetAndWAP   = 0x00000004;   
00099 
00100 
00101 
00102 
00103 const TInt  KEApIspTypeWAPMandatory     = 0x00000008;   
00104 
00105 
00106 
00107 
00108 
00109 const TInt  KEApIspTypeAll              = 0x00000010;   
00110 
00111 
00112 const TInt  KEApIspTypeMMSMandatory     = 0x00000020;   
00113 
00114 
00115 
00116 
00117 
00118 
00119 
00120 
00121 
00122 const TInt KModifiableTextLength        = 100;
00123 const TInt KModifiableLongTextLength    = 1000;
00124 
00125 
00126 // typedef
00127 enum TApBearerType      
00128 
00129 
00130     {
00131     EApBearerTypeCSD        = 0x00000001,   
00132 
00133     EApBearerTypeGPRS       = 0x00000002,   
00134 
00135     EApBearerTypeHSCSD      = 0x00000004,   
00136 
00137 
00138 
00139 // Will be deprecated, use EApBearerTypeAllBearers instead !
00140     EApBearerTypeAll        = 0x00000008,   
00141 
00142                                             
00143     EApBearerTypeCDMA       = 0x00000010,   
00144 
00145     EApBearerTypeWLAN       = 0x00000020,   
00146 
00147     EApBearerTypeLAN        = 0x00000040,   
00148 
00149     EApBearerTypeLANModem   = 0x00000080,   
00150 
00151     EApBearerTypeAllBearers = 0xffffffff    
00152 
00153     };
00154 
00155 
00156 enum TApCallSpeed       
00157 
00158     {
00159     KSpeedAutobaud=0x00000000,          
00160     KSpeed9600=0x00000001,              
00161     KSpeed14400=0x00000002,             
00162     KSpeed19200=0x00000003,             
00163     KSpeed28800=0x00000004,             
00164     KSpeed38400=0x00000005,             
00165     KSpeed43200=0x00000006,             
00166     KSpeed56000=0x00000007              
00167     };
00168 
00169 
00170 enum TApCallType        
00171 
00172     {
00173     ECallTypeAnalogue,          
00174     ECallTypeISDNv110,          
00175     ECallTypeISDNv120           
00176     };
00177 
00178 const TUint32 KMaxAnalogueSpeed    = KSpeed28800;
00179 const TUint32 KMaxIsdnSpeed        = KSpeed43200;
00180 
00181 //if WCDMA is enabled, then the max speed are :
00182 const TUint32 KMaxAnalogueSpeedWcdma    = KSpeed28800;
00183 const TUint32 KMaxIsdnSpeedWdma         = KSpeed56000;
00184 
00185 
00186 enum TIPvType
00187     {
00188     EIPv4       = 1,
00189     EIPv6       = 2
00190     };
00191 
00192 
00193 enum TWlanNetMode
00194     {
00195     EAdhoc       = 0,
00196     EInfra       = 1
00197     };
00198 
00199 
00200 enum TWlanSecMode
00201     {
00202     EOpen       = 1,
00203     EWep        = 2,
00204     E802_1x     = 4,
00205     EWpa        = 8,
00206     EWpa2       = 16
00207     };
00208 
00209 
00210 #define KApMaxConnNameLength            30
00211 
00212 // The following constants are deprecated, DO NOT USE THEM!
00213 // DO NOT USE STARTS
00214 #define KApMaxGprsApNameLength          100
00215 #define KApMaxLoginNameLength           32
00216 #define KApMaxStartPageLength           1000
00217 #define KApMaxAccessNumLength           21
00218 #define KApCBInfoLength                 21
00219 #define KApMaxServiceCentreAddrLength   21
00220 #define KApMaxIpAddressLength           100
00221 #define KApMaxLoginScriptLength         1000
00222 #define KApMaxLoginPasswordLength       20
00223 // DO NOT USE ENDS
00224 
00225 
00226 _LIT( KSqlSelectNum, "SELECT %s from %s WHERE %s=%d" );
00227 _LIT( KSqlSelectBaseNum, "SELECT * from %s WHERE %s=%d" );
00228 
00230 _LIT( KDynIpAddress, "0.0.0.0" );
00231 
00233 _LIT( KInvStartPage, "http://" );
00234 
00236 _LIT( KLocation, "Mobile" );
00237 
00238 
00240 _LIT( KModemBearerCSD, "CSD Modem" ); 
00241 
00243 _LIT( KModemBearerGPRS, "GPRS Modem" );
00244 
00246 _LIT( KModemBearerCDMA, "CDMA Modem" );
00247 
00249 _LIT( KModemBearerWLAN, "WLANBearer" );
00250 
00252 _LIT( KModemBearerLAN, "LANBearer" );
00253 
00255 _LIT( KModemBearerLANModem, "LANModem" );
00256 
00257 
00259 const TInt KRetryCount              = 5;
00260 
00261 
00263 // (==0.10 secs = 100000microsec.)
00264 #define KRetryWait  100000 /* in TTimeIntervalMicroSeconds32 */
00265 
00266 // callback timeout in microseconds
00267 const TUint32 KCallBackTimeOut  = 60000000;
00268 
00269 _LIT( KDynIpv6Address, "0:0:0:0:0:0:0:0" );
00270 
00271 
00272 _LIT( KDaemonManagerName, "NetCfgExtnDhcp" );
00273 _LIT( KConfigDaemonName, "!DhcpServ" );
00274 
00275 
00276 #endif
00277 
00278 // End of File

Copyright © Nokia Corporation 2001-2007
Back to top