cryptomgmtlibs/securitytestfw/test/testhandler2/ttesthandlersettings.h
changeset 0 2c201484c85f
child 8 35751d3474b7
equal deleted inserted replaced
-1:000000000000 0:2c201484c85f
       
     1 /*
       
     2 * Copyright (c) 1998-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 the License "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 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __TESTHANDLERSETTINGS_H__
       
    20 #define __TESTHANDLERSETTINGS_H__
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 /**
       
    25  * This class stores the various settings that define the behaviour of
       
    26  * the test handler.
       
    27  *
       
    28  * this is a C-class, but it doesn't derived from CBase!
       
    29  */
       
    30 class CTestHandlerSettings
       
    31 	{
       
    32 public:
       
    33 	/**
       
    34 	 * This function creates a new CTestHandlerSettings object.
       
    35 	 */
       
    36 	IMPORT_C static CTestHandlerSettings* NewLC();
       
    37 	/**
       
    38 	 * This function creates a new copy of the argument.
       
    39 	 */
       
    40 	IMPORT_C static CTestHandlerSettings* NewL(const CTestHandlerSettings& aOther);
       
    41 	/**
       
    42 	 * The destructor.
       
    43 	 */
       
    44 	IMPORT_C ~CTestHandlerSettings();
       
    45 
       
    46 private:
       
    47 	/**
       
    48 	 * The default constructor produces settings adequate for running automated tests.
       
    49 	 * The settings are all set to false.
       
    50 	 */
       
    51 	CTestHandlerSettings();
       
    52 	/**
       
    53 	 * The second-phase constructor.
       
    54 	 */
       
    55 	void ConstructL();
       
    56 	
       
    57 public:
       
    58 	/**
       
    59 	 * If this is set to ETrue, then at the end of the tests, the handler will not
       
    60 	 * quit immediately : it will wait until the user has pressed a key to quit.
       
    61 	 * This is to allow the user to read the contents of the screen.
       
    62 	 */
       
    63 	TBool iWaitForKeyPressAtEnd;
       
    64 
       
    65 	/**
       
    66 	 * Used to hold the bitflag values for the switches read in  
       
    67 	 * from the commandline
       
    68 	 */
       
    69 	TBool iOOM;
       
    70 	TBool iCancel;
       
    71 	TBool iSkip;
       
    72 	TBool iExhaust;
       
    73 	TBool iInt;
       
    74 	};
       
    75 
       
    76 #endif