stif/stif_plat/inc/StifCommand.h
branchRCL_3
changeset 59 8ad140f3dd41
equal deleted inserted replaced
49:7fdc9a71d314 59:8ad140f3dd41
       
     1 /*
       
     2 * Copyright (c) 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: This file contains the type definitions used by 
       
    15 * command feature (i.e. StopExecution).
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef STIF_COMMAND_H
       
    20 #define STIF_COMMAND_H
       
    21 
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // CONSTANTS 
       
    27 const TInt KMaxCommandParamsLength = 50;	// DEPRECATED use KMaxCommandParamsLength2 instead
       
    28 const TInt KMaxCommandParamsLength2 = 600;
       
    29 
       
    30 // MACROS
       
    31 
       
    32 // FUNCTION PROTOTYPES
       
    33 
       
    34 // DATA TYPES
       
    35 
       
    36 // This enum type lists all possible commands sent from test case to test engine
       
    37 enum TCommand
       
    38     {
       
    39     EStopExecution,
       
    40     ESendTestModuleVersion,
       
    41     };
       
    42 
       
    43 typedef TPckg<TCommand> TCommandPckg;
       
    44 
       
    45 // This enum type lists all possible ways of how to run StopExecution command
       
    46 enum TStopExecutionType
       
    47     {
       
    48     EOk,
       
    49     EFail,
       
    50     EAbort,
       
    51     };
       
    52 
       
    53 // FUNCTION PROTOTYPES
       
    54 
       
    55 // FORWARD DECLARATIONS
       
    56 
       
    57 // CLASS DECLARATION
       
    58 struct TStopExecutionCommandParams
       
    59     {
       
    60     TInt               iTestCaseHandle;
       
    61     TStopExecutionType iType;
       
    62     TInt               iCode;
       
    63     };
       
    64 
       
    65 typedef TPckg<TStopExecutionCommandParams> TStopExecutionCommandParamsPckg;
       
    66 
       
    67 
       
    68 struct TSendTestModuleVesionCommandParams
       
    69 	{
       
    70 	TFileName iTestModuleName;
       
    71 	TInt iMajor;
       
    72 	TInt iMinor;
       
    73 	TInt iBuild;
       
    74 	};
       
    75 
       
    76 typedef TPckg<TSendTestModuleVesionCommandParams> TSendTestModuleVesionCommandParamsPckg;
       
    77 
       
    78 #endif //STIF_COMMAND_H
       
    79 
       
    80 // End of File