|
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 "iceudpsettings.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 // CICEUDPSettings::NewL |
|
35 // ----------------------------------------------------------------------------- |
|
36 // |
|
37 CICEUDPSettings* CICEUDPSettings::NewL( const TDesC8& aDomain, |
|
38 TUint aIapId ) |
|
39 { |
|
40 CICEUDPSettings* self = CICEUDPSettings::NewLC(aDomain, aIapId ); |
|
41 CleanupStack::Pop( self ); |
|
42 return self; |
|
43 } |
|
44 |
|
45 |
|
46 // ----------------------------------------------------------------------------- |
|
47 // CICEUDPSettings::NewL |
|
48 // ----------------------------------------------------------------------------- |
|
49 // |
|
50 CICEUDPSettings* CICEUDPSettings::NewLC( const TDesC8& aDomain, |
|
51 TUint aIapId ) |
|
52 { |
|
53 CICEUDPSettings* self = new( ELeave ) CICEUDPSettings( aIapId ); |
|
54 CleanupStack::PushL( self ); |
|
55 self->ConstructL( aDomain ); |
|
56 return self; |
|
57 } |
|
58 |
|
59 |
|
60 // ----------------------------------------------------------------------------- |
|
61 // CICEUDPSettings::CICEUDPSettings |
|
62 // ----------------------------------------------------------------------------- |
|
63 // |
|
64 CICEUDPSettings::CICEUDPSettings( TUint aIapId ) |
|
65 : CGeneralSettings( aIapId ) |
|
66 { |
|
67 } |
|
68 |
|
69 |
|
70 // ----------------------------------------------------------------------------- |
|
71 // CICEUDPSettings::~CICEUDPSettings |
|
72 // ----------------------------------------------------------------------------- |
|
73 // |
|
74 CICEUDPSettings::~CICEUDPSettings( ) |
|
75 { |
|
76 iRepository->Delete( iDomainKey | KUNSAFProtocolsUsedNATProtocolMask ); |
|
77 //iRepository->Delete( iDomainKey | KUNSAFProtocolsRequestedTransportMask ); |
|
78 } |
|
79 |
|
80 |
|
81 // ----------------------------------------------------------------------------- |
|
82 // CICEUDPSettings::ConstructL |
|
83 // ----------------------------------------------------------------------------- |
|
84 // |
|
85 void CICEUDPSettings::ConstructL( const TDesC8& aDomain ) |
|
86 { |
|
87 CGeneralSettings::ConstructL( aDomain ); |
|
88 } |
|
89 |
|
90 |
|
91 // ----------------------------------------------------------------------------- |
|
92 // CICEUDPSettings::CreateSettingsL |
|
93 // ----------------------------------------------------------------------------- |
|
94 // |
|
95 void CICEUDPSettings::CreateSettingsL() |
|
96 { |
|
97 CGeneralSettings::CreateSettingsL(); |
|
98 User::LeaveIfError( GetDomainKey( iDomainKey ) ); |
|
99 |
|
100 //Settings |
|
101 /************************************************************************/ |
|
102 StoreL( KUNSAFProtocolsUsedNATProtocolMask | iDomainKey, |
|
103 KNatProtocol ); |
|
104 /* |
|
105 StoreL( KUNSAFProtocolsRequestedTransportMask | iDomainKey, |
|
106 KRequestedTransport ); |
|
107 */ |
|
108 } |