testexecmdw/tef/tef/utils/inc/testexecuteclient.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 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 /**
       
    21  @file TestExecuteClient.h
       
    22 */
       
    23 
       
    24 #if !(defined __TESTEXECUTE_CLIENT_H__)
       
    25 #define __TESTEXECUTE_CLIENT_H__
       
    26 
       
    27 #include <e32base.h>
       
    28 #include <test/tefexportconst.h>
       
    29 #include <test/blockitems.h>
       
    30 
       
    31 enum
       
    32 	{
       
    33 	EConnectServer,
       
    34 	EOpenTestStep,
       
    35 	ERunTestStep,
       
    36 	EAbortTestStep,
       
    37 	ECloseTestStep,
       
    38 	EOpenTestBlock,
       
    39 	ERunTestBlock
       
    40 	};
       
    41 
       
    42 class RTestServ : public RSessionBase
       
    43 /**
       
    44 @publishedPartner
       
    45 @test
       
    46 */
       
    47 	{
       
    48 public:
       
    49 	IMPORT_C TInt Connect(const TDesC& aServerName, TBool aDebugMode = EFalse);
       
    50 	IMPORT_C const TDesC& ServerName() const;
       
    51 protected:
       
    52 private:
       
    53 	RLibrary iLibrary;
       
    54 	TBuf<KMaxTestExecuteNameLength> iServerName;
       
    55 	TVersion Version() const;
       
    56 	};
       
    57 
       
    58 class RTestSession : public RSubSessionBase
       
    59 /**
       
    60 @publishedPartner
       
    61 @test
       
    62 */
       
    63 	{
       
    64 public:
       
    65 	IMPORT_C TInt Open(RTestServ& aServ, const TDesC& aStepName, TBool aSharedData = EFalse);
       
    66 	IMPORT_C void RunTestStep(const TDesC& aCommandString, TDes& aPanicString, TRequestStatus& aStatus);
       
    67 	IMPORT_C TInt AbortTestStep();
       
    68 	IMPORT_C void Close();
       
    69 	IMPORT_C TInt Open(RTestServ& aServ, TBool aSharedData = EFalse);
       
    70 	IMPORT_C void RunTestBlock(const TDesC& aCommandString, TDes& aPanicString, TDes8& aBlockArray, TRequestStatus& aStatus);
       
    71 	inline	RTestSession() : iBlockArrayPtr((TUint8*)(NULL),0) {}
       
    72 	
       
    73 protected:
       
    74 private:
       
    75 	TPtr8	iBlockArrayPtr;
       
    76 	};
       
    77 
       
    78 #endif