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