contextframework/cfw/tsrc/public/basic/UT_CFContextSourceManager/UT_CFContextSourceManager.cpp
branchRCL_3
changeset 63 c2c61fdca848
parent 62 924385140d98
equal deleted inserted replaced
62:924385140d98 63:c2c61fdca848
     1 /*
     1 /*
     2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2007 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".
    26 #include <cfcontextsourcesettingsmanager.h>
    26 #include <cfcontextsourcesettingsmanager.h>
    27 
    27 
    28 //  INTERNAL INCLUDES
    28 //  INTERNAL INCLUDES
    29 #include "CFContextSourcePlugIn.h"
    29 #include "CFContextSourcePlugIn.h"
    30 #include "CFContextSourceManager.h"
    30 #include "CFContextSourceManager.h"
       
    31 #include "cfenvutils.h"
    31 
    32 
    32 _LIT_SECURITY_POLICY_PASS( KPassSec );
    33 _LIT_SECURITY_POLICY_PASS( KPassSec );
    33 
    34 
    34 // CONSTRUCTION
    35 // CONSTRUCTION
    35 UT_CFContextSourceManager* UT_CFContextSourceManager::NewL()
    36 UT_CFContextSourceManager* UT_CFContextSourceManager::NewL()
    51     }
    52     }
    52 
    53 
    53 // Destructor (virtual by CBase)
    54 // Destructor (virtual by CBase)
    54 UT_CFContextSourceManager::~UT_CFContextSourceManager()
    55 UT_CFContextSourceManager::~UT_CFContextSourceManager()
    55     {
    56     {
       
    57     // Enable screen saver
       
    58     CFEnvUtils::EnableScreenSaver( ETrue );
    56     }
    59     }
    57 
    60 
    58 // Default constructor
    61 // Default constructor
    59 UT_CFContextSourceManager::UT_CFContextSourceManager()
    62 UT_CFContextSourceManager::UT_CFContextSourceManager()
    60     {
    63     {
    64 void UT_CFContextSourceManager::ConstructL()
    67 void UT_CFContextSourceManager::ConstructL()
    65     {
    68     {
    66     // The ConstructL from the base class CEUnitTestSuiteClass must be called.
    69     // The ConstructL from the base class CEUnitTestSuiteClass must be called.
    67     // It generates the test case table.
    70     // It generates the test case table.
    68     CEUnitTestSuiteClass::ConstructL();
    71     CEUnitTestSuiteClass::ConstructL();
       
    72 
       
    73     // Disable screen saver
       
    74     CFEnvUtils::EnableScreenSaver( EFalse );
    69     }
    75     }
    70 
    76 
    71 //  METHODS
    77 //  METHODS
    72 
    78 
    73 void UT_CFContextSourceManager::UnsubscribeContexts(
    79 void UT_CFContextSourceManager::UnsubscribeContexts(