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