|
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: THIS FILE IS NOT INCLUDED INTO ECLIPSE CVS DELIVERY |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #include <VpnApItem.h> |
|
21 #include <VpnApEngine.h> |
|
22 #include "swtbrowservpnapitem.h" |
|
23 #include "swtbrowservpnapengine.h" |
|
24 |
|
25 |
|
26 |
|
27 // ----------------------------------------------------------------------------- |
|
28 // Constructor |
|
29 // ----------------------------------------------------------------------------- |
|
30 // |
|
31 CSwtBrowserVpnApEngine::CSwtBrowserVpnApEngine() |
|
32 { |
|
33 } |
|
34 |
|
35 |
|
36 void CSwtBrowserVpnApEngine::ConstructL(CCommsDatabase& aDb) |
|
37 { |
|
38 iVpnApEngine = CVpnApEngine::NewLC(&aDb); |
|
39 CleanupStack::Pop(iVpnApEngine); |
|
40 } |
|
41 |
|
42 |
|
43 EXPORT_C CSwtBrowserVpnApEngine* CSwtBrowserVpnApEngine::NewL(CCommsDatabase& aDb) |
|
44 { |
|
45 CSwtBrowserVpnApEngine* self |
|
46 = new(ELeave) CSwtBrowserVpnApEngine(); |
|
47 CleanupStack::PushL(self); |
|
48 self->ConstructL(aDb); |
|
49 CleanupStack::Pop(self); |
|
50 return self; |
|
51 } |
|
52 |
|
53 |
|
54 |
|
55 CSwtBrowserVpnApEngine::~CSwtBrowserVpnApEngine() |
|
56 { |
|
57 delete iVpnApEngine; |
|
58 } |
|
59 |
|
60 EXPORT_C TBool CSwtBrowserVpnApEngine::IsVpnApL(const TUint32 aUid) |
|
61 { |
|
62 ASSERT(iVpnApEngine); |
|
63 return iVpnApEngine->IsVpnApL(aUid); |
|
64 } |
|
65 |
|
66 EXPORT_C void CSwtBrowserVpnApEngine::VpnDataL(TUint32 aUid, CSwtBrowserVpnApItem& aVpnApItem) |
|
67 { |
|
68 ASSERT(iVpnApEngine); |
|
69 iVpnApEngine->VpnDataL(aUid, aVpnApItem.VpnApItem()); |
|
70 } |
|
71 |
|
72 |
|
73 |