contextframework/cfw/tsrc/public/basic/MT_CFContextSourceManager/MT_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".
    28 #include "cfcontextsourcesettingsmanager.h"
    28 #include "cfcontextsourcesettingsmanager.h"
    29 #include "cfcontextsubscription.h"
    29 #include "cfcontextsubscription.h"
    30 #include "cfcontextsourcesettingarray.h"
    30 #include "cfcontextsourcesettingarray.h"
    31 
    31 
    32 #include "testcontextsourceplugin.h"
    32 #include "testcontextsourceplugin.h"
    33 #include "cfenvutils.h"
       
    34 
    33 
    35 // CONSTANTS
    34 // CONSTANTS
    36 
    35 
    37 _LIT_SECURITY_POLICY_PASS( KPassSec );
    36 _LIT_SECURITY_POLICY_PASS( KPassSec );
    38 
    37 
   101 
   100 
   102 // Destructor (virtual by CBase)
   101 // Destructor (virtual by CBase)
   103 MT_CFContextSourceManager::~MT_CFContextSourceManager()
   102 MT_CFContextSourceManager::~MT_CFContextSourceManager()
   104     {
   103     {
   105     Teardown();
   104     Teardown();
   106 
       
   107     // Enable screen saver
       
   108     CFEnvUtils::EnableScreenSaver( ETrue );
       
   109     }
   105     }
   110 
   106 
   111 // Default constructor
   107 // Default constructor
   112 MT_CFContextSourceManager::MT_CFContextSourceManager()
   108 MT_CFContextSourceManager::MT_CFContextSourceManager()
   113     {
   109     {
   117 void MT_CFContextSourceManager::ConstructL()
   113 void MT_CFContextSourceManager::ConstructL()
   118     {
   114     {
   119     // The ConstructL from the base class CEUnitTestSuiteClass must be called.
   115     // The ConstructL from the base class CEUnitTestSuiteClass must be called.
   120     // It generates the test case table.
   116     // It generates the test case table.
   121     CEUnitTestSuiteClass::ConstructL();
   117     CEUnitTestSuiteClass::ConstructL();
   122 
       
   123     // Disable screen saver
       
   124     CFEnvUtils::EnableScreenSaver( EFalse );
       
   125     }
   118     }
   126 
   119 
   127 //  METHODS
   120 //  METHODS
   128 
   121 
   129 void MT_CFContextSourceManager::UnsubscribeContexts(
   122 void MT_CFContextSourceManager::UnsubscribeContexts(