contextframework/cfw/tsrc/public/basic/mt_cfsisupgrade/MT_CFSisUpgrade.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".
    40 #include "action_v1.hrh"
    40 #include "action_v1.hrh"
    41 #include "action_v2.hrh"
    41 #include "action_v2.hrh"
    42 #include "actiondef_v1.h"
    42 #include "actiondef_v1.h"
    43 #include "actiondef_v2.h"
    43 #include "actiondef_v2.h"
    44 #include "operation_v1.hrh"
    44 #include "operation_v1.hrh"
       
    45 #include "cfenvutils.h"
    45 
    46 
    46 // CONSTANTS
    47 // CONSTANTS
    47 const TInt KSecond = 1000000;
    48 const TInt KSecond = 1000000;
    48 
    49 
    49 // CONSTRUCTION
    50 // CONSTRUCTION
    66     }
    67     }
    67 
    68 
    68 // Destructor (virtual by CBase)
    69 // Destructor (virtual by CBase)
    69 MT_CFSisUpgrade::~MT_CFSisUpgrade()
    70 MT_CFSisUpgrade::~MT_CFSisUpgrade()
    70     {
    71     {
       
    72     // Disable screen saver
       
    73     CFEnvUtils::EnableScreenSaver( ETrue );
    71     }
    74     }
    72 
    75 
    73 // Default constructor
    76 // Default constructor
    74 MT_CFSisUpgrade::MT_CFSisUpgrade()
    77 MT_CFSisUpgrade::MT_CFSisUpgrade()
    75     {
    78     {
    79 void MT_CFSisUpgrade::ConstructL()
    82 void MT_CFSisUpgrade::ConstructL()
    80     {
    83     {
    81     // The ConstructL from the base class CEUnitTestSuiteClass must be called.
    84     // The ConstructL from the base class CEUnitTestSuiteClass must be called.
    82     // It generates the test case table.
    85     // It generates the test case table.
    83     CEUnitTestSuiteClass::ConstructL();
    86     CEUnitTestSuiteClass::ConstructL();
       
    87 
       
    88     // Disable screen saver
       
    89     CFEnvUtils::EnableScreenSaver( EFalse );
    84     }
    90     }
    85 
    91 
    86 //  METHODS
    92 //  METHODS
    87 
    93 
    88 void MT_CFSisUpgrade::ContextIndicationL(
    94 void MT_CFSisUpgrade::ContextIndicationL(