00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef APENGINE_CONSTS_H
00023 #define APENGINE_CONSTS_H
00024
00025
00026 #warning This header file has been deprecated. Will be removed in one of the next SDK releases.
00027
00028
00029 #include <ApEngineVer.h>
00030
00031
00032
00033
00034
00035
00037 const TInt KErrInvalidColumn = -300;
00038
00040 const TInt KErrInvalidBearer = -301;
00041
00043 const TInt KErrInvalidDatabaseType = -302;
00044
00046 const TInt KErrInvalidName = -303;
00047
00048 const TInt KErrDescOverflow = -304;
00049
00051 const TInt KErrNullPointerPassed = -305;
00052
00054 const TInt KErrInvalidFilterType = -310;
00055
00057 const TInt KErrInvalidBearerType = -311;
00058
00060 const TInt KErrInvalidIspRequest = -312;
00061
00063 const TInt KErrValueUnspecified = -323;
00064
00065 const TInt KApEngineMaxSql = 255;
00066
00067
00068
00070 const TInt KEApSortUidAscending = 0x00000001;
00071
00072
00073
00074
00075 const TInt KEApSortUidDescending = 0x00000002;
00076
00077
00078
00079
00080 const TInt KEApSortNameAscending = 0x00000003;
00081
00082
00083
00084
00085 const TInt KEApSortNameDescending = 0x00000004;
00086
00087
00088
00089
00090
00091
00093 const TInt KEApIspTypeInternetOnly = 0x00000001;
00094
00095
00096
00097
00098 const TInt KEApIspTypeWAPOnly = 0x00000002;
00099
00100
00101
00102 const TInt KEApIspTypeInternetAndWAP = 0x00000004;
00103
00104
00105
00106
00107 const TInt KEApIspTypeWAPMandatory = 0x00000008;
00108
00109
00110
00111
00112
00113 const TInt KEApIspTypeAll = 0x00000010;
00114
00115
00116 const TInt KEApIspTypeMMSMandatory = 0x00000020;
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126 const TInt KModifiableTextLength = 100;
00127 const TInt KModifiableLongTextLength = 1000;
00128
00129
00130
00131 enum TApBearerType
00132
00133
00134 {
00135 EApBearerTypeCSD = 0x00000001,
00136
00137 EApBearerTypeGPRS = 0x00000002,
00138
00139 EApBearerTypeHSCSD = 0x00000004,
00140
00141
00142
00143
00144 EApBearerTypeAll = 0x00000008,
00145
00146
00147 EApBearerTypeCDMA = 0x00000010,
00148
00149 EApBearerTypeWLAN = 0x00000020,
00150
00151 EApBearerTypeLAN = 0x00000040,
00152
00153 EApBearerTypeLANModem = 0x00000080,
00154
00155 EApBearerTypeAllBearers = 0xffffffff
00156
00157 };
00158
00159
00160 enum TApCallSpeed
00161
00162 {
00163 KSpeedAutobaud=0x00000000,
00164 KSpeed9600=0x00000001,
00165 KSpeed14400=0x00000002,
00166 KSpeed19200=0x00000003,
00167 KSpeed28800=0x00000004,
00168 KSpeed38400=0x00000005,
00169 KSpeed43200=0x00000006,
00170 KSpeed56000=0x00000007
00171 };
00172
00173
00174 enum TApCallType
00175
00176 {
00177 ECallTypeAnalogue,
00178 ECallTypeISDNv110,
00179 ECallTypeISDNv120
00180 };
00181
00182 const TUint32 KMaxAnalogueSpeed = KSpeed28800;
00183 const TUint32 KMaxIsdnSpeed = KSpeed43200;
00184
00185
00186 const TUint32 KMaxAnalogueSpeedWcdma = KSpeed28800;
00187 const TUint32 KMaxIsdnSpeedWdma = KSpeed56000;
00188
00189
00190 enum TIPvType
00191 {
00192 EIPv4 = 1,
00193 EIPv6 = 2
00194 };
00195
00196
00197 enum TWlanNetMode
00198 {
00199 EAdhoc = 0,
00200 EInfra = 1
00201 };
00202
00203
00204 enum TWlanSecMode
00205 {
00206 EOpen = 1,
00207 EWep = 2,
00208 E802_1x = 4,
00209 EWpa = 8,
00210 EWpa2 = 16
00211 };
00212
00213
00214 #define KApMaxConnNameLength 30
00215
00216
00217
00218 #define KApMaxGprsApNameLength 100
00219 #define KApMaxLoginNameLength 32
00220 #define KApMaxStartPageLength 1000
00221 #define KApMaxAccessNumLength 21
00222 #define KApCBInfoLength 21
00223 #define KApMaxServiceCentreAddrLength 21
00224 #define KApMaxIpAddressLength 100
00225 #define KApMaxLoginScriptLength 1000
00226 #define KApMaxLoginPasswordLength 20
00227
00228
00229
00230 _LIT( KSqlSelectNum, "SELECT %s from %s WHERE %s=%d" );
00231 _LIT( KSqlSelectBaseNum, "SELECT * from %s WHERE %s=%d" );
00232
00234 _LIT( KDynIpAddress, "0.0.0.0" );
00235
00237 _LIT( KInvStartPage, "http://" );
00238
00240 _LIT( KLocation, "Mobile" );
00241
00242
00244 _LIT( KModemBearerCSD, "CSD Modem" );
00245
00247 _LIT( KModemBearerGPRS, "GPRS Modem" );
00248
00250 _LIT( KModemBearerCDMA, "CDMA Modem" );
00251
00253 _LIT( KModemBearerWLAN, "WLANBearer" );
00254
00256 _LIT( KModemBearerLAN, "LANBearer" );
00257
00259 _LIT( KModemBearerLANModem, "LANModem" );
00260
00261
00263 const TInt KRetryCount = 5;
00264
00265
00267
00268 #define KRetryWait 100000
00269
00270
00271 const TUint32 KCallBackTimeOut = 60000000;
00272
00273 _LIT( KDynIpv6Address, "0:0:0:0:0:0:0:0" );
00274
00275
00276 _LIT( KDaemonManagerName, "NetCfgExtnDhcp" );
00277 _LIT( KConfigDaemonName, "!DhcpServ" );
00278
00279
00280 #endif
00281
00282