|
1 /* |
|
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #include "icetcpsettings.h" |
|
22 |
|
23 #include <unsafprotocolscrkeys.h> |
|
24 |
|
25 |
|
26 // CONSTANTS |
|
27 |
|
28 /******************************************************/ |
|
29 //Settings |
|
30 //Domain spesific settings |
|
31 _LIT8( KNatProtocol, "nokia.ice" ); |
|
32 |
|
33 // ----------------------------------------------------------------------------- |
|
34 // CICETCPSettings::NewL |
|
35 // ----------------------------------------------------------------------------- |
|
36 // |
|
37 CICETCPSettings* CICETCPSettings::NewL( const TDesC8& aDomain, |
|
38 TUint aIapId ) |
|
39 { |
|
40 CICETCPSettings* self = CICETCPSettings::NewLC(aDomain, aIapId ); |
|
41 CleanupStack::Pop( self ); |
|
42 return self; |
|
43 } |
|
44 |
|
45 |
|
46 // ----------------------------------------------------------------------------- |
|
47 // CICETCPSettings::NewL |
|
48 // ----------------------------------------------------------------------------- |
|
49 // |
|
50 CICETCPSettings* CICETCPSettings::NewLC( const TDesC8& aDomain, |
|
51 TUint aIapId ) |
|
52 { |
|
53 CICETCPSettings* self = new( ELeave ) CICETCPSettings( aIapId ); |
|
54 CleanupStack::PushL( self ); |
|
55 self->ConstructL( aDomain ); |
|
56 self->ConstructBaseL(); |
|
57 return self; |
|
58 } |
|
59 |
|
60 |
|
61 // ----------------------------------------------------------------------------- |
|
62 // CICETCPSettings::CICETCPSettings |
|
63 // ----------------------------------------------------------------------------- |
|
64 // |
|
65 CICETCPSettings::CICETCPSettings( TUint aIapId ) |
|
66 : CGeneralSettings( aIapId ) |
|
67 { |
|
68 } |
|
69 |
|
70 |
|
71 // ----------------------------------------------------------------------------- |
|
72 // CICETCPSettings::~CICETCPSettings |
|
73 // ----------------------------------------------------------------------------- |
|
74 // |
|
75 CICETCPSettings::~CICETCPSettings( ) |
|
76 { |
|
77 iRepository->Delete( iDomainKey | KUNSAFProtocolsUsedNATProtocolMask ); |
|
78 //iRepository->Delete( iDomainKey | KUNSAFProtocolsRequestedTransportMask ); |
|
79 } |
|
80 |
|
81 |
|
82 // ----------------------------------------------------------------------------- |
|
83 // CICETCPSettings::ConstructL |
|
84 // ----------------------------------------------------------------------------- |
|
85 // |
|
86 void CICETCPSettings::ConstructL( const TDesC8& aDomain ) |
|
87 { |
|
88 CGeneralSettings::ConstructL( aDomain ); |
|
89 } |
|
90 |
|
91 |
|
92 // ----------------------------------------------------------------------------- |
|
93 // CICETCPSettings::CreateSettingsL |
|
94 // ----------------------------------------------------------------------------- |
|
95 // |
|
96 void CICETCPSettings::CreateSettingsL() |
|
97 { |
|
98 User::LeaveIfError( GetDomainKey( iDomainKey ) ); |
|
99 |
|
100 //Settings |
|
101 /************************************************************************/ |
|
102 StoreL( KUNSAFProtocolsUsedNATProtocolMask | iDomainKey, |
|
103 KNatProtocol ); |
|
104 /* |
|
105 StoreL( KUNSAFProtocolsRequestedTransportMask | iDomainKey, |
|
106 KRequestedTransport ); |
|
107 */ |
|
108 } |