stif/stif_plat/inc/StifCommand.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 12 Mar 2010 15:50:45 +0200
branchRCL_3
changeset 6 ecff51f1e7fb
parent 0 a03f92240627
permissions -rw-r--r--
Revision: 201007 Kit: 201008

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
* 
* Description: This file contains the type definitions used by 
* command feature (i.e. StopExecution).
*
*/

#ifndef STIF_COMMAND_H
#define STIF_COMMAND_H


//  INCLUDES
#include <e32base.h>

// CONSTANTS 
const TInt KMaxCommandParamsLength = 50;	// DEPRECATED use KMaxCommandParamsLength2 instead
const TInt KMaxCommandParamsLength2 = 600;

// MACROS

// FUNCTION PROTOTYPES

// DATA TYPES

// This enum type lists all possible commands sent from test case to test engine
enum TCommand
    {
    EStopExecution,
    ESendTestModuleVersion,
    };

typedef TPckg<TCommand> TCommandPckg;

// This enum type lists all possible ways of how to run StopExecution command
enum TStopExecutionType
    {
    EOk,
    EFail,
    EAbort,
    };

// FUNCTION PROTOTYPES

// FORWARD DECLARATIONS

// CLASS DECLARATION
struct TStopExecutionCommandParams
    {
    TInt               iTestCaseHandle;
    TStopExecutionType iType;
    TInt               iCode;
    };

typedef TPckg<TStopExecutionCommandParams> TStopExecutionCommandParamsPckg;


struct TSendTestModuleVesionCommandParams
	{
	TFileName iTestModuleName;
	TInt iMajor;
	TInt iMinor;
	TInt iBuild;
	};

typedef TPckg<TSendTestModuleVesionCommandParams> TSendTestModuleVesionCommandParamsPckg;

#endif //STIF_COMMAND_H

// End of File