|
1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #include "IspTableData.h" |
|
17 #include <cdbcols.h> |
|
18 #include <ipaddr.h> |
|
19 |
|
20 _LIT(KPPP, "PPP"); |
|
21 _LIT(KIP, "ip,ip6"); |
|
22 |
|
23 |
|
24 CIspTableData* CIspTableData::NewL() |
|
25 { |
|
26 CIspTableData* self; |
|
27 self = new (ELeave) CIspTableData; |
|
28 CleanupStack::PushL(self); |
|
29 self->ConstructL(); |
|
30 CleanupStack::Pop(); |
|
31 return self; |
|
32 } |
|
33 |
|
34 void CIspTableData::ConstructL() |
|
35 { |
|
36 // Initialise the member variables |
|
37 |
|
38 iISPType=EIspTypeWAPOnly; |
|
39 iDialResolution=ETrue; //Mandatory Data |
|
40 iUseScript=EFalse; //Mandatory Data |
|
41 iPromptForLoginDetails=ETrue; //Mandatory Data |
|
42 iDisplayPCT=EFalse; |
|
43 |
|
44 iIFName = NULL; |
|
45 iIFName = KPPP().AllocL(); //Mandatory Data |
|
46 |
|
47 iIFNetworks=NULL; |
|
48 iIFNetworks = KIP().AllocL(); |
|
49 |
|
50 |
|
51 iIFPromptForAuthentication =EFalse; //Mandatory Data |
|
52 iNumAuthAttempts=10; |
|
53 iCallBackEnabled=EFalse; |
|
54 iAddrFromServer = ETrue; //Mandatory Data |
|
55 iDNSFromServer = ETrue; //Mandatory Data |
|
56 iHeaderCompressionEnabled = EFalse; //Don't compress headers |
|
57 iPlainTextAuthDisabled = EFalse; |
|
58 iSwCompressionEnabled = EFalse; |
|
59 iCallSpeed = RMobileCall::ESpeedAutobauding; |
|
60 iCallDataProtocol = RMobileCall::EProtocolV34; |
|
61 |
|
62 iInOutAddress = CIpAddress::NewL(); |
|
63 iNetmask = CIpAddress::NewL(); |
|
64 iGateway = CIpAddress::NewL(); |
|
65 |
|
66 iDNS1 = CIpAddress::NewL(); |
|
67 iDNS2 = CIpAddress::NewL(); |
|
68 } |
|
69 |
|
70 |
|
71 CIspTableData::~CIspTableData() |
|
72 { |
|
73 delete iIFName; |
|
74 delete iIFNetworks; |
|
75 delete iInOutAddress; |
|
76 delete iNetmask; |
|
77 delete iGateway; |
|
78 delete iDNS1; |
|
79 delete iDNS2; |
|
80 } |