williamr@2
|
1 |
/*
|
williamr@2
|
2 |
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
|
williamr@2
|
3 |
* All rights reserved.
|
williamr@2
|
4 |
* This component and the accompanying materials are made available
|
williamr@4
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
williamr@2
|
6 |
* which accompanies this distribution, and is available
|
williamr@4
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
williamr@2
|
8 |
*
|
williamr@2
|
9 |
* Initial Contributors:
|
williamr@2
|
10 |
* Nokia Corporation - initial contribution.
|
williamr@2
|
11 |
*
|
williamr@2
|
12 |
* Contributors:
|
williamr@2
|
13 |
*
|
williamr@2
|
14 |
* Description: Declaration of the class CApAccessPointItem
|
williamr@2
|
15 |
*
|
williamr@2
|
16 |
*/
|
williamr@2
|
17 |
|
williamr@2
|
18 |
|
williamr@2
|
19 |
#ifndef ACCESSPOINTITEM_H
|
williamr@2
|
20 |
#define ACCESSPOINTITEM_H
|
williamr@2
|
21 |
|
williamr@2
|
22 |
// Deprecation warning
|
williamr@2
|
23 |
#warning This header file has been deprecated. Will be removed in one of the next SDK releases.
|
williamr@2
|
24 |
|
williamr@2
|
25 |
|
williamr@2
|
26 |
// INCLUDES
|
williamr@2
|
27 |
#include <etelmm.h>
|
williamr@2
|
28 |
#include <cdbcols.h>
|
williamr@2
|
29 |
#include <nifvar.h>
|
williamr@4
|
30 |
#ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
|
williamr@4
|
31 |
#include <nifvar_internal.h>
|
williamr@4
|
32 |
#endif
|
williamr@2
|
33 |
#include <ApEngineVer.h>
|
williamr@2
|
34 |
#include <ApEngineConsts.h>
|
williamr@2
|
35 |
|
williamr@2
|
36 |
|
williamr@2
|
37 |
// DATA TYPES
|
williamr@2
|
38 |
/**
|
williamr@2
|
39 |
* This enum is used to identify the data when reading or writing
|
williamr@2
|
40 |
* CApAccessPointItem data.
|
williamr@2
|
41 |
* <br>Field types:
|
williamr@2
|
42 |
* <br>
|
williamr@2
|
43 |
* 8 - bit text:
|
williamr@2
|
44 |
* <br>ReadTextL( const TApMember aColumn, TDes8& aValue )
|
williamr@2
|
45 |
* <br>WriteTextL( const TApMember aColumn, const TDesC8& aValue )
|
williamr@2
|
46 |
* <br> EApIspIfCallbackInfo
|
williamr@2
|
47 |
* <br> EApIspInitString
|
williamr@2
|
48 |
* <br>
|
williamr@2
|
49 |
* <br>
|
williamr@2
|
50 |
* 16-bit text:
|
williamr@2
|
51 |
* <br>ReadTextL( const TApMember aColumn, TDes16& aValue )
|
williamr@2
|
52 |
* <br>WriteTextL( const TApMember aColumn, const TDesC16& aValue )
|
williamr@2
|
53 |
* <br> EApWapAccessPointName
|
williamr@2
|
54 |
* <br> EApWapCurrentBearer
|
williamr@2
|
55 |
* <br> EApWapGatewayAddress
|
williamr@2
|
56 |
* <br> EApWapServiceCentreAddress
|
williamr@2
|
57 |
* <br> EApIapName
|
williamr@2
|
58 |
* <br> EApIapServiceType
|
williamr@2
|
59 |
* <br> EApIspName
|
williamr@2
|
60 |
* <br> EApIspDescription
|
williamr@2
|
61 |
* <br> EApIspDefaultTelNumber
|
williamr@2
|
62 |
* <br> EApIspLoginName
|
williamr@2
|
63 |
* <br> EApIspLoginPass
|
williamr@2
|
64 |
* <br> EApIspIfName
|
williamr@2
|
65 |
* <br> EApGprsIfName
|
williamr@2
|
66 |
* <br> EApIspIfParams
|
williamr@2
|
67 |
* <br> EApGprsIfParams
|
williamr@2
|
68 |
* <br> EApIspIfNetworks
|
williamr@2
|
69 |
* <br> EApGprsIfNetworks
|
williamr@2
|
70 |
* <br> EApIspIfAuthName
|
williamr@2
|
71 |
* <br> EApGprsIfAuthName
|
williamr@2
|
72 |
* <br> EApIspIfAuthPass
|
williamr@2
|
73 |
* <br> EApGprsIfAuthPassword
|
williamr@2
|
74 |
* <br> EApIspIPAddr
|
williamr@2
|
75 |
* <br> EApGprsIpAddr
|
williamr@2
|
76 |
* <br> EApIspIPNetMask
|
williamr@2
|
77 |
* <br> EApGprsIpNetMask
|
williamr@2
|
78 |
* <br> EApIspIPGateway
|
williamr@2
|
79 |
* <br> EApGprsIpGateway
|
williamr@2
|
80 |
* <br> EApIspIPNameServer1
|
williamr@2
|
81 |
* <br> EApGprsIPNameServer1
|
williamr@2
|
82 |
* <br> EApIspIPNameServer2
|
williamr@2
|
83 |
* <br> EApGprsIPNameServer2
|
williamr@2
|
84 |
* <br> EApGprsPdpAddress
|
williamr@2
|
85 |
* <br> EApProxyProtocolName
|
williamr@2
|
86 |
* <br> EApNetworkName
|
williamr@2
|
87 |
* <br> EApProxyLoginName
|
williamr@2
|
88 |
* <br> EApProxyLoginPass
|
williamr@2
|
89 |
* <br> EApIP6NameServer1
|
williamr@2
|
90 |
* <br> EApIP6NameServer2
|
williamr@2
|
91 |
* <br> EApLanBearerName
|
williamr@2
|
92 |
* <br>
|
williamr@2
|
93 |
* <br>Long text, 16 bit:
|
williamr@2
|
94 |
* <br>const HBufC* ReadConstLongTextL( const TApMember aColumn )
|
williamr@2
|
95 |
* <br>WriteLongTextL( const TApMember aColumn, const TDesC& aValue )
|
williamr@2
|
96 |
* <br> EApWapStartPage
|
williamr@2
|
97 |
* <br> EApIspLoginScript
|
williamr@2
|
98 |
* <br> EApGprsAccessPointName
|
williamr@2
|
99 |
* <br> EApProxyServerAddress
|
williamr@2
|
100 |
* <br> EApProxyExceptions
|
williamr@2
|
101 |
* <br>
|
williamr@2
|
102 |
* <br>Uint:
|
williamr@2
|
103 |
* <br>ReadUint( const TApMember aColumn, TUint32& aValue )
|
williamr@2
|
104 |
* <br>WriteUint( const TApMember aColumn, const TUint32& aValue )
|
williamr@2
|
105 |
* <br> EApWapAccessPointID
|
williamr@2
|
106 |
|
williamr@2
|
107 |
// DEPRECATED
|
williamr@2
|
108 |
* <br> EApWapIsp
|
williamr@2
|
109 |
|
williamr@2
|
110 |
// DEPRECATED
|
williamr@2
|
111 |
* <br> EApWapChargecard
|
williamr@2
|
112 |
|
williamr@2
|
113 |
* <br> EApWapIap
|
williamr@2
|
114 |
|
williamr@2
|
115 |
// DEPRECATED
|
williamr@2
|
116 |
* <br> EApWapIspType
|
williamr@2
|
117 |
|
williamr@2
|
118 |
* <br> EApIapServiceId
|
williamr@2
|
119 |
* <br> EApIapChargecard
|
williamr@2
|
120 |
* <br> EApIspIspType
|
williamr@2
|
121 |
* <br> EApIspAuthRetries
|
williamr@2
|
122 |
* <br> EApGprsIfAuthRetries
|
williamr@2
|
123 |
* <br> EApIspIfCallbackType
|
williamr@2
|
124 |
* <br> EApIspCallBackTimeOut
|
williamr@2
|
125 |
* <br> EApIspBearerName
|
williamr@2
|
126 |
* <br> EApIspBearerSpeed
|
williamr@2
|
127 |
* <br> EApIspBearerCE
|
williamr@2
|
128 |
* <br> EApIspBearerType
|
williamr@2
|
129 |
* <br> EApIspBearerCallTypeIsdn
|
williamr@2
|
130 |
* <br> EApIspChannelCoding
|
williamr@2
|
131 |
* <br> EApIspAIUR
|
williamr@2
|
132 |
* <br> EApIspRequestedTimeSlots
|
williamr@2
|
133 |
* <br> EApIspMaximumTimeSlots
|
williamr@2
|
134 |
* <br> EApGprsPdpType
|
williamr@2
|
135 |
* <br> EApGprsReqPrecedence
|
williamr@2
|
136 |
* <br> EApGprsReqDelay
|
williamr@2
|
137 |
* <br> EApGprsReqReliability
|
williamr@2
|
138 |
* <br> EApGprsReqPeakThroughput
|
williamr@2
|
139 |
* <br> EApGprsReqMeanPeakThroughput
|
williamr@2
|
140 |
* <br> EApGprsMinPrecedence
|
williamr@2
|
141 |
* <br> EApGprsMinDelay
|
williamr@2
|
142 |
* <br> EApGprsMinReliability
|
williamr@2
|
143 |
* <br> EApGprsMinPeakThroughput
|
williamr@2
|
144 |
* <br> EApGprsMinMeanThroughput
|
williamr@2
|
145 |
* <br> EApWapWspOption
|
williamr@2
|
146 |
* <br> EApIspBearerCallTypeIsdn
|
williamr@2
|
147 |
* <br> EApProxyPortNumber
|
williamr@2
|
148 |
* <br> EApNetworkID
|
williamr@2
|
149 |
* <br> EApWapProxyPort
|
williamr@2
|
150 |
* <br> EApIapBearerService
|
williamr@2
|
151 |
* <br> EApIapBearerID
|
williamr@2
|
152 |
* <br>
|
williamr@2
|
153 |
* <br>Bool:
|
williamr@2
|
154 |
* <br>ReadBool( const TApMember aColumn, TBool& aValue )
|
williamr@2
|
155 |
* <br>WriteBool( const TApMember aColumn, const TBool& aValue )
|
williamr@2
|
156 |
* <br> EApWapSecurity
|
williamr@2
|
157 |
* <br> EApIspDialResolution
|
williamr@2
|
158 |
* <br> EApIspUseLoginScript
|
williamr@2
|
159 |
* <br> EApIspPromptForLogin
|
williamr@2
|
160 |
* <br> EApIspDisplayPCT
|
williamr@2
|
161 |
* <br> EApIspIfPromptForAuth
|
williamr@2
|
162 |
* <br> EApGprsIfPromptForAuth
|
williamr@2
|
163 |
* <br> EApIspIfCallbackEnabled
|
williamr@2
|
164 |
* <br> EApIspIPAddrFromServer
|
williamr@2
|
165 |
* <br> EApGprsIpAddrFromServer
|
williamr@2
|
166 |
* <br> EApIspIPDnsAddrFromServer
|
williamr@2
|
167 |
* <br> EApGprsIpDnsAddrFromServer
|
williamr@2
|
168 |
* <br> EApIspEnableIpHeaderComp
|
williamr@2
|
169 |
* <br> EApGprsHeaderCompression
|
williamr@2
|
170 |
* <br> EApIspEnableLCPExtensions
|
williamr@2
|
171 |
* <br> EApGprsEnableLCPExtensions
|
williamr@2
|
172 |
* <br> EApIspDisablePlainTextAuth
|
williamr@2
|
173 |
* <br> EApGprsDisablePlainTextAuth
|
williamr@2
|
174 |
* <br> EApIspEnableSWCompression
|
williamr@2
|
175 |
* <br> EApGprsDataCompression
|
williamr@2
|
176 |
* <br> EApGprsUseAnonymAccess
|
williamr@2
|
177 |
* <br> EApIsReadOnly
|
williamr@2
|
178 |
* <br> EApProxyUseProxy
|
williamr@2
|
179 |
* <br> EApHasProxySettings
|
williamr@2
|
180 |
* <br> EApIP6DNSAddrFromServer
|
williamr@2
|
181 |
*/
|
williamr@2
|
182 |
enum TApMember
|
williamr@2
|
183 |
{
|
williamr@2
|
184 |
// WAP Access Point Table
|
williamr@2
|
185 |
EApWapAccessPointID, ///< The Uid of the access point.
|
williamr@2
|
186 |
///< READ ONLY, assigned by the database.
|
williamr@2
|
187 |
EApWapAccessPointName, ///< The name of the access point
|
williamr@2
|
188 |
EApWapCurrentBearer, ///< Indicates the name of the table from
|
williamr@2
|
189 |
///< which to read the bearer information
|
williamr@2
|
190 |
EApWapStartPage, ///< WAP start page URL, LONG TEXT!
|
williamr@2
|
191 |
|
williamr@2
|
192 |
// WAP Common (present in both tables)
|
williamr@2
|
193 |
EApWapGatewayAddress, ///< WAP gateway address (IP address)
|
williamr@2
|
194 |
EApWapWspOption, ///< Enum value indicating whether
|
williamr@2
|
195 |
///< connection-oriented or connectionless
|
williamr@2
|
196 |
///< API should be used.
|
williamr@2
|
197 |
///< Type is TCommsDbWapWspOption.
|
williamr@2
|
198 |
EApWapSecurity, ///< Attepmt secure WTLS connection to
|
williamr@2
|
199 |
///< the gateway
|
williamr@2
|
200 |
|
williamr@2
|
201 |
// WAP IP Bearer Table
|
williamr@2
|
202 |
//* DEPRECATED
|
williamr@2
|
203 |
EApWapIsp, ///< Identifier of the ISP to use if this
|
williamr@2
|
204 |
///< is an ISP type database
|
williamr@2
|
205 |
//* DEPRECATED
|
williamr@2
|
206 |
EApWapChargecard, ///< Identifier for the chargecard to use
|
williamr@2
|
207 |
///< if this is an ISP type database
|
williamr@2
|
208 |
EApWapIap, ///< Identifier of a record in the IAP
|
williamr@2
|
209 |
///< table to be used if this is an IAP
|
williamr@2
|
210 |
///< type database
|
williamr@2
|
211 |
//* DEPRECATED
|
williamr@2
|
212 |
EApWapIspType, ///< Enum value indicating whether IAP/ISP
|
williamr@2
|
213 |
///< is a dial in or a dial out
|
williamr@2
|
214 |
|
williamr@2
|
215 |
// WAP SMS Bearer Table
|
williamr@2
|
216 |
// EApSmsWapGatewayAddress is mapped to EApWapGatewayAddress,
|
williamr@2
|
217 |
// different enum needed only for being able to
|
williamr@2
|
218 |
// distinguish when editing...
|
williamr@2
|
219 |
|
williamr@2
|
220 |
// IAP Table
|
williamr@2
|
221 |
EApIapName, ///< The name of this IAP
|
williamr@2
|
222 |
EApIapServiceType, ///< Name of service table in this IAP
|
williamr@2
|
223 |
EApIapServiceId, ///< Identifier of service in this IAP
|
williamr@2
|
224 |
EApIapChargecard, ///< Identifier of the chargecard in
|
williamr@2
|
225 |
///< this IAP
|
williamr@2
|
226 |
|
williamr@2
|
227 |
// ISP table
|
williamr@2
|
228 |
EApIspName, ///< The name of this ISP
|
williamr@2
|
229 |
EApIspDescription, ///< Application's description of this ISP
|
williamr@2
|
230 |
EApIspIspType, ///< Enum value indicating ISP type, e.g.
|
williamr@2
|
231 |
///< Internet ISP, WAP Isp.TCommsDbIspType.
|
williamr@2
|
232 |
EApIspDefaultTelNumber, ///< Default phone number
|
williamr@2
|
233 |
EApIspDialResolution, ///< Perform dialing resolution for default
|
williamr@2
|
234 |
///< phone number?
|
williamr@2
|
235 |
EApIspUseLoginScript, ///< Use login script?
|
williamr@2
|
236 |
EApIspLoginScript, ///< Login script (used only if Use Login
|
williamr@2
|
237 |
///< Script is true), LONG TEXT.
|
williamr@2
|
238 |
EApIspPromptForLogin, ///< Prompt user for username and password?
|
williamr@2
|
239 |
EApIspLoginName, ///< Login name
|
williamr@2
|
240 |
EApIspLoginPass, ///< Login password
|
williamr@2
|
241 |
EApIspDisplayPCT, ///< Display PCT (without scanning script
|
williamr@2
|
242 |
///< for READ command) UNUSED, always FALSE
|
williamr@2
|
243 |
EApIspIfName, ///< Interface name
|
williamr@2
|
244 |
EApIspIfParams, ///< Interface parameter string
|
williamr@2
|
245 |
EApIspIfNetworks, ///< Comma separated list of network
|
williamr@2
|
246 |
///< protocols
|
williamr@2
|
247 |
EApIspIfPromptForAuth, ///< Prompt user for authentication
|
williamr@2
|
248 |
///< username and password?
|
williamr@2
|
249 |
EApIspIfAuthName, ///< Authentication username used by PPP
|
williamr@2
|
250 |
EApIspIfAuthPass, ///< Authentication password used by PPP
|
williamr@2
|
251 |
EApIspAuthRetries, ///< Number of times to retry
|
williamr@2
|
252 |
///< authentication if it fails
|
williamr@2
|
253 |
EApIspIfCallbackEnabled, ///< Is callback enabled?
|
williamr@2
|
254 |
EApIspIfCallbackType, ///< Enum value indicating the type of
|
williamr@2
|
255 |
///< callback (if enabled).
|
williamr@2
|
256 |
///< enum TCallbackAction.
|
williamr@2
|
257 |
EApIspIfCallbackInfo, ///< Info for callback request (if enabled)
|
williamr@2
|
258 |
///< 8-bit text field.
|
williamr@2
|
259 |
EApIspCallBackTimeOut, ///< Time to wait for callback in
|
williamr@2
|
260 |
///< microseconds (if enabled)
|
williamr@2
|
261 |
EApIspIPAddrFromServer, ///< Get IP address from server?
|
williamr@2
|
262 |
EApIspIPAddr, ///< IP address of interface
|
williamr@2
|
263 |
EApIspIPNetMask, ///< IP net mask of interface
|
williamr@2
|
264 |
EApIspIPGateway, ///< IP address of gateway
|
williamr@2
|
265 |
EApIspIPDnsAddrFromServer, ///< Get DNS address from server?
|
williamr@2
|
266 |
EApIspIPNameServer1, ///< IP address of primary name server
|
williamr@2
|
267 |
EApIspIPNameServer2, ///< IP address of secondary name server
|
williamr@2
|
268 |
EApIspEnableIpHeaderComp, ///< Enable IP header compression?
|
williamr@2
|
269 |
EApIspEnableLCPExtensions, ///< Enable LCP extensions?
|
williamr@2
|
270 |
EApIspDisablePlainTextAuth, ///< Disable plain text authentication?
|
williamr@2
|
271 |
EApIspEnableSWCompression, ///< Enable software compression?
|
williamr@2
|
272 |
EApIspBearerName, ///< Enum value specifying the name of the
|
williamr@2
|
273 |
///< bearer, e.g. Asunchronous Modem,
|
williamr@2
|
274 |
///< RBasicGsmCall::TBearerName
|
williamr@2
|
275 |
EApIspBearerSpeed, ///< Enum value specifying the bearer speed
|
williamr@2
|
276 |
///< TApCallSpeed.
|
williamr@2
|
277 |
EApIspBearerCallTypeIsdn, ///< call type is ISDN or Analogue...
|
williamr@2
|
278 |
EApIspBearerCE, ///< Enum value specifying the bearer CE,
|
williamr@2
|
279 |
///< RBasicGsmCall::TBearerCE
|
williamr@2
|
280 |
EApIspInitString, ///< Modem initialization string to be used
|
williamr@2
|
281 |
///< when this ISP is in use.This string
|
williamr@2
|
282 |
///< will be copied into the
|
williamr@2
|
283 |
///< MODEM_ISP_INIT_STRING field by
|
williamr@2
|
284 |
///< NetDial. 8-bit text field.
|
williamr@2
|
285 |
EApIspBearerType, ///< Enum value indicating connection type
|
williamr@2
|
286 |
///< (CSD or HSCSD), TCommsDbBearerType
|
williamr@2
|
287 |
EApIspChannelCoding, ///< Enum value specifying HSCSD channel
|
williamr@2
|
288 |
///< coding
|
williamr@2
|
289 |
EApIspAIUR, ///< Enum value specifying AIUR for HSCSD
|
williamr@2
|
290 |
EApIspRequestedTimeSlots, ///< Requested number of time slots for
|
williamr@2
|
291 |
///< HSCSD
|
williamr@2
|
292 |
EApIspMaximumTimeSlots, ///< Maximum number of time slots for HSCSD
|
williamr@2
|
293 |
///< which could be requested during this
|
williamr@2
|
294 |
///< connection
|
williamr@2
|
295 |
|
williamr@2
|
296 |
EApGprsAccessPointName, ///< Access Point Name, LONG TEXT!
|
williamr@2
|
297 |
EApGprsPdpType, ///< PDP type
|
williamr@2
|
298 |
EApGprsPdpAddress, ///< PDP address
|
williamr@2
|
299 |
EApGprsReqPrecedence, ///< Requested quality of service
|
williamr@2
|
300 |
///< precedence class
|
williamr@2
|
301 |
EApGprsReqDelay, ///< Requested quality of service
|
williamr@2
|
302 |
///< delay class
|
williamr@2
|
303 |
EApGprsReqReliability, ///< Requested quality of service
|
williamr@2
|
304 |
///< reliability class
|
williamr@2
|
305 |
EApGprsReqPeakThroughput, ///< Requested quality of service
|
williamr@2
|
306 |
///< peak throughput class
|
williamr@2
|
307 |
EApGprsReqMeanPeakThroughput, ///< Requested quality of service
|
williamr@2
|
308 |
///< mean throughput class
|
williamr@2
|
309 |
EApGprsMinPrecedence, ///< Minimum quality of service
|
williamr@2
|
310 |
///< precedence class
|
williamr@2
|
311 |
EApGprsMinDelay, ///< Minimum quality of service
|
williamr@2
|
312 |
///< delay class
|
williamr@2
|
313 |
EApGprsMinReliability, ///< Minimum quality of service
|
williamr@2
|
314 |
///< reliability class
|
williamr@2
|
315 |
EApGprsMinPeakThroughput, ///< Minimum quality of service
|
williamr@2
|
316 |
///< peak throughput class
|
williamr@2
|
317 |
EApGprsMinMeanThroughput, ///< Minimum quality of service
|
williamr@2
|
318 |
///< mean throughput class
|
williamr@2
|
319 |
EApGprsUseAnonymAccess, ///< Use anonymous access on?
|
williamr@2
|
320 |
|
williamr@2
|
321 |
// followings are mapped to ISP... fields
|
williamr@2
|
322 |
EApGprsDataCompression, ///< Data compression on?
|
williamr@2
|
323 |
EApGprsHeaderCompression, ///< IP header compression on?
|
williamr@2
|
324 |
EApGprsIfName, ///< Interface name
|
williamr@2
|
325 |
EApGprsIfParams, ///< Interface parameter string
|
williamr@2
|
326 |
EApGprsIfNetworks, ///< Comma separated list of network
|
williamr@2
|
327 |
///< protocols
|
williamr@2
|
328 |
EApGprsIfPromptForAuth, ///< Prompt user for authentication
|
williamr@2
|
329 |
///< username and password?
|
williamr@2
|
330 |
EApGprsIfAuthName, ///< Authentication username used by PPP
|
williamr@2
|
331 |
EApGprsIfAuthPassword, ///< Authentication password used by PPP
|
williamr@2
|
332 |
EApGprsIfAuthRetries, ///< Number of times to retry
|
williamr@2
|
333 |
///< authentication if it fails
|
williamr@2
|
334 |
EApGprsIpNetMask, ///< IP net mask of interface
|
williamr@2
|
335 |
EApGprsIpGateway, ///< IP address of gateway
|
williamr@2
|
336 |
EApGprsIpAddrFromServer, ///< Get IP adresses (for Symbian OS)
|
williamr@2
|
337 |
///< from server?
|
williamr@2
|
338 |
EApGprsIpAddr, ///< IP address of Symbian OS
|
williamr@2
|
339 |
EApGprsIpDnsAddrFromServer, ///< Get DNS addresses from server?
|
williamr@2
|
340 |
EApGprsIPNameServer1, ///< IP address of primary name server
|
williamr@2
|
341 |
EApGprsIPNameServer2, ///< IP address of secondary name server
|
williamr@2
|
342 |
EApGprsEnableLCPExtensions, ///< Enable LCP extension?
|
williamr@2
|
343 |
EApGprsDisablePlainTextAuth, ///< Disable plain text authentication?
|
williamr@2
|
344 |
EApIsReadOnly ///< Is the current record read only?
|
williamr@2
|
345 |
|
williamr@2
|
346 |
|
williamr@2
|
347 |
// expanding this enum is safe and will not cause any trouble as all public
|
williamr@2
|
348 |
// part of this module uses it as a const parameter and NEVER as
|
williamr@2
|
349 |
// a return value, therefore non-aware clients will NEVER meet with the new
|
williamr@2
|
350 |
// ones, thus it can not cause any problems that they do not expect them...
|
williamr@2
|
351 |
,
|
williamr@2
|
352 |
EApProxyServerAddress, ///< Proxy server address, long text
|
williamr@2
|
353 |
EApProxyProtocolName, ///< Proxy protocol name, Text
|
williamr@2
|
354 |
EApProxyPortNumber, ///< Proxy port number, TUint32
|
williamr@2
|
355 |
EApProxyUseProxy, ///< Use proxy server?, TBool
|
williamr@2
|
356 |
EApProxyExceptions, ///< ';' separated list of addr. for wich
|
williamr@2
|
357 |
///< the server should not be used.
|
williamr@2
|
358 |
///< Long text
|
williamr@2
|
359 |
EApHasProxySettings, ///< Has proxy settings? READ ONLY.
|
williamr@2
|
360 |
EApNetworkID, ///< The network ID
|
williamr@2
|
361 |
EApNetworkName, ///< The network name
|
williamr@2
|
362 |
|
williamr@2
|
363 |
EApWapProxyPort, ///< The wap proxy port number
|
williamr@2
|
364 |
EApProxyLoginName, ///< The proxy login name
|
williamr@2
|
365 |
EApProxyLoginPass, ///< The proxy login password
|
williamr@2
|
366 |
EApIapBearerService, ///< Bearer service
|
williamr@2
|
367 |
|
williamr@2
|
368 |
EApIP6DNSAddrFromServer, ///< Get IPv6 DNS addresses from server?
|
williamr@2
|
369 |
EApIP6NameServer1, ///< IP address of primary name server
|
williamr@2
|
370 |
EApIP6NameServer2, ///< IP address of secondary name server
|
williamr@2
|
371 |
|
williamr@2
|
372 |
// CDMA2000
|
williamr@2
|
373 |
EApCdmaIwfName, ///< IWF name, Text
|
williamr@2
|
374 |
EApCdmaServiceOption, ///< Service Option, TUint32
|
williamr@2
|
375 |
EApCdmaPdpType, ///< PDP type, TUin32
|
williamr@2
|
376 |
EApCdmaPdpAddress, ///< PDP address, Text
|
williamr@2
|
377 |
EApCdmaReqFwdPriority, ///< Requested forward priority, TUint32
|
williamr@2
|
378 |
EApCdmaReqRevPriority, ///< Requested reverse priority, TUint32
|
williamr@2
|
379 |
EApCdmaReqFwdBitrate, ///< Requested forward bitrate, TUint32
|
williamr@2
|
380 |
EApCdmaReqRevBitrate, ///< Requested reverse bitrate, TUint32
|
williamr@2
|
381 |
EApCdmaReqFwdLoss, ///< Req. forward frame loss rate, TUint32
|
williamr@2
|
382 |
EApCdmaReqRevLoss, ///< Req. reverse frame loss rate, TUint32
|
williamr@2
|
383 |
EApCdmaReqFwdMaxDelay, ///< Requested forward delay, TUint32
|
williamr@2
|
384 |
EApCdmaReqRevMaxDelay, ///< Requested reverse delay, TUint32
|
williamr@2
|
385 |
EApCdmaMinFwdBitrate, ///< Min. acceptable fwd bitrate, TUint32
|
williamr@2
|
386 |
EApCdmaMinRevBitrate, ///< Min. acceptable rev bitrate, TUint32
|
williamr@2
|
387 |
EApCdmaAccptFwdLoss, ///< Max. acc. fwd frame loss rate, TUint32
|
williamr@2
|
388 |
EApCdmaAccptRevLoss, ///< Max. acc. rev frame loss rate, TUint32
|
williamr@2
|
389 |
EApCdmaAccptFwdMaxDelay, ///< Max. acceptable forward delay, TUint32
|
williamr@2
|
390 |
EApCdmaAccptRevMaxDelay, ///< Max. acceptable reverse delay, TUint32
|
williamr@2
|
391 |
|
williamr@2
|
392 |
// CDMA2000, mapped to ISP... fields
|
williamr@2
|
393 |
EApCdmaDataCompression, ///< Data compression on? TBool
|
williamr@2
|
394 |
EApCdmaHeaderCompression, ///< IP header compression on? TBool
|
williamr@2
|
395 |
EApCdmaAnonymousAccess, ///< Use anonymous access on? TBool
|
williamr@2
|
396 |
EApCdmaIfName, ///< Interface name
|
williamr@2
|
397 |
EApCdmaIfParams, ///< Interface parameter string
|
williamr@2
|
398 |
EApCdmaIfNetworks, ///< Comma separated list of network
|
williamr@2
|
399 |
///< protocols
|
williamr@2
|
400 |
EApCdmaIfPromptForAuth, ///< Prompt user for authentication
|
williamr@2
|
401 |
///< username and password?
|
williamr@2
|
402 |
EApCdmaIfAuthName, ///< Authentication username used by PPP
|
williamr@2
|
403 |
EApCdmaIfAuthPassword, ///< Authentication password used by PPP
|
williamr@2
|
404 |
EApCdmaIfAuthRetries, ///< Number of times to retry
|
williamr@2
|
405 |
///< authentication if it fails
|
williamr@2
|
406 |
EApCdmaIpNetMask, ///< IP net mask of interface
|
williamr@2
|
407 |
EApCdmaIpGateway, ///< IP address of gateway
|
williamr@2
|
408 |
EApCdmaIpAddrFromServer, ///< Get IP adresses (for Symbian OS)
|
williamr@2
|
409 |
///< from server?
|
williamr@2
|
410 |
EApCdmaIpAddr, ///< IP address of Symbian OS
|
williamr@2
|
411 |
EApCdmaIpDnsAddrFromServer, ///< Get DNS addresses from server?
|
williamr@2
|
412 |
EApCdmaIPNameServer1, ///< IP address of primary name server
|
williamr@2
|
413 |
EApCdmaIPNameServer2, ///< IP address of secondary name server
|
williamr@2
|
414 |
EApCdmaEnableLCPExtensions, ///< Enable LCP extension?
|
williamr@2
|
415 |
EApCdmaDisablePlainTextAuth, ///< Disable plain text authentication?
|
williamr@2
|
416 |
|
williamr@2
|
417 |
// CDMA2000
|
williamr@2
|
418 |
EApCdmaApType, ///< Internet / WAP or both? TUint32
|
williamr@2
|
419 |
EApCdmaQosWarningTimeout, ///< Notify user if the requested QOS
|
williamr@2
|
420 |
///< cannot be satisfied for this time in
|
williamr@2
|
421 |
///< microseconds, TUint32
|
williamr@2
|
422 |
EApCdmaRlpMode, ///< Transparent or non-transparent
|
williamr@2
|
423 |
///< radio link protocol, TUint32
|
williamr@2
|
424 |
// CDMA2000 deprecated Mobile IP fields
|
williamr@2
|
425 |
EApCdmaMip, ///< Attempt to use mobile IP, TBool
|
williamr@2
|
426 |
EApCdmaHomeAgentAddress, ///< Home Agent address, Text
|
williamr@2
|
427 |
EApCdmaMipTimeout, ///< A normal reconnect (informing the
|
williamr@2
|
428 |
///< user) takes place if both the PPP link
|
williamr@2
|
429 |
///< drops and a change in SID or NID is
|
williamr@2
|
430 |
///< received within this time in
|
williamr@2
|
431 |
///< milliseconds, TUint32
|
williamr@2
|
432 |
// CDMA2000 specific CDMA parameters provisioned through OTA and defined
|
williamr@2
|
433 |
// in TIA-683B section 3.5.8
|
williamr@2
|
434 |
// These fields replace the old Mobile IP fields (above).
|
williamr@2
|
435 |
EApCdmaNaiType, ///< Type of NAI, TUint32
|
williamr@2
|
436 |
EApCdmaSimpleIpAuthAlgorithm, ///< SimpleIP auth.algorithm, TUint32
|
williamr@2
|
437 |
EApCdmaSimpleIpPapSsHandle, ///< SimpleIP PAP shared secret handle,
|
williamr@2
|
438 |
///< TUint32
|
williamr@2
|
439 |
EApCdmaSimpleIpChapSsHandle, ///< SimpleIP CHAP shared secret handle,
|
williamr@2
|
440 |
///< TUint32
|
williamr@2
|
441 |
EApCdmaMipTBit, ///< Reverse-tunneling reqd flag, TUint32
|
williamr@2
|
442 |
EApCdmaMipHomeAddress, ///< Home address, Text
|
williamr@2
|
443 |
EApCdmaMipPrimaryHomeAgent, ///< IP address of mobile node's
|
williamr@2
|
444 |
///< primary home agent, Text
|
williamr@2
|
445 |
EApCdmaMipSecondaryHomeAgent, ///< IP address of mobile node's
|
williamr@2
|
446 |
///< secondary home agent, Text
|
williamr@2
|
447 |
EApCdmaMipMnAaaAuthAlgorithm, ///< MN-AAA auth algorithm, TUint32
|
williamr@2
|
448 |
EApCdmaMipMnAaaSpi, ///< MN-AAA security param index, TUint32
|
williamr@2
|
449 |
EApCdmaMipMnAaaSsHandle, ///< MN-AAA shared secret handle, TUint32
|
williamr@2
|
450 |
EApCdmaMipMnHaAuthAlgorithm, ///< MN-HA auth algorithm, TUint32
|
williamr@2
|
451 |
EApCdmaMipMnHaSpi, ///< MN-HA security param index, TUint32
|
williamr@2
|
452 |
EApCdmaMipMnHaSsHandle, ///< MN-HA shared secret handle, TUint32
|
williamr@2
|
453 |
|
williamr@2
|
454 |
|
williamr@2
|
455 |
// WLAN specific fields
|
williamr@2
|
456 |
EApWlanNetworkName, ///< The network name, Text
|
williamr@2
|
457 |
EApWlanNetworkMode, ///< Gives network mode, TUint32
|
williamr@2
|
458 |
EApWlanSecurityMode, ///< The security mode, TUint32
|
williamr@2
|
459 |
|
williamr@2
|
460 |
// WLAN, mapped to ISP... fields
|
williamr@2
|
461 |
EApWlanIfNetworks, ///< Comma separated list of network
|
williamr@2
|
462 |
///< protocols
|
williamr@2
|
463 |
EApWlanIfPromptForAuth, ///< Prompt user for authentication
|
williamr@2
|
464 |
///< username and password?
|
williamr@2
|
465 |
EApWlanIfAuthName, ///< Authentication username used by PPP
|
williamr@2
|
466 |
EApWlanIfAuthPassword, ///< Authentication password used by PPP
|
williamr@2
|
467 |
EApWlanIfAuthRetries, ///< Number of times to retry
|
williamr@2
|
468 |
///< authentication if it fails
|
williamr@2
|
469 |
EApWlanIpNetMask, ///< IP net mask of interface
|
williamr@2
|
470 |
EApWlanIpGateway, ///< IP address of gateway
|
williamr@2
|
471 |
EApWlanIpAddrFromServer, ///< Get IP adresses (for Symbian OS)
|
williamr@2
|
472 |
///< from server?
|
williamr@2
|
473 |
EApWlanIpAddr, ///< IP address of Symbian OS
|
williamr@2
|
474 |
EApWlanIpDnsAddrFromServer, ///< Get DNS addresses from server?
|
williamr@2
|
475 |
EApWlanIPNameServer1, ///< IP address of primary name server
|
williamr@2
|
476 |
EApWlanIPNameServer2, ///< IP address of secondary name server
|
williamr@2
|
477 |
EApWlanSettingsId, ///< COMMDB_ID of the WLAN settings,
|
williamr@2
|
478 |
///< TUint32
|
williamr@2
|
479 |
EApWlanScanSSID, ///< TBool, whether need to scan the SSID
|
williamr@2
|
480 |
EApWlanChannelId, ///< In ad-hoc network mode, the channel
|
williamr@2
|
481 |
///< ID, TUint32
|
williamr@2
|
482 |
EApLanBearerName, ///< The name of the LAN bearer
|
williamr@2
|
483 |
EApIapBearerID, ///< UID of the bearer record (LAN/Modem)
|
williamr@2
|
484 |
EApIapBearerType, ///< The name of the iap bearer
|
williamr@2
|
485 |
///< table (LAN/Modem)
|
williamr@2
|
486 |
// some defines for UI ONLY, NOT TO BE USED BY ANYONE ELSE!!!
|
williamr@2
|
487 |
EApIpv4Settings = 0x00010000,
|
williamr@2
|
488 |
EApIpv6Settings,
|
williamr@2
|
489 |
EApWlanSecuritySettings ///< The security settings launcher
|
williamr@2
|
490 |
};
|
williamr@2
|
491 |
|
williamr@2
|
492 |
|
williamr@2
|
493 |
|
williamr@2
|
494 |
// CONSTANTS
|
williamr@2
|
495 |
// D E P R E C A T E D, please do not use it!!!!!!!!!!
|
williamr@2
|
496 |
// can not remove as it was part of the public API...
|
williamr@2
|
497 |
const TInt KApMemberNum = EApGprsDisablePlainTextAuth+1;
|
williamr@2
|
498 |
|
williamr@2
|
499 |
// FORWARD
|
williamr@2
|
500 |
class CApItemExtra;
|
williamr@2
|
501 |
|
williamr@2
|
502 |
// CLASS DECLARATION
|
williamr@2
|
503 |
|
williamr@2
|
504 |
|
williamr@2
|
505 |
/**
|
williamr@2
|
506 |
* CApAccessPointItem is used to exchange data between engine and client.
|
williamr@2
|
507 |
* It holds the information for an access point including WAP, IAP, ISP
|
williamr@2
|
508 |
* (if present & applies).
|
williamr@2
|
509 |
* This class uses the same approach as CommDB to read and write data: it
|
williamr@2
|
510 |
* has functions for each data type implemented. To read or write the data,
|
williamr@2
|
511 |
* we have to know the data type and the enum name of the 'column'.
|
williamr@2
|
512 |
* The column values has the names of the database columns with the 'EAp'
|
williamr@2
|
513 |
* prefix. The reason for this (not using the database column descriptors)
|
williamr@2
|
514 |
* is performance. It is much faster to compare enum values than literals.
|
williamr@2
|
515 |
*/
|
williamr@2
|
516 |
class CApAccessPointItem :public CBase
|
williamr@2
|
517 |
{
|
williamr@2
|
518 |
|
williamr@2
|
519 |
public: // Constructors and destructor
|
williamr@2
|
520 |
/**
|
williamr@2
|
521 |
* Two-phased constructor. Leaves on failure, places instance
|
williamr@2
|
522 |
* on cleanup stack. Instance is initialised to default values.
|
williamr@2
|
523 |
* The created instance is suitable for passing to CApDataHandler's
|
williamr@2
|
524 |
* functions, contains all necessary information.
|
williamr@2
|
525 |
* @return The constructed CApAccessPointItem.
|
williamr@2
|
526 |
*
|
williamr@2
|
527 |
* @deprecated
|
williamr@2
|
528 |
*/
|
williamr@2
|
529 |
IMPORT_C static CApAccessPointItem* NewLC();
|
williamr@2
|
530 |
|
williamr@2
|
531 |
|
williamr@2
|
532 |
/**
|
williamr@2
|
533 |
* Destructor.
|
williamr@2
|
534 |
*
|
williamr@2
|
535 |
* @deprecated
|
williamr@2
|
536 |
*/
|
williamr@2
|
537 |
IMPORT_C virtual ~CApAccessPointItem();
|
williamr@2
|
538 |
|
williamr@2
|
539 |
|
williamr@2
|
540 |
/**
|
williamr@2
|
541 |
* Copies the data from another CApAccessPointItem.
|
williamr@2
|
542 |
* Substitute for the "assignment operator". It requires allocation
|
williamr@2
|
543 |
* thus can leave.
|
williamr@2
|
544 |
* Wap Access Point Uid is not copied.
|
williamr@2
|
545 |
*
|
williamr@2
|
546 |
* @deprecated
|
williamr@2
|
547 |
*/
|
williamr@2
|
548 |
IMPORT_C void CopyFromL( const CApAccessPointItem& aCopyFrom );
|
williamr@2
|
549 |
|
williamr@2
|
550 |
|
williamr@2
|
551 |
/**
|
williamr@2
|
552 |
* Equality operator. Wap Access Point Uid is not counted.
|
williamr@2
|
553 |
*
|
williamr@2
|
554 |
* @deprecated
|
williamr@2
|
555 |
*/
|
williamr@2
|
556 |
IMPORT_C TBool operator==( const CApAccessPointItem& aitem ) const;
|
williamr@2
|
557 |
|
williamr@2
|
558 |
|
williamr@2
|
559 |
/**
|
williamr@2
|
560 |
* Inequality operator. Wap Access Point Uid is not counted.
|
williamr@2
|
561 |
*
|
williamr@2
|
562 |
* @deprecated
|
williamr@2
|
563 |
*/
|
williamr@2
|
564 |
IMPORT_C TBool operator!=( const CApAccessPointItem& aitem ) const;
|
williamr@2
|
565 |
|
williamr@2
|
566 |
|
williamr@2
|
567 |
protected: // Constructors
|
williamr@2
|
568 |
|
williamr@2
|
569 |
/**
|
williamr@2
|
570 |
* C++ default constructor.
|
williamr@2
|
571 |
*
|
williamr@2
|
572 |
* @deprecated
|
williamr@2
|
573 |
*/
|
williamr@2
|
574 |
IMPORT_C CApAccessPointItem();
|
williamr@2
|
575 |
|
williamr@2
|
576 |
/**
|
williamr@2
|
577 |
* Second-phase constructor.
|
williamr@2
|
578 |
*
|
williamr@2
|
579 |
* @deprecated
|
williamr@2
|
580 |
*/
|
williamr@2
|
581 |
IMPORT_C void ConstructL();
|
williamr@2
|
582 |
|
williamr@2
|
583 |
|
williamr@2
|
584 |
|
williamr@2
|
585 |
|
williamr@2
|
586 |
public: // New functions
|
williamr@2
|
587 |
|
williamr@2
|
588 |
|
williamr@2
|
589 |
/**
|
williamr@2
|
590 |
* This function reads up an 8-bit text value from the specified column.
|
williamr@2
|
591 |
* @param aColumn Enum value indicating the column to read.
|
williamr@2
|
592 |
* @param aValue Reference to an 8-bit descriptor to hold the value
|
williamr@2
|
593 |
* @return no return value
|
williamr@2
|
594 |
*
|
williamr@2
|
595 |
* @deprecated
|
williamr@2
|
596 |
*/
|
williamr@2
|
597 |
IMPORT_C void ReadTextL( const TApMember aColumn, TDes8& aValue );
|
williamr@2
|
598 |
|
williamr@2
|
599 |
/**
|
williamr@2
|
600 |
* This function reads up a 16-bit text value from the specified column.
|
williamr@2
|
601 |
* @param aColumn Enum value indicating the column to read.
|
williamr@2
|
602 |
* @param aValue Reference to a 16-bit descriptor to hold the value
|
williamr@2
|
603 |
* @return no return value
|
williamr@2
|
604 |
*
|
williamr@2
|
605 |
* @deprecated
|
williamr@2
|
606 |
*/
|
williamr@2
|
607 |
IMPORT_C void ReadTextL( const TApMember aColumn, TDes16& aValue );
|
williamr@2
|
608 |
|
williamr@2
|
609 |
/**
|
williamr@2
|
610 |
* NOTE: This function is deprecated. Use ReadConstLongTextL!
|
williamr@2
|
611 |
* This function reads up a long text value from the specified column.
|
williamr@2
|
612 |
* The ownership is not passed to the caller. It means that the caller
|
williamr@2
|
613 |
* should not delete the received value.
|
williamr@2
|
614 |
* If the caller must take the ownership for any reason, must make a
|
williamr@2
|
615 |
* copy and use that and delete the copy when no longer needed.
|
williamr@2
|
616 |
* @param aColumn Enum value indicating the column to read.
|
williamr@2
|
617 |
* @return A HBufC* to the value.
|
williamr@2
|
618 |
*
|
williamr@2
|
619 |
* @deprecated
|
williamr@2
|
620 |
*/
|
williamr@2
|
621 |
IMPORT_C HBufC* ReadLongTextL( const TApMember aColumn );
|
williamr@2
|
622 |
|
williamr@2
|
623 |
|
williamr@2
|
624 |
/**
|
williamr@2
|
625 |
* This function reads up a long text value from the specified column.
|
williamr@2
|
626 |
* The ownership is not passed to the caller. It means that the caller
|
williamr@2
|
627 |
* should not delete the received value.
|
williamr@2
|
628 |
* If the caller must take the ownership for any reason, must make a
|
williamr@2
|
629 |
* copy and use that and delete the copy when no longer needed.
|
williamr@2
|
630 |
* @param aColumn Enum value indicating the column to read.
|
williamr@2
|
631 |
* @return A const HBufC* to the value.
|
williamr@2
|
632 |
*
|
williamr@2
|
633 |
* @deprecated
|
williamr@2
|
634 |
*/
|
williamr@2
|
635 |
IMPORT_C const HBufC* ReadConstLongTextL( const TApMember aColumn );
|
williamr@2
|
636 |
|
williamr@2
|
637 |
|
williamr@2
|
638 |
|
williamr@2
|
639 |
/**
|
williamr@2
|
640 |
* This function reads the length of the text in the specified column.
|
williamr@2
|
641 |
* @param aColumn Enum value indicating the column to read.
|
williamr@2
|
642 |
* @return The length of the text in that column.
|
williamr@2
|
643 |
*
|
williamr@2
|
644 |
* @deprecated
|
williamr@2
|
645 |
*/
|
williamr@2
|
646 |
IMPORT_C TUint32 ReadTextLengthL( const TApMember aColumn );
|
williamr@2
|
647 |
|
williamr@2
|
648 |
|
williamr@2
|
649 |
/**
|
williamr@2
|
650 |
* This function reads up a TUint32 value from the specified column.
|
williamr@2
|
651 |
* In case the given value was not written to the database,
|
williamr@2
|
652 |
* it will return KErrValueUnspecified.
|
williamr@2
|
653 |
* If the specified column does not exist (that is, not part of the
|
williamr@2
|
654 |
* database structure), it will Panic in debug builds and it will
|
williamr@2
|
655 |
* return KErrInvalidColumn in release builds without Panicking.
|
williamr@2
|
656 |
* Panic is used in debug builds because it indicates a programming
|
williamr@2
|
657 |
* error. In release, it 'notifies' the caller about the error through
|
williamr@2
|
658 |
* the return value but enables system to continue operation.
|
williamr@2
|
659 |
* @param aColumn Enum value indicating the column to read.
|
williamr@2
|
660 |
* @param aValue A reference to a TUint32 to hold the value
|
williamr@2
|
661 |
* @return Error code.
|
williamr@2
|
662 |
*
|
williamr@2
|
663 |
* @deprecated
|
williamr@2
|
664 |
*/
|
williamr@2
|
665 |
IMPORT_C TInt ReadUint( const TApMember aColumn, TUint32& aValue );
|
williamr@2
|
666 |
|
williamr@2
|
667 |
/**
|
williamr@2
|
668 |
* This function reads up a boolean value from the specified column.
|
williamr@2
|
669 |
* If the specified column does not exist (that is, not part of the
|
williamr@2
|
670 |
* database structure), it will Panic in debug builds and it will
|
williamr@2
|
671 |
* return KErrInvalidColumn in release builds without Panicking.
|
williamr@2
|
672 |
* Panic is used in debug builds because it indicates a programming
|
williamr@2
|
673 |
* error. In release, it 'notifies' the caller about the error through
|
williamr@2
|
674 |
* the return value but enables system to continue operation.
|
williamr@2
|
675 |
* @param aColumn Enum value indicating the column to read.
|
williamr@2
|
676 |
* @param aValue A reference to a boolean to hold the value
|
williamr@2
|
677 |
* @return Error code.
|
williamr@2
|
678 |
*
|
williamr@2
|
679 |
* @deprecated
|
williamr@2
|
680 |
*/
|
williamr@2
|
681 |
IMPORT_C TInt ReadBool( const TApMember aColumn, TBool& aValue );
|
williamr@2
|
682 |
|
williamr@2
|
683 |
|
williamr@2
|
684 |
// Update
|
williamr@2
|
685 |
/**
|
williamr@2
|
686 |
* This function writes an 8-bit text value to the specified column.
|
williamr@2
|
687 |
* If the specified column does not exist (that is, not part of the
|
williamr@2
|
688 |
* database structure), it will Panic in debug builds and it will
|
williamr@2
|
689 |
* return KErrInvalidColumn in release builds without Panicking.
|
williamr@2
|
690 |
* Panic is used in debug builds because it indicates a programming
|
williamr@2
|
691 |
* error. In release, it 'notifies' the caller about the error through
|
williamr@2
|
692 |
* the return value but enables system to continue operation.
|
williamr@2
|
693 |
* This function can Leave if the copying of the text does not succeed.
|
williamr@2
|
694 |
* Possible leave codes are the system leave codes.
|
williamr@2
|
695 |
* @param aColumn Enum value indicating the column to write.
|
williamr@2
|
696 |
* @param aValue Reference to an 8-bit text descriptor to the value
|
williamr@2
|
697 |
* @return Error code.
|
williamr@2
|
698 |
*
|
williamr@2
|
699 |
* @deprecated
|
williamr@2
|
700 |
*/
|
williamr@2
|
701 |
IMPORT_C TInt WriteTextL( const TApMember aColumn,
|
williamr@2
|
702 |
const TDesC8& aValue );
|
williamr@2
|
703 |
|
williamr@2
|
704 |
/**
|
williamr@2
|
705 |
* This function writes a 16-bit text value to the specified column.
|
williamr@2
|
706 |
* If the specified column does not exist (that is, not part of the
|
williamr@2
|
707 |
* database structure), it will Panic in debug builds and it will
|
williamr@2
|
708 |
* return KErrInvalidColumn in release builds without Panicking.
|
williamr@2
|
709 |
* Panic is used in debug builds because it indicates a programming
|
williamr@2
|
710 |
* error. In release, it 'notifies' the caller about the error through
|
williamr@2
|
711 |
* the return value but enables system to continue operation.
|
williamr@2
|
712 |
* This function can Leave if the copying of the text does not succeed.
|
williamr@2
|
713 |
* @param aColumn Enum value indicating the column to write.
|
williamr@2
|
714 |
* @param aValue Reference to a 16-bit text descriptor to the value
|
williamr@2
|
715 |
* @return Error code.
|
williamr@2
|
716 |
*
|
williamr@2
|
717 |
* @deprecated
|
williamr@2
|
718 |
*/
|
williamr@2
|
719 |
IMPORT_C TInt WriteTextL( const TApMember aColumn,
|
williamr@2
|
720 |
const TDesC16& aValue );
|
williamr@2
|
721 |
|
williamr@2
|
722 |
/**
|
williamr@2
|
723 |
* This function writes a long text value to the specified column.
|
williamr@2
|
724 |
* If the specified column does not exist (that is, not part of the
|
williamr@2
|
725 |
* database structure), it will Panic in debug builds and it will
|
williamr@2
|
726 |
* return KErrInvalidColumn in release builds without Panicking.
|
williamr@2
|
727 |
* Panic is used in debug builds because it indicates a programming
|
williamr@2
|
728 |
* error. In release, it 'notifies' the caller about the error through
|
williamr@2
|
729 |
* the return value but enables system to continue operation.
|
williamr@2
|
730 |
* This function can Leave if the copying of the text does not succeed.
|
williamr@2
|
731 |
* @param aColumn Enum value indicating the column to write.
|
williamr@2
|
732 |
* @param aValue Reference to a 16-bit text descriptor to the value
|
williamr@2
|
733 |
* @return Error code.
|
williamr@2
|
734 |
*
|
williamr@2
|
735 |
* @deprecated
|
williamr@2
|
736 |
*/
|
williamr@2
|
737 |
IMPORT_C TInt WriteLongTextL( const TApMember aColumn,
|
williamr@2
|
738 |
const TDesC& aValue );
|
williamr@2
|
739 |
|
williamr@2
|
740 |
/**
|
williamr@2
|
741 |
* This function writes a TUint32 value to the specified column.
|
williamr@2
|
742 |
* If the specified column does not exist (that is, not part of the
|
williamr@2
|
743 |
* database structure), it will Panic in debug builds and it will
|
williamr@2
|
744 |
* return KErrInvalidColumn in release builds without Panicking.
|
williamr@2
|
745 |
* Panic is used in debug builds because it indicates a programming
|
williamr@2
|
746 |
* error. In release, it 'notifies' the caller about the error through
|
williamr@2
|
747 |
* the return value but enables system to continue operation.
|
williamr@2
|
748 |
* @param aColumn Enum value indicating the column to write.
|
williamr@2
|
749 |
* @param aValue A const reference to a TUint32 value
|
williamr@2
|
750 |
* @return Error code.
|
williamr@2
|
751 |
*
|
williamr@2
|
752 |
* @deprecated
|
williamr@2
|
753 |
*/
|
williamr@2
|
754 |
IMPORT_C TInt WriteUint( const TApMember aColumn,
|
williamr@2
|
755 |
const TUint32& aValue );
|
williamr@2
|
756 |
|
williamr@2
|
757 |
/**
|
williamr@2
|
758 |
* This function writes a boolean value to the specified column.
|
williamr@2
|
759 |
* If the specified column does not exist (that is, not part of the
|
williamr@2
|
760 |
* database structure), it will Panic in debug builds and it will
|
williamr@2
|
761 |
* return KErrInvalidColumn in release builds without Panicking.
|
williamr@2
|
762 |
* Panic is used in debug builds because it indicates a programming
|
williamr@2
|
763 |
* error. In release, it 'notifies' the caller about the error through
|
williamr@2
|
764 |
* the return value but enables system to continue operation.
|
williamr@2
|
765 |
* @param aColumn Enum value indicating the column to write.
|
williamr@2
|
766 |
* @param aValue A const reference to a boolean value
|
williamr@2
|
767 |
* @return Error code.
|
williamr@2
|
768 |
*
|
williamr@2
|
769 |
* @deprecated
|
williamr@2
|
770 |
*/
|
williamr@2
|
771 |
IMPORT_C TInt WriteBool( const TApMember aColumn,
|
williamr@2
|
772 |
const TBool& aValue );
|
williamr@2
|
773 |
|
williamr@2
|
774 |
|
williamr@2
|
775 |
// Query
|
williamr@2
|
776 |
// COMMON
|
williamr@2
|
777 |
/**
|
williamr@2
|
778 |
* This function returns the ID of the access point
|
williamr@2
|
779 |
* @return The ID of this access point
|
williamr@2
|
780 |
*
|
williamr@2
|
781 |
* @deprecated
|
williamr@2
|
782 |
*/
|
williamr@2
|
783 |
IMPORT_C TUint32 WapUid() const;
|
williamr@2
|
784 |
|
williamr@2
|
785 |
|
williamr@2
|
786 |
/**
|
williamr@2
|
787 |
* This function returns the name of the connection
|
williamr@2
|
788 |
* Ownership is not passed.
|
williamr@2
|
789 |
* @return The name of the connection
|
williamr@2
|
790 |
*
|
williamr@2
|
791 |
* @deprecated
|
williamr@2
|
792 |
*/
|
williamr@2
|
793 |
IMPORT_C const TDesC& ConnectionName() const;
|
williamr@2
|
794 |
|
williamr@2
|
795 |
|
williamr@2
|
796 |
// WAP-spec.
|
williamr@2
|
797 |
/**
|
williamr@2
|
798 |
* This function returns the current WAP bearer for the access point
|
williamr@2
|
799 |
* Ownership is not passed.
|
williamr@2
|
800 |
* @return The current WAP bearer for the access point
|
williamr@2
|
801 |
*
|
williamr@2
|
802 |
* @deprecated
|
williamr@2
|
803 |
*/
|
williamr@2
|
804 |
IMPORT_C const TDesC& WapBearer() const;
|
williamr@2
|
805 |
|
williamr@2
|
806 |
|
williamr@2
|
807 |
/**
|
williamr@2
|
808 |
* This function returns the bearer type for the current access point
|
williamr@2
|
809 |
* @return The current bearer type for the access point
|
williamr@2
|
810 |
*
|
williamr@2
|
811 |
* @deprecated
|
williamr@2
|
812 |
*/
|
williamr@2
|
813 |
IMPORT_C TApBearerType BearerTypeL();
|
williamr@2
|
814 |
|
williamr@2
|
815 |
|
williamr@2
|
816 |
/**
|
williamr@2
|
817 |
* This function sets the bearer type for the current access point
|
williamr@2
|
818 |
* @param aBearer TApBearerType enum indicating the desired bearer type.
|
williamr@2
|
819 |
* @return No return value.
|
williamr@2
|
820 |
*
|
williamr@2
|
821 |
* @deprecated
|
williamr@2
|
822 |
*/
|
williamr@2
|
823 |
IMPORT_C void SetBearerTypeL( TApBearerType aBearer );
|
williamr@2
|
824 |
|
williamr@2
|
825 |
|
williamr@2
|
826 |
/**
|
williamr@2
|
827 |
* This function writes a 16-bit text value to the 'name' fields
|
williamr@2
|
828 |
* of the access point.
|
williamr@2
|
829 |
* This includes: WAP_ACCESS_POINT, IAP, Dial/in/out/Gprs In/Out
|
williamr@2
|
830 |
* table's COMM_DB_NAME fields.
|
williamr@2
|
831 |
* These fields are (by TApMember): EApWapAccessPointName, EApIapName,
|
williamr@2
|
832 |
* EApIspName.
|
williamr@2
|
833 |
* It is useful if we need to use same names.
|
williamr@2
|
834 |
* @param aValue A const reference to a 16-bit text descriptor to
|
williamr@2
|
835 |
* the value.
|
williamr@2
|
836 |
* @return No return value.
|
williamr@2
|
837 |
*
|
williamr@2
|
838 |
* @deprecated
|
williamr@2
|
839 |
*/
|
williamr@2
|
840 |
IMPORT_C void SetNamesL( const TDesC16& aValue );
|
williamr@2
|
841 |
|
williamr@2
|
842 |
|
williamr@2
|
843 |
/**
|
williamr@2
|
844 |
* This function checks the integrity of the CApAccessPointItem.
|
williamr@2
|
845 |
* Currently checks:
|
williamr@2
|
846 |
* IF WAP_IP_BEARER, WAP_ISP_TYPE conforms to IAP_SERVICE_TYPE
|
williamr@2
|
847 |
* @return Boolean indicating whether the sanity check has
|
williamr@2
|
848 |
* passed(ETrue) or not(EFalse)
|
williamr@2
|
849 |
*
|
williamr@2
|
850 |
* @deprecated
|
williamr@2
|
851 |
*/
|
williamr@2
|
852 |
IMPORT_C TBool SanityCheckOk();
|
williamr@2
|
853 |
|
williamr@2
|
854 |
|
williamr@2
|
855 |
/**
|
williamr@2
|
856 |
* This function compares this and the passed CApAccessPointItem
|
williamr@2
|
857 |
* whether they have the same ISP and bearer
|
williamr@2
|
858 |
* Returns true if the APs have the same phone number
|
williamr@2
|
859 |
* @param aItem a CApAccessPointItem to compare with
|
williamr@2
|
860 |
* @return whether the APs have the same isp and bearer
|
williamr@2
|
861 |
*
|
williamr@2
|
862 |
* @deprecated
|
williamr@2
|
863 |
*/
|
williamr@2
|
864 |
IMPORT_C TBool HasSameIspAndBearerL( CApAccessPointItem& aItem );
|
williamr@2
|
865 |
|
williamr@2
|
866 |
/**
|
williamr@2
|
867 |
* This function returns whether the access point is read-only or not.
|
williamr@2
|
868 |
* @return Whether the current access point is read-only or not.
|
williamr@2
|
869 |
*
|
williamr@2
|
870 |
* @deprecated
|
williamr@2
|
871 |
*/
|
williamr@2
|
872 |
IMPORT_C TBool IsReadOnly() const;
|
williamr@2
|
873 |
|
williamr@2
|
874 |
public: // public, not exported, available only inside the ApEngine dll
|
williamr@2
|
875 |
/**
|
williamr@2
|
876 |
* Returnes whether the given access point is a VPN ap or not.
|
williamr@2
|
877 |
*/
|
williamr@2
|
878 |
TBool IsVpnAp() const;
|
williamr@2
|
879 |
|
williamr@2
|
880 |
/**
|
williamr@2
|
881 |
* Sets the current access point as VPN or as normal AP.
|
williamr@2
|
882 |
* Internal use only!
|
williamr@2
|
883 |
* @param aIsVpn a TBool specifiyng that the current AP is VPN or not.
|
williamr@2
|
884 |
*/
|
williamr@2
|
885 |
void SetVpnAp( TBool aIsVpn );
|
williamr@2
|
886 |
|
williamr@2
|
887 |
private:
|
williamr@2
|
888 |
/**
|
williamr@2
|
889 |
* Returns whether a given member is specified (after reading it from
|
williamr@2
|
890 |
* the DB) or not.
|
williamr@2
|
891 |
* @param aMember The member we would like to knopw if it is specified
|
williamr@2
|
892 |
* or not.
|
williamr@2
|
893 |
* @return whether a given member is specified (after reading it from
|
williamr@2
|
894 |
* the DB) or not.
|
williamr@2
|
895 |
*/
|
williamr@2
|
896 |
TBool Specified( TApMember aMember );
|
williamr@2
|
897 |
|
williamr@2
|
898 |
/**
|
williamr@2
|
899 |
* Sets a given member as specified or not
|
williamr@2
|
900 |
* @param aMember The member to set
|
williamr@2
|
901 |
* @param aOn The value to set
|
williamr@2
|
902 |
*/
|
williamr@2
|
903 |
void Specify( TApMember aMember, TBool aOn );
|
williamr@2
|
904 |
|
williamr@2
|
905 |
/**
|
williamr@2
|
906 |
* Sets all WAP member as specified or not
|
williamr@2
|
907 |
* @param aOn The value to set
|
williamr@2
|
908 |
*/
|
williamr@2
|
909 |
void SpecifyWap( TBool aOn );
|
williamr@2
|
910 |
|
williamr@2
|
911 |
/**
|
williamr@2
|
912 |
* Sets all IP bearer member as specified or not
|
williamr@2
|
913 |
* @param aOn The value to set
|
williamr@2
|
914 |
*/
|
williamr@2
|
915 |
void SpecifyIpBearer( TBool aOn );
|
williamr@2
|
916 |
|
williamr@2
|
917 |
/**
|
williamr@2
|
918 |
* Sets all IAP member as specified or not
|
williamr@2
|
919 |
* @param aOn The value to set
|
williamr@2
|
920 |
*/
|
williamr@2
|
921 |
void SpecifyIAP( TBool aOn );
|
williamr@2
|
922 |
|
williamr@2
|
923 |
/**
|
williamr@2
|
924 |
* Sets all ISP member as specified or not
|
williamr@2
|
925 |
* @param aOn The value to set
|
williamr@2
|
926 |
*/
|
williamr@2
|
927 |
void SpecifyISP( TBool aOn );
|
williamr@2
|
928 |
|
williamr@2
|
929 |
/**
|
williamr@2
|
930 |
* Sets all GPRS member as specified or not
|
williamr@2
|
931 |
* @param aOn The value to set
|
williamr@2
|
932 |
*/
|
williamr@2
|
933 |
void SpecifyGPRS( TBool aOn );
|
williamr@2
|
934 |
|
williamr@2
|
935 |
/**
|
williamr@2
|
936 |
* Sets all CDMA member as specified or not
|
williamr@2
|
937 |
* @param aOn The value to set
|
williamr@2
|
938 |
*/
|
williamr@2
|
939 |
void SpecifyCDMA( TBool aOn );
|
williamr@2
|
940 |
|
williamr@2
|
941 |
/**
|
williamr@2
|
942 |
* Sets all WLAN member as specified or not
|
williamr@2
|
943 |
* @param aOn The value to set
|
williamr@2
|
944 |
*/
|
williamr@2
|
945 |
void SpecifyWLAN( TBool aOn );
|
williamr@2
|
946 |
|
williamr@2
|
947 |
/**
|
williamr@2
|
948 |
* Sets all member as specified or not
|
williamr@2
|
949 |
* @param aOn The value to set
|
williamr@2
|
950 |
*/
|
williamr@2
|
951 |
void SpecifyAll( TBool aOn );
|
williamr@2
|
952 |
|
williamr@2
|
953 |
/**
|
williamr@2
|
954 |
* Sets iGetDNSIPFromServer according the currently valid iPrimaryDNS
|
williamr@2
|
955 |
* & iSecondaryDNS values. Called internally, after every setting of
|
williamr@2
|
956 |
* the above two values
|
williamr@2
|
957 |
*/
|
williamr@2
|
958 |
void SetDnsIpFromServer();
|
williamr@2
|
959 |
|
williamr@2
|
960 |
/**
|
williamr@2
|
961 |
* Sets iIspIPAddrFromServer according the currently valid iIspIPAddr
|
williamr@2
|
962 |
* value. Called internally, after every setting of iIspIPAddr values
|
williamr@2
|
963 |
*/
|
williamr@2
|
964 |
void SetIpFromServer();
|
williamr@2
|
965 |
|
williamr@2
|
966 |
|
williamr@2
|
967 |
/**
|
williamr@2
|
968 |
* Sets iExt->iIpv6GetDNSIPFromServer according the currently valid
|
williamr@2
|
969 |
* iExt->iIpv6PrimaryDNS & iExt->iIpv6SecondaryDNS values.
|
williamr@2
|
970 |
* Called internally, after every setting of the above two values
|
williamr@2
|
971 |
*/
|
williamr@2
|
972 |
void SetDns6IpFromServer();
|
williamr@2
|
973 |
|
williamr@2
|
974 |
|
williamr@2
|
975 |
/**
|
williamr@2
|
976 |
* Reallocates a passed 16-bit descriptor. Passed descriptor is deleted,
|
williamr@2
|
977 |
* new one is AllocL-ed
|
williamr@2
|
978 |
* Passed descriptor MUST NOT BE on the CleanupStack
|
williamr@2
|
979 |
* @param aDes The descriptor to hold the value
|
williamr@2
|
980 |
* @param aValue The value to pass to the aDes descriptor.
|
williamr@2
|
981 |
*/
|
williamr@2
|
982 |
void ReAllocL(HBufC*& aDes, const TDesC16& aValue);
|
williamr@2
|
983 |
|
williamr@2
|
984 |
/**
|
williamr@2
|
985 |
* Reallocates a passed 8-bit descriptor. Passed descriptor is deleted,
|
williamr@2
|
986 |
* new one is AllocL-ed
|
williamr@2
|
987 |
* Passed descriptor MUST NOT BE on the CleanupStack
|
williamr@2
|
988 |
* @param aDes The descriptor to hold the value
|
williamr@2
|
989 |
* @param aValue The value to pass to the aDes descriptor.
|
williamr@2
|
990 |
*/
|
williamr@2
|
991 |
void ReAllocL(HBufC8*& aDes, const TDesC8& aValue);
|
williamr@2
|
992 |
|
williamr@2
|
993 |
|
williamr@2
|
994 |
/**
|
williamr@2
|
995 |
* Compares THIS and the passed aItem.
|
williamr@2
|
996 |
* @param aItem The item to compare this to
|
williamr@2
|
997 |
* @return Whether the item is equal with this or not
|
williamr@2
|
998 |
*/
|
williamr@2
|
999 |
TBool DoCompareApL( const CApAccessPointItem& aItem ) const;
|
williamr@2
|
1000 |
|
williamr@2
|
1001 |
|
williamr@2
|
1002 |
/**
|
williamr@2
|
1003 |
* Compares the WAP part of THIS and the passed aItem.
|
williamr@2
|
1004 |
* Does not compares IAP ID
|
williamr@2
|
1005 |
* @param aItem The item to compare this to
|
williamr@2
|
1006 |
* @return Whether the WAP part is equal with this or not
|
williamr@2
|
1007 |
*/
|
williamr@2
|
1008 |
TBool CompareWap( const CApAccessPointItem& aItem ) const;
|
williamr@2
|
1009 |
|
williamr@2
|
1010 |
|
williamr@2
|
1011 |
/**
|
williamr@2
|
1012 |
* Compares the IAP part of THIS and the passed aItem.
|
williamr@2
|
1013 |
* @param aItem The item to compare this to
|
williamr@2
|
1014 |
* @return Whether the IAP part is equal with this or not
|
williamr@2
|
1015 |
*/
|
williamr@2
|
1016 |
TBool CompareIap( const CApAccessPointItem& aItem ) const;
|
williamr@2
|
1017 |
|
williamr@2
|
1018 |
|
williamr@2
|
1019 |
/**
|
williamr@2
|
1020 |
* Compares the IsP part of THIS and the passed aItem.
|
williamr@2
|
1021 |
* @param aItem The item to compare this to
|
williamr@2
|
1022 |
* @return Whether the ISP part is equal with this or not
|
williamr@2
|
1023 |
*/
|
williamr@2
|
1024 |
TBool CompareIsp( const CApAccessPointItem& aItem ) const;
|
williamr@2
|
1025 |
|
williamr@2
|
1026 |
|
williamr@2
|
1027 |
/**
|
williamr@2
|
1028 |
* Compares the Gprs part of THIS and the passed aItem.
|
williamr@2
|
1029 |
* @param aItem The item to compare this to
|
williamr@2
|
1030 |
* @return Whether the GPRS part is equal with this or not
|
williamr@2
|
1031 |
*/
|
williamr@2
|
1032 |
TBool CompareGprs( const CApAccessPointItem& aItem ) const;
|
williamr@2
|
1033 |
|
williamr@2
|
1034 |
|
williamr@2
|
1035 |
/**
|
williamr@2
|
1036 |
* Compares the Cdma part of THIS and the passed aItem.
|
williamr@2
|
1037 |
* @param aItem The item to compare this to
|
williamr@2
|
1038 |
* @return Whether the CDMA part is equal with this or not
|
williamr@2
|
1039 |
*/
|
williamr@2
|
1040 |
TBool CompareCdma( const CApAccessPointItem& aItem ) const;
|
williamr@2
|
1041 |
|
williamr@2
|
1042 |
|
williamr@2
|
1043 |
/**
|
williamr@2
|
1044 |
* Compares the Wlan part of THIS and the passed aItem.
|
williamr@2
|
1045 |
* @param aItem The item to compare this to
|
williamr@2
|
1046 |
* @return Whether the WLAN part is equal with this or not
|
williamr@2
|
1047 |
*/
|
williamr@2
|
1048 |
TBool CompareWlan( const CApAccessPointItem& aItem ) const;
|
williamr@2
|
1049 |
|
williamr@2
|
1050 |
|
williamr@2
|
1051 |
/**
|
williamr@2
|
1052 |
* Removes leading 0s from the passed IP address.
|
williamr@2
|
1053 |
* @param aValue A descriptor holding the IP address to remove
|
williamr@2
|
1054 |
* leading 0s from
|
williamr@2
|
1055 |
* @return A newly allocated HBufC holding the resulting string.
|
williamr@2
|
1056 |
*/
|
williamr@2
|
1057 |
HBufC* GetCleanIpAddressLC( const TDesC& aValue );
|
williamr@2
|
1058 |
|
williamr@2
|
1059 |
|
williamr@2
|
1060 |
|
williamr@2
|
1061 |
/**
|
williamr@2
|
1062 |
* Removes invalid chars e.g. space, () from the passed phone number.
|
williamr@2
|
1063 |
* (valid are 0,1,2,..9,p,w,+,*,#)
|
williamr@2
|
1064 |
* Strips pre- and postfixes, prefix separator is#,
|
williamr@2
|
1065 |
* postfix separators are p, w or +
|
williamr@2
|
1066 |
* @param aValue A descriptor holding the phone number
|
williamr@2
|
1067 |
* @return A newly allocated HBufC holding the resulting string.
|
williamr@2
|
1068 |
*/
|
williamr@2
|
1069 |
HBufC* GetPlainPhoneNumberLC( const TDesC& aNumber );
|
williamr@2
|
1070 |
|
williamr@2
|
1071 |
|
williamr@2
|
1072 |
/**
|
williamr@2
|
1073 |
* Compares the 'default phone number' (ISP dial-in number) of this
|
williamr@2
|
1074 |
* and the passed CApAccessPointItem
|
williamr@2
|
1075 |
* @param aItem The item to compare this to
|
williamr@2
|
1076 |
* @return a TBool indicating whether the phone numbers are
|
williamr@2
|
1077 |
* the same or not.
|
williamr@2
|
1078 |
*/
|
williamr@2
|
1079 |
TBool IsSamePhoneNumberL( CApAccessPointItem& aItem );
|
williamr@2
|
1080 |
|
williamr@2
|
1081 |
|
williamr@2
|
1082 |
/**
|
williamr@2
|
1083 |
* Removes invalid chars from the passed phone number
|
williamr@2
|
1084 |
* @param aIntext Text to remove invalid characters from phone number
|
williamr@2
|
1085 |
* @return a HBufC holding the new text
|
williamr@2
|
1086 |
*/
|
williamr@2
|
1087 |
HBufC* RemoveInvalidPhoneCharsLC( const TDesC16& aInText );
|
williamr@2
|
1088 |
|
williamr@2
|
1089 |
|
williamr@2
|
1090 |
/**
|
williamr@2
|
1091 |
* Removes invalid chars from the passed text
|
williamr@2
|
1092 |
* Invalid chars are: TAB
|
williamr@2
|
1093 |
* @param aIntext Text to remove invalid characters from
|
williamr@2
|
1094 |
* @return a HBufC16 holding the new text
|
williamr@2
|
1095 |
*/
|
williamr@2
|
1096 |
HBufC* RemoveInvalidCharsLC( const TDesC16& aInText );
|
williamr@2
|
1097 |
|
williamr@2
|
1098 |
|
williamr@2
|
1099 |
/**
|
williamr@2
|
1100 |
* Removes invalid chars from the passed text
|
williamr@2
|
1101 |
* Invalid chars are: TAB
|
williamr@2
|
1102 |
* @param aIntext Text to remove invalid characters from
|
williamr@2
|
1103 |
* @return a HBufC8 holding the new text
|
williamr@2
|
1104 |
*/
|
williamr@2
|
1105 |
HBufC8* RemoveInvalidCharsLC( const TDesC8& aInText );
|
williamr@2
|
1106 |
|
williamr@2
|
1107 |
|
williamr@2
|
1108 |
/**
|
williamr@2
|
1109 |
* Compares the proxy data of this and the passed CApAccessPointItem.
|
williamr@2
|
1110 |
* @param aItem The item to compare this to
|
williamr@2
|
1111 |
* @return Whether the Proxy part is equal with this or not
|
williamr@2
|
1112 |
*/
|
williamr@2
|
1113 |
TBool CompareProxy( const CApAccessPointItem& aItem ) const;
|
williamr@2
|
1114 |
|
williamr@2
|
1115 |
|
williamr@2
|
1116 |
/**
|
williamr@2
|
1117 |
* Returns whether the Ap has proxy data or not.
|
williamr@2
|
1118 |
* @return Whether the Ap has proxy data or not.
|
williamr@2
|
1119 |
*/
|
williamr@2
|
1120 |
TBool HasProxy() const;
|
williamr@2
|
1121 |
|
williamr@2
|
1122 |
|
williamr@2
|
1123 |
/**
|
williamr@2
|
1124 |
* Sets the proxy flag.
|
williamr@2
|
1125 |
*/
|
williamr@2
|
1126 |
void SetProxyFlag();
|
williamr@2
|
1127 |
|
williamr@2
|
1128 |
|
williamr@2
|
1129 |
/**
|
williamr@2
|
1130 |
* Limits the speed after changing e.g. bearer type
|
williamr@2
|
1131 |
*/
|
williamr@2
|
1132 |
void LimitSpeedL();
|
williamr@2
|
1133 |
|
williamr@2
|
1134 |
|
williamr@2
|
1135 |
/**
|
williamr@2
|
1136 |
* Sets the IfNetworks value according to the bearer type and
|
williamr@2
|
1137 |
* the IPv6 support availability. The required values are:
|
williamr@2
|
1138 |
* IPv4:
|
williamr@2
|
1139 |
* GPRS/CDMA, pdptype ipv4 "ip",
|
williamr@2
|
1140 |
* CSD "ip"
|
williamr@2
|
1141 |
* HSCSD "ip"
|
williamr@2
|
1142 |
* IPv6:
|
williamr@2
|
1143 |
* GPRS/CDMA, pdptype ipv4 "ip",
|
williamr@2
|
1144 |
* GPRS/CDMA, pdptype ipv6 "ip6",
|
williamr@2
|
1145 |
* CSD "ip,ip6"
|
williamr@2
|
1146 |
* HSCSD "ip,ip6"
|
williamr@2
|
1147 |
*
|
williamr@2
|
1148 |
*/
|
williamr@2
|
1149 |
void SetIfNetworksL();
|
williamr@2
|
1150 |
|
williamr@2
|
1151 |
|
williamr@2
|
1152 |
/**
|
williamr@2
|
1153 |
* Check if aColumn is supported.
|
williamr@2
|
1154 |
* @param aColumn Enum value indicating the column to check.
|
williamr@2
|
1155 |
* @return Whether the given member is supported or not
|
williamr@2
|
1156 |
*/
|
williamr@2
|
1157 |
TBool IsSupported( TApMember aColumn );
|
williamr@2
|
1158 |
|
williamr@2
|
1159 |
|
williamr@2
|
1160 |
/**
|
williamr@2
|
1161 |
* Leave with KErrNotSupported if aColumn is not supported.
|
williamr@2
|
1162 |
* @param aColumn Enum value indicating the column to check.
|
williamr@2
|
1163 |
*/
|
williamr@2
|
1164 |
void LeaveIfUnsupportedL( TApMember aColumn );
|
williamr@2
|
1165 |
|
williamr@2
|
1166 |
|
williamr@2
|
1167 |
/**
|
williamr@2
|
1168 |
* Returns whether this item has WLAN or not
|
williamr@2
|
1169 |
* @return Whether this item has WLAN or not
|
williamr@2
|
1170 |
*/
|
williamr@2
|
1171 |
TBool IsWlan();
|
williamr@2
|
1172 |
|
williamr@2
|
1173 |
|
williamr@2
|
1174 |
/**
|
williamr@2
|
1175 |
* Limit the Ip6 DNS address
|
williamr@2
|
1176 |
* In case of CSD, HSCSD, only Well-known and User defined is supported,
|
williamr@2
|
1177 |
* so if the bearer is changed from something else to these bearer
|
williamr@2
|
1178 |
* types, the possible 'Dynamic' should be replaced with Well-known
|
williamr@2
|
1179 |
*/
|
williamr@2
|
1180 |
void LimitIp6DNSL();
|
williamr@2
|
1181 |
|
williamr@2
|
1182 |
private: // Data
|
williamr@2
|
1183 |
|
williamr@2
|
1184 |
// member data
|
williamr@2
|
1185 |
// COMMON
|
williamr@2
|
1186 |
TUint32 iWapUid; ///< The unique identifier of the AP record.
|
williamr@2
|
1187 |
HBufC* iWapAccessPointName;
|
williamr@2
|
1188 |
|
williamr@2
|
1189 |
|
williamr@2
|
1190 |
// WAP-spec.
|
williamr@2
|
1191 |
HBufC* iWapBearer;
|
williamr@2
|
1192 |
HBufC* iStartingPage;
|
williamr@2
|
1193 |
|
williamr@2
|
1194 |
// common for bearers
|
williamr@2
|
1195 |
HBufC* iWapGatewayAddress; ///< The WAP gateway address
|
williamr@2
|
1196 |
TBool iIsWTLSSecurityOn;
|
williamr@2
|
1197 |
TUint32 iIsConnectionTypeContinuous;
|
williamr@2
|
1198 |
|
williamr@2
|
1199 |
CApItemExtra* iExt;
|
williamr@2
|
1200 |
TUint32 iChargeCard;
|
williamr@2
|
1201 |
TUint32 iWapIap;
|
williamr@2
|
1202 |
TUint32 iWapIspType; // deprecated, not used but kept
|
williamr@2
|
1203 |
// to keep member positions
|
williamr@2
|
1204 |
|
williamr@2
|
1205 |
|
williamr@2
|
1206 |
// IAP-part
|
williamr@2
|
1207 |
HBufC* iIapName;
|
williamr@2
|
1208 |
|
williamr@2
|
1209 |
TUint32 iIapServiceId;
|
williamr@2
|
1210 |
HBufC* iIapServiceType;
|
williamr@2
|
1211 |
|
williamr@2
|
1212 |
TUint32 iIapChargeCardId;
|
williamr@2
|
1213 |
|
williamr@2
|
1214 |
// ISP-part
|
williamr@2
|
1215 |
HBufC* iIspName;
|
williamr@2
|
1216 |
HBufC* iIspDescription;
|
williamr@2
|
1217 |
TCommsDbIspType iIspType;
|
williamr@2
|
1218 |
HBufC* iIspDefaultTelNumber;
|
williamr@2
|
1219 |
TBool iIspDialResolution;
|
williamr@2
|
1220 |
TBool iUseLoginScript;
|
williamr@2
|
1221 |
HBufC* iLoginScript;
|
williamr@2
|
1222 |
TBool iPromptPassword;
|
williamr@2
|
1223 |
HBufC* iUserName;
|
williamr@2
|
1224 |
HBufC* iPassword;
|
williamr@2
|
1225 |
TBool iDisplayTerminalWindow;
|
williamr@2
|
1226 |
HBufC* iIspIfName;
|
williamr@2
|
1227 |
HBufC* iIspIfParams;
|
williamr@2
|
1228 |
HBufC* iIspIfNetworks;
|
williamr@2
|
1229 |
TBool iIspIfPromptForAuth;
|
williamr@2
|
1230 |
HBufC* iIspIfAuthName;
|
williamr@2
|
1231 |
HBufC* iIspIfAuthPass;
|
williamr@2
|
1232 |
TUint32 iIspIfAuthRetries;
|
williamr@2
|
1233 |
TBool iUseCallBack;
|
williamr@2
|
1234 |
TCallbackAction iCallBackTypeIsServerNum;
|
williamr@2
|
1235 |
HBufC8* iIspIfCallbackInfo;
|
williamr@2
|
1236 |
TUint32 iIspCallbackTimeOut;
|
williamr@2
|
1237 |
TBool iIspIPAddrFromServer;
|
williamr@2
|
1238 |
HBufC* iIspIPAddr;
|
williamr@2
|
1239 |
HBufC* iIspIPNetMask;
|
williamr@2
|
1240 |
HBufC* iIspGateway;
|
williamr@2
|
1241 |
TBool iGetDNSIPFromServer;
|
williamr@2
|
1242 |
HBufC* iPrimaryDNS;
|
williamr@2
|
1243 |
HBufC* iSecondaryDNS;
|
williamr@2
|
1244 |
TBool iEnablePPPCompression;
|
williamr@2
|
1245 |
TBool iIspEnableLCPExtensions;
|
williamr@2
|
1246 |
TBool iIsPasswordAuthenticationSecure;
|
williamr@2
|
1247 |
TBool iIspEnableSwCompression;
|
williamr@2
|
1248 |
/*****************************************************
|
williamr@2
|
1249 |
* Series 60 Customer / ETel
|
williamr@2
|
1250 |
* Series 60 ETel API
|
williamr@2
|
1251 |
*****************************************************/
|
williamr@2
|
1252 |
TInt iIspBearerName; // RMobileCall::TMobileCallDataServiceCaps
|
williamr@2
|
1253 |
TApCallSpeed iMaxConnSpeed;
|
williamr@2
|
1254 |
TApCallType iBearerCallTypeIsdn; //RMobileCall::TMobileCallDataProtocol
|
williamr@2
|
1255 |
TInt iIspBearerCE; // RMobileCall::TMobileCallDataQoS
|
williamr@2
|
1256 |
HBufC8* iIspInitString;
|
williamr@2
|
1257 |
TUint32 iIspBearerType;
|
williamr@2
|
1258 |
TUint32 iIspChannelCoding;
|
williamr@2
|
1259 |
TUint32 iIspAIUR;
|
williamr@2
|
1260 |
TUint32 iIspRequestedTimeSlots;
|
williamr@2
|
1261 |
TUint32 iIspMaximumTimeSlots;
|
williamr@2
|
1262 |
|
williamr@2
|
1263 |
// GPRS part
|
williamr@2
|
1264 |
HBufC* iGprsAccessPointName;
|
williamr@2
|
1265 |
TUint32 iGprsPdpType;
|
williamr@2
|
1266 |
HBufC* iGprsPdpAddress;
|
williamr@2
|
1267 |
TUint32 iGprsReqPrecedence;
|
williamr@2
|
1268 |
TUint32 iGprsReqDelay;
|
williamr@2
|
1269 |
TUint32 iGprsReqReliability;
|
williamr@2
|
1270 |
TUint32 iGprsReqPeakThroughput;
|
williamr@2
|
1271 |
TUint32 iGprsReqMeanPeakThroughput;
|
williamr@2
|
1272 |
TUint32 iGprsMinPrecedence;
|
williamr@2
|
1273 |
|
williamr@2
|
1274 |
TUint32 iGprsMinDelay;
|
williamr@2
|
1275 |
TUint32 iGprsMinReliability;
|
williamr@2
|
1276 |
TUint32 iGprsMinPeakThroughput;
|
williamr@2
|
1277 |
TUint32 iGprsMinMeanThroughput;
|
williamr@2
|
1278 |
TBool iGprsUseAnonymAccess;
|
williamr@2
|
1279 |
|
williamr@2
|
1280 |
CArrayFixFlat<TBool> *iSpecified;
|
williamr@2
|
1281 |
TBool iIsReadOnly;
|
williamr@2
|
1282 |
|
williamr@2
|
1283 |
HBufC* iApProxyProtocolName;
|
williamr@2
|
1284 |
HBufC* iApProxyServerAddress;
|
williamr@2
|
1285 |
TUint32 iApProxyPortNumber;
|
williamr@2
|
1286 |
TBool iApProxyUseProxy;
|
williamr@2
|
1287 |
HBufC* iApProxyExceptions;
|
williamr@2
|
1288 |
TBool iApHasProxySettings;
|
williamr@2
|
1289 |
|
williamr@2
|
1290 |
TUint32 iNetworkId;
|
williamr@2
|
1291 |
TUint32 iWapProxyPort;
|
williamr@2
|
1292 |
HBufC* iNetworkName;
|
williamr@2
|
1293 |
HBufC* iWapProxyLoginName;
|
williamr@2
|
1294 |
HBufC* iWapProxyLoginPass;
|
williamr@2
|
1295 |
TUint32 iApIapBearerService; // RMobileCall::TMobileCallDataServiceCaps
|
williamr@2
|
1296 |
|
williamr@2
|
1297 |
|
williamr@2
|
1298 |
|
williamr@2
|
1299 |
protected: // Friend classes
|
williamr@2
|
1300 |
friend class CApDataHandler;
|
williamr@2
|
1301 |
|
williamr@2
|
1302 |
|
williamr@2
|
1303 |
};
|
williamr@2
|
1304 |
|
williamr@2
|
1305 |
#endif // ACCESSPOINTITEM_H
|
williamr@2
|
1306 |
|
williamr@2
|
1307 |
// End of File
|