messagingfw/msgtestfw/Framework/inc/CMtfTestActionWait.h
changeset 62 db3f5fa34ec7
parent 0 8e480a14352b
equal deleted inserted replaced
60:9f5ae1728557 62:db3f5fa34ec7
       
     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 #ifndef __CMTF_TEST_ACTION_WAIT_H__
       
    25 #define __CMTF_TEST_ACTION_WAIT_H__
       
    26 
       
    27 #include "CMtfTestAction.h"
       
    28 class CMtfTestActionParameters;
       
    29 class CMtfTestCase;
       
    30 
       
    31 /** Used by the framework to handle wait actions. */
       
    32 class CMtfTestActionWait: public CMtfTestAction
       
    33 {
       
    34 public:
       
    35 	virtual ~CMtfTestActionWait();
       
    36 	static CMtfTestActionWait* NewL(CMtfTestCase& aTestCase);		
       
    37 	
       
    38 	/** Creates a new ait action. Takes ownership of aActionIds at the end. */
       
    39 	static CMtfTestActionWait* NewL(CMtfTestCase& aTestCase, CMtfTestActionParameters* aActionIds);		
       
    40 	
       
    41 	virtual void ExecuteActionL();
       
    42 	virtual void RunL();
       
    43 	virtual void DoCancel();
       
    44 	virtual TBool WaitAction() const;
       
    45 		
       
    46 private:
       
    47 	CMtfTestActionWait(CMtfTestCase& aTestCase, const TBool& aWaitForAll);
       
    48 	
       
    49 private:
       
    50 	TBool	iWaitForAll;	// flag is true if this is a WaitForAll action
       
    51 };
       
    52 
       
    53 #endif
       
    54