contextframework/cfw/tsrc/public/basic/mt_cfactionplugin/MT_CFActionPlugIn.cpp
branchRCL_3
changeset 63 c2c61fdca848
parent 62 924385140d98
equal deleted inserted replaced
62:924385140d98 63:c2c61fdca848
     1 /*
     1 /*
     2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2002 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 <ECom/ECom.h>
    25 #include <ECom/ECom.h>
    26 
    26 
    27 //  INTERNAL INCLUDES
    27 //  INTERNAL INCLUDES
    28 #include <CFActionPlugin.h>
    28 #include <CFActionPlugin.h>
    29 #include <cfactionindication.h>
    29 #include <cfactionindication.h>
       
    30 #include "cfenvutils.h"
    30 
    31 
    31 // CONSTANTS
    32 // CONSTANTS
    32 const TUid KTestActionPluginImplementationUid = {0x10002003};
    33 const TUid KTestActionPluginImplementationUid = {0x10002003};
    33 const TInt KSecDelay = 1000000; // 1 seconds
    34 const TInt KSecDelay = 1000000; // 1 seconds
    34 
    35 
   118     }
   119     }
   119 
   120 
   120 // Destructor (virtual by CBase)
   121 // Destructor (virtual by CBase)
   121 MT_CCFActionPlugIn::~MT_CCFActionPlugIn()
   122 MT_CCFActionPlugIn::~MT_CCFActionPlugIn()
   122     {
   123     {
       
   124     // Enable screen saver
       
   125     CFEnvUtils::EnableScreenSaver( ETrue );
   123     }
   126     }
   124 
   127 
   125 // Default constructor
   128 // Default constructor
   126 MT_CCFActionPlugIn::MT_CCFActionPlugIn()
   129 MT_CCFActionPlugIn::MT_CCFActionPlugIn()
   127     {
   130     {
   131 void MT_CCFActionPlugIn::ConstructL()
   134 void MT_CCFActionPlugIn::ConstructL()
   132     {
   135     {
   133     // The ConstructL from the base class CEUnitTestSuiteClass must be called.
   136     // The ConstructL from the base class CEUnitTestSuiteClass must be called.
   134     // It generates the test case table.
   137     // It generates the test case table.
   135     CEUnitTestSuiteClass::ConstructL();
   138     CEUnitTestSuiteClass::ConstructL();
       
   139 
       
   140     // Disable screen saver
       
   141     CFEnvUtils::EnableScreenSaver( EFalse );
   136     }
   142     }
   137 
   143 
   138 //  METHODS
   144 //  METHODS
   139 
   145 
   140 
   146