messagingfw/msgtestfw/Framework/inc/CMtfTestActionManager.h
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     1 /**
       
     2 * Copyright (c) 2003-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
       
    22 */
       
    23 
       
    24 
       
    25 #ifndef __CMTF_TEST_ACTION_MANAGER_H__
       
    26 #define __CMTF_TEST_ACTION_MANAGER_H__
       
    27 
       
    28 #include <test/testexecutestepbase.h>
       
    29 
       
    30 class CMtfTestServer;
       
    31 class CMtfTestAction;
       
    32 
       
    33 /** CMtfTestActionManager is used by the framework to create action instances. */
       
    34 class CMtfTestActionManager : public CTestStep
       
    35 {
       
    36 public:
       
    37 	virtual  ~CMtfTestActionManager();
       
    38 	
       
    39 	/** Creates a new action manager for the specified test action. Test action is identified
       
    40 	by its name. */
       
    41 	static CMtfTestActionManager* NewL(CMtfTestServer& aTestServer,
       
    42 			const TDesC& aActionName);
       
    43 	
       
    44 	/** Creates a new dummy action manager, which does nothing. Used by the framework to handle 
       
    45 	script section for which don't require any action to be performed. */
       
    46 	static CMtfTestActionManager* NewL(CMtfTestServer& aTestServer);
       
    47 	
       
    48 	/** This function is required by TestExecute. */
       
    49 	virtual TVerdict doTestStepPreambleL();  	
       
    50 	
       
    51 	/** This function is required by TestExecute. */
       
    52 	virtual TVerdict doTestStepL();
       
    53 	
       
    54 	/** This function is required by TestExecute. */
       
    55 	virtual TVerdict doTestStepPostambleL();
       
    56 		
       
    57 protected:	
       
    58 	CMtfTestActionManager(CMtfTestServer& aTestServer);
       
    59 
       
    60 private:
       
    61 	void ConstructL(const TDesC& aActionName);
       
    62 	
       
    63 private:
       
    64 	CMtfTestServer&	iTestServer;
       
    65 	HBufC*	iActionName; 
       
    66 };
       
    67 
       
    68 #endif
       
    69