williamr@2: /* williamr@2: * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). williamr@2: * All rights reserved. williamr@2: * This component and the accompanying materials are made available williamr@4: * under the terms of "Eclipse Public License v1.0" williamr@2: * which accompanies this distribution, and is available williamr@4: * at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@2: * williamr@2: * Initial Contributors: williamr@2: * Nokia Corporation - initial contribution. williamr@2: * williamr@2: * Contributors: williamr@2: * williamr@2: * Description: Used constants of the ApEngine. williamr@2: * williamr@2: */ williamr@2: williamr@2: williamr@2: #ifndef APENGINE_CONSTS_H williamr@2: #define APENGINE_CONSTS_H williamr@2: williamr@2: // Deprecation warning williamr@2: #warning This header file has been deprecated. Will be removed in one of the next SDK releases. williamr@2: williamr@2: williamr@2: #include williamr@2: williamr@2: williamr@2: // ERROR CODES williamr@2: // Used either as return values or leave codes. Apart from these, system error williamr@2: // codes can also be returned or leaved with. williamr@2: williamr@2: /// Attempting to read or write a column which does not exists. williamr@2: const TInt KErrInvalidColumn = -300; williamr@2: williamr@2: /// The given bearer is not valid. williamr@2: const TInt KErrInvalidBearer = -301; williamr@2: williamr@2: /// The type of the database is not valid williamr@2: const TInt KErrInvalidDatabaseType = -302; williamr@2: williamr@2: /// The name of the AP is not valid (length = 0) williamr@2: const TInt KErrInvalidName = -303; williamr@2: williamr@2: const TInt KErrDescOverflow = -304; williamr@2: williamr@2: /// The passed pointer was invalid = NULL williamr@2: const TInt KErrNullPointerPassed = -305; williamr@2: williamr@2: /// The filter is not valid williamr@2: const TInt KErrInvalidFilterType = -310; williamr@2: williamr@2: /// The bearer is not valid williamr@2: const TInt KErrInvalidBearerType = -311; williamr@2: williamr@2: /// The ISP type given is invalid williamr@2: const TInt KErrInvalidIspRequest = -312; williamr@2: williamr@2: /// Used when the requested value was not specified in the database williamr@2: const TInt KErrValueUnspecified = -323; williamr@2: williamr@2: const TInt KApEngineMaxSql = 255; williamr@2: williamr@2: williamr@2: williamr@2: /// These constants are used to represent the sorting order used in CApSelect. williamr@2: const TInt KEApSortUidAscending = 0x00000001; ///< The sorting is williamr@2: ///< done according to williamr@2: ///< the ID of the williamr@2: ///< access points in williamr@2: ///< ascending order. williamr@2: const TInt KEApSortUidDescending = 0x00000002; ///< The sorting is williamr@2: ///< done according to williamr@2: ///< the ID of the williamr@2: ///< access points in williamr@2: ///< descending order. williamr@2: const TInt KEApSortNameAscending = 0x00000003; ///< The sorting is williamr@2: ///< done according to williamr@2: ///< the name of the williamr@2: ///< access points in williamr@2: ///< ascending order. williamr@2: const TInt KEApSortNameDescending = 0x00000004; ///< The sorting is williamr@2: ///< done according to williamr@2: ///< the name of the williamr@2: ///< access points in williamr@2: ///< descending order. williamr@2: williamr@2: williamr@2: /// These enums are used to represent one the filtering criterias in CApSelect. williamr@2: const TInt KEApIspTypeInternetOnly = 0x00000001; ///< Filter allows only williamr@2: ///< access points that williamr@2: ///< are capable of williamr@2: ///< only internet williamr@2: ///< access. williamr@2: const TInt KEApIspTypeWAPOnly = 0x00000002; ///< Filter allows only williamr@2: ///< access points that williamr@2: ///< are capable of williamr@2: ///< only WAP access. williamr@2: const TInt KEApIspTypeInternetAndWAP = 0x00000004; ///< Filter allows only williamr@2: ///< access points that williamr@2: ///< are capable of williamr@2: ///< internet AND williamr@2: ///< WAP access. williamr@2: const TInt KEApIspTypeWAPMandatory = 0x00000008; ///< Filter allows only williamr@2: ///< access points that williamr@2: ///< are capable of williamr@2: ///< WAP access AND williamr@2: ///< contain mandatory williamr@2: ///< WAP settings. williamr@2: const TInt KEApIspTypeAll = 0x00000010; ///< No filtering is williamr@2: ///< done, all access williamr@2: ///< points are shown. williamr@2: const TInt KEApIspTypeMMSMandatory = 0x00000020; ///< Filter allows only williamr@2: ///< access points that williamr@2: ///< are capable of MMS williamr@2: ///< and contain MMS williamr@2: ///< mandatory settings williamr@2: ///< Starting Page williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: const TInt KModifiableTextLength = 100; williamr@2: const TInt KModifiableLongTextLength = 1000; williamr@2: williamr@2: williamr@2: // typedef williamr@2: enum TApBearerType /// These enums are used to represent the possible williamr@2: /// bearer types and the filtering criteria williamr@2: /// in CApSelect. williamr@2: { williamr@2: EApBearerTypeCSD = 0x00000001, ///< Filter allows only access williamr@2: ///< points that has CSD as bearer. williamr@2: EApBearerTypeGPRS = 0x00000002, ///< Filter allows only access williamr@2: ///< points that has GPRS as bearer williamr@2: EApBearerTypeHSCSD = 0x00000004, ///< Filter allows only access williamr@2: ///< points that has HSCSD williamr@2: ///< as bearer. williamr@2: williamr@2: // Will be deprecated, use EApBearerTypeAllBearers instead ! williamr@2: EApBearerTypeAll = 0x00000008, ///< No filtering is done, williamr@2: ///< all access points are shown. williamr@2: williamr@2: EApBearerTypeCDMA = 0x00000010, ///< Filter allows only access williamr@2: ///< points that has CDMA as bearer williamr@2: EApBearerTypeWLAN = 0x00000020, ///< Filter allows only access williamr@2: ///< points that has WLAN as bearer williamr@2: EApBearerTypeLAN = 0x00000040, ///< Filter allows only access williamr@2: ///< points that has LAN as bearer williamr@2: EApBearerTypeLANModem = 0x00000080, ///< Filter allows only access williamr@2: ///< points with LAN modem bearer williamr@2: EApBearerTypeAllBearers = 0xffffffff ///< No filtering is done, williamr@2: ///< all access points are shown. williamr@2: }; williamr@2: williamr@2: williamr@2: enum TApCallSpeed /// These enums are used to represent williamr@2: /// the connection speed. williamr@2: { williamr@2: KSpeedAutobaud=0x00000000, ///< Autodetect williamr@2: KSpeed9600=0x00000001, ///< 9600 williamr@2: KSpeed14400=0x00000002, ///< 14400 williamr@2: KSpeed19200=0x00000003, ///< 19200 williamr@2: KSpeed28800=0x00000004, ///< 28800 williamr@2: KSpeed38400=0x00000005, ///< 38400 williamr@2: KSpeed43200=0x00000006, ///< 43200 williamr@2: KSpeed56000=0x00000007 ///< 56000 williamr@2: }; williamr@2: williamr@2: williamr@2: enum TApCallType /// These enums are used to represent williamr@2: /// the conn. type Analogue/ISDNv110/ISDNv120 williamr@2: { williamr@2: ECallTypeAnalogue, ///< Analogue williamr@2: ECallTypeISDNv110, ///< ISDN v. 110 williamr@2: ECallTypeISDNv120 ///< ISDN v. 120 williamr@2: }; williamr@2: williamr@2: const TUint32 KMaxAnalogueSpeed = KSpeed28800; williamr@2: const TUint32 KMaxIsdnSpeed = KSpeed43200; williamr@2: williamr@2: //if WCDMA is enabled, then the max speed are : williamr@2: const TUint32 KMaxAnalogueSpeedWcdma = KSpeed28800; williamr@2: const TUint32 KMaxIsdnSpeedWdma = KSpeed56000; williamr@2: williamr@2: williamr@2: enum TIPvType williamr@2: { williamr@2: EIPv4 = 1, williamr@2: EIPv6 = 2 williamr@2: }; williamr@2: williamr@2: williamr@2: enum TWlanNetMode williamr@2: { williamr@2: EAdhoc = 0, williamr@2: EInfra = 1 williamr@2: }; williamr@2: williamr@2: williamr@2: enum TWlanSecMode williamr@2: { williamr@2: EOpen = 1, williamr@2: EWep = 2, williamr@2: E802_1x = 4, williamr@2: EWpa = 8, williamr@2: EWpa2 = 16 williamr@2: }; williamr@2: williamr@2: williamr@2: #define KApMaxConnNameLength 30 williamr@2: williamr@2: // The following constants are deprecated, DO NOT USE THEM! williamr@2: // DO NOT USE STARTS williamr@2: #define KApMaxGprsApNameLength 100 williamr@2: #define KApMaxLoginNameLength 32 williamr@2: #define KApMaxStartPageLength 1000 williamr@2: #define KApMaxAccessNumLength 21 williamr@2: #define KApCBInfoLength 21 williamr@2: #define KApMaxServiceCentreAddrLength 21 williamr@2: #define KApMaxIpAddressLength 100 williamr@2: #define KApMaxLoginScriptLength 1000 williamr@2: #define KApMaxLoginPasswordLength 20 williamr@2: // DO NOT USE ENDS williamr@2: williamr@2: williamr@2: _LIT( KSqlSelectNum, "SELECT %s from %s WHERE %s=%d" ); williamr@2: _LIT( KSqlSelectBaseNum, "SELECT * from %s WHERE %s=%d" ); williamr@2: williamr@2: /// 'Dynamic' IP address to use in comparisons williamr@2: _LIT( KDynIpAddress, "0.0.0.0" ); williamr@2: williamr@2: /// A start page, which have to be considered as invalid. williamr@2: _LIT( KInvStartPage, "http://" ); williamr@2: williamr@2: /// A name for the 'location' to use williamr@2: _LIT( KLocation, "Mobile" ); williamr@2: williamr@2: williamr@2: /// Modem bearer names for (HS)CSD Access Points williamr@2: _LIT( KModemBearerCSD, "CSD Modem" ); williamr@2: williamr@2: /// Modem bearer names for GPRS/WCDMA Access Points williamr@2: _LIT( KModemBearerGPRS, "GPRS Modem" ); williamr@2: williamr@2: /// Modem bearer names for CDMA Access Points williamr@2: _LIT( KModemBearerCDMA, "CDMA Modem" ); williamr@2: williamr@2: /// Modem bearer names for WLAN Access Points williamr@2: _LIT( KModemBearerWLAN, "WLANBearer" ); williamr@2: williamr@2: /// Modem bearer names for LAN Access Points williamr@2: _LIT( KModemBearerLAN, "LANBearer" ); williamr@2: williamr@2: /// Modem bearer names for LAN Modem Access Points williamr@2: _LIT( KModemBearerLANModem, "LANModem" ); williamr@2: williamr@2: williamr@2: /// Number of retries that are used in database operations williamr@2: const TInt KRetryCount = 5; williamr@2: williamr@2: williamr@2: /// Time to wait before retry database operation williamr@2: // (==0.10 secs = 100000microsec.) williamr@2: #define KRetryWait 100000 /* in TTimeIntervalMicroSeconds32 */ williamr@2: williamr@2: // callback timeout in microseconds williamr@2: const TUint32 KCallBackTimeOut = 60000000; williamr@2: williamr@2: _LIT( KDynIpv6Address, "0:0:0:0:0:0:0:0" ); williamr@2: williamr@2: williamr@2: _LIT( KDaemonManagerName, "NetCfgExtnDhcp" ); williamr@2: _LIT( KConfigDaemonName, "!DhcpServ" ); williamr@2: williamr@2: williamr@2: #endif williamr@2: williamr@2: // End of File