contextframework/cfw/tsrc/public/basic/MT_CFContextSourceManager/MT_CFContextSourceManager.cpp
branchRCL_3
changeset 20 c2c61fdca848
parent 19 924385140d98
equal deleted inserted replaced
19:924385140d98 20: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".
    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"
    33 
    34 
    34 // CONSTANTS
    35 // CONSTANTS
    35 
    36 
    36 _LIT_SECURITY_POLICY_PASS( KPassSec );
    37 _LIT_SECURITY_POLICY_PASS( KPassSec );
    37 
    38 
   100 
   101 
   101 // Destructor (virtual by CBase)
   102 // Destructor (virtual by CBase)
   102 MT_CFContextSourceManager::~MT_CFContextSourceManager()
   103 MT_CFContextSourceManager::~MT_CFContextSourceManager()
   103     {
   104     {
   104     Teardown();
   105     Teardown();
       
   106 
       
   107     // Enable screen saver
       
   108     CFEnvUtils::EnableScreenSaver( ETrue );
   105     }
   109     }
   106 
   110 
   107 // Default constructor
   111 // Default constructor
   108 MT_CFContextSourceManager::MT_CFContextSourceManager()
   112 MT_CFContextSourceManager::MT_CFContextSourceManager()
   109     {
   113     {
   113 void MT_CFContextSourceManager::ConstructL()
   117 void MT_CFContextSourceManager::ConstructL()
   114     {
   118     {
   115     // The ConstructL from the base class CEUnitTestSuiteClass must be called.
   119     // The ConstructL from the base class CEUnitTestSuiteClass must be called.
   116     // It generates the test case table.
   120     // It generates the test case table.
   117     CEUnitTestSuiteClass::ConstructL();
   121     CEUnitTestSuiteClass::ConstructL();
       
   122 
       
   123     // Disable screen saver
       
   124     CFEnvUtils::EnableScreenSaver( EFalse );
   118     }
   125     }
   119 
   126 
   120 //  METHODS
   127 //  METHODS
   121 
   128 
   122 void MT_CFContextSourceManager::UnsubscribeContexts(
   129 void MT_CFContextSourceManager::UnsubscribeContexts(