1 /* |
|
2 * Copyright (c) 2004 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: Implementation of CFeatureManagerWrapper. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "FeatureManagerWrapper.h" |
|
21 #include "ApSettingsHandlerLogger.h" |
|
22 |
|
23 // ================= MEMBER FUNCTIONS ======================= |
|
24 |
|
25 // --------------------------------------------------------- |
|
26 // CFeatureManagerWrapper::CFeatureManagerWrapper |
|
27 // --------------------------------------------------------- |
|
28 // |
|
29 CFeatureManagerWrapper::CFeatureManagerWrapper() : CBase() |
|
30 { |
|
31 APSETUILOGGER_ENTERFN( EOther,"FeatureWrapper::CFeatureManagerWrapper<->") |
|
32 } |
|
33 |
|
34 // --------------------------------------------------------- |
|
35 // CFeatureManagerWrapper::~CFeatureManagerWrapper |
|
36 // --------------------------------------------------------- |
|
37 // |
|
38 CFeatureManagerWrapper::~CFeatureManagerWrapper() |
|
39 { |
|
40 APSETUILOGGER_ENTERFN( EOther,"FeatureWrapper::~CFeatureManagerWrapper") |
|
41 |
|
42 if ( iIsFeatureMgrInitialized ) |
|
43 { |
|
44 FeatureManager::UnInitializeLib(); |
|
45 } |
|
46 |
|
47 APSETUILOGGER_LEAVEFN( EOther,"FeatureWrapper::~CFeatureManagerWrapper") |
|
48 } |
|
49 |
|
50 |
|
51 // --------------------------------------------------------- |
|
52 // CFeatureManagerWrapper::ConstructL |
|
53 // --------------------------------------------------------- |
|
54 // |
|
55 void CFeatureManagerWrapper::ConstructL() |
|
56 { |
|
57 APSETUILOGGER_ENTERFN( EOther,"FeatureWrapper::ConstructL") |
|
58 |
|
59 FeatureManager::InitializeLibL(); |
|
60 iIsFeatureMgrInitialized = ETrue ; |
|
61 |
|
62 APSETUILOGGER_LEAVEFN( EOther,"FeatureWrapper::ConstructL") |
|
63 } |
|
64 |
|
65 |
|
66 // --------------------------------------------------------- |
|
67 // CFeatureManagerWrapper::NewL |
|
68 // --------------------------------------------------------- |
|
69 // |
|
70 CFeatureManagerWrapper* CFeatureManagerWrapper::NewL() |
|
71 { |
|
72 APSETUILOGGER_ENTERFN( EOther,"FeatureWrapper::NewL") |
|
73 |
|
74 CFeatureManagerWrapper* self = new ( ELeave ) CFeatureManagerWrapper; |
|
75 |
|
76 CleanupStack::PushL( self ); |
|
77 self->ConstructL(); |
|
78 CleanupStack::Pop( self ); |
|
79 |
|
80 APSETUILOGGER_LEAVEFN( EOther,"FeatureWrapper::NewL") |
|
81 return self; |
|
82 } |
|
83 |
|
84 //End of file. |
|
85 |
|