contextframework/cfw/tsrc/public/basic/MT_CFContextSourceSettingsManager/MT_CFContextSourceSettingsManager.cpp
branchRCL_3
changeset 63 c2c61fdca848
parent 62 924385140d98
equal deleted inserted replaced
62:924385140d98 63:c2c61fdca848
     1 /*
     1 /*
     2 * Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2006 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"
    30 
    31 
    31 //  INTERNAL INCLUDES
    32 //  INTERNAL INCLUDES
    32 
    33 
    33 // Cleans up RKeyValueArray instance
    34 // Cleans up RKeyValueArray instance
    34 LOCAL_C void CleanupKeyValueArray( TAny* aArray )
    35 LOCAL_C void CleanupKeyValueArray( TAny* aArray )
    64 
    65 
    65 // Destructor (virtual by CBase)
    66 // Destructor (virtual by CBase)
    66 MT_CFContextSourceSettingsManager::~MT_CFContextSourceSettingsManager()
    67 MT_CFContextSourceSettingsManager::~MT_CFContextSourceSettingsManager()
    67     {
    68     {
    68     Teardown();
    69     Teardown();
       
    70 
       
    71     // Enable screen saver
       
    72     CFEnvUtils::EnableScreenSaver( ETrue );
    69     }
    73     }
    70 
    74 
    71 // Default constructor
    75 // Default constructor
    72 MT_CFContextSourceSettingsManager::MT_CFContextSourceSettingsManager()
    76 MT_CFContextSourceSettingsManager::MT_CFContextSourceSettingsManager()
    73     {
    77     {
    77 void MT_CFContextSourceSettingsManager::ConstructL()
    81 void MT_CFContextSourceSettingsManager::ConstructL()
    78     {
    82     {
    79     // The ConstructL from the base class CEUnitTestSuiteClass must be called.
    83     // The ConstructL from the base class CEUnitTestSuiteClass must be called.
    80     // It generates the test case table.
    84     // It generates the test case table.
    81     CEUnitTestSuiteClass::ConstructL();
    85     CEUnitTestSuiteClass::ConstructL();
       
    86 
       
    87     // Disable screen saver
       
    88     CFEnvUtils::EnableScreenSaver( EFalse );
    82     }
    89     }
    83 
    90 
    84 //  METHODS
    91 //  METHODS
    85 
    92 
    86 
    93