contextframework/cfw/tsrc/public/basic/MT_CFContextSourceSettingsManager/MT_CFContextSourceSettingsManager.cpp
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
25 #include <cfcontextsourcesetting.h> |
25 #include <cfcontextsourcesetting.h> |
26 #include <cfcontextsourcesettingarray.h> |
26 #include <cfcontextsourcesettingarray.h> |
27 #include <cfcontextsourcesettingparameter.h> |
27 #include <cfcontextsourcesettingparameter.h> |
28 #include <cfkeyvaluepair.h> |
28 #include <cfkeyvaluepair.h> |
29 |
29 |
30 #include "cfenvutils.h" |
|
31 |
30 |
32 // INTERNAL INCLUDES |
31 // INTERNAL INCLUDES |
33 |
32 |
34 // Cleans up RKeyValueArray instance |
33 // Cleans up RKeyValueArray instance |
35 LOCAL_C void CleanupKeyValueArray( TAny* aArray ) |
34 LOCAL_C void CleanupKeyValueArray( TAny* aArray ) |
65 |
64 |
66 // Destructor (virtual by CBase) |
65 // Destructor (virtual by CBase) |
67 MT_CFContextSourceSettingsManager::~MT_CFContextSourceSettingsManager() |
66 MT_CFContextSourceSettingsManager::~MT_CFContextSourceSettingsManager() |
68 { |
67 { |
69 Teardown(); |
68 Teardown(); |
70 |
|
71 // Enable screen saver |
|
72 CFEnvUtils::EnableScreenSaver( ETrue ); |
|
73 } |
69 } |
74 |
70 |
75 // Default constructor |
71 // Default constructor |
76 MT_CFContextSourceSettingsManager::MT_CFContextSourceSettingsManager() |
72 MT_CFContextSourceSettingsManager::MT_CFContextSourceSettingsManager() |
77 { |
73 { |
81 void MT_CFContextSourceSettingsManager::ConstructL() |
77 void MT_CFContextSourceSettingsManager::ConstructL() |
82 { |
78 { |
83 // The ConstructL from the base class CEUnitTestSuiteClass must be called. |
79 // The ConstructL from the base class CEUnitTestSuiteClass must be called. |
84 // It generates the test case table. |
80 // It generates the test case table. |
85 CEUnitTestSuiteClass::ConstructL(); |
81 CEUnitTestSuiteClass::ConstructL(); |
86 |
|
87 // Disable screen saver |
|
88 CFEnvUtils::EnableScreenSaver( EFalse ); |
|
89 } |
82 } |
90 |
83 |
91 // METHODS |
84 // METHODS |
92 |
85 |
93 |
86 |