testexecmdw/tef/tef/tefutilities/platsec/inc/testplatsecsetcapabilities.h
branchRCL_3
changeset 3 9397a16b6eb8
parent 1 6edeef394eb7
equal deleted inserted replaced
1:6edeef394eb7 3:9397a16b6eb8
     1 /*
       
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 * This contains CTestPlatSecSetCapabilities. This class sets the capabilities
       
    16 * of the executables. 
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 #if (!defined __TEST_PLATSEC_SET_CAPABILITIES_H__)
       
    23 #define __TEST_PLATSEC_SET_CAPABILITIES_H__
       
    24 
       
    25 //TEF include
       
    26 #include <test/testexecutestepbase.h>
       
    27 
       
    28 /**
       
    29  This class sets the capabilities of the executables. 
       
    30  The executable name and its capabilities are read from
       
    31  the ini file. The executable "SetCap.exe" is used to
       
    32  set the capabilities.
       
    33 */
       
    34 class CTestPlatSecSetCapabilities : public CTestStep
       
    35 	{
       
    36 public:
       
    37 	//Constructor
       
    38 	CTestPlatSecSetCapabilities();
       
    39 
       
    40 	//Destructor
       
    41 	~CTestPlatSecSetCapabilities();
       
    42 
       
    43 	//Implementation of CTestStep pure virtual funtion
       
    44 	virtual TVerdict doTestStepL();
       
    45 private:
       
    46 	//Set the capabilites of the executables
       
    47 	void SetCapabilitiesL(const TDesC & aExecutable, const TDesC & aCapabilities, const TDesC & aDestination);
       
    48 
       
    49 	//Get the capability
       
    50 	TInt GetCapability(TPtrC aCapability, TCapability& aCapabilityValue);
       
    51 
       
    52 	//return the hex value for the capabilities
       
    53 	TInt CreateHexCapabilities(TDesC& aCapabilities );
       
    54 
       
    55 	};
       
    56 #endif //__TEST_PLATSEC_SET_CAPABILITIES_H__