messagingfw/msgtestfw/TestActions/Base/Attachments/inc/CMtfAsyncWaiter.h
changeset 62 db3f5fa34ec7
parent 0 8e480a14352b
equal deleted inserted replaced
60:9f5ae1728557 62:db3f5fa34ec7
       
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __CMTFASYNCWAITER_H__
       
    17 #define __CMTFASYNCWAITER_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 
       
    21 class CMtfAsyncWaiter : public CActive
       
    22 	{
       
    23 public:
       
    24 	static CMtfAsyncWaiter* NewL();
       
    25 	~CMtfAsyncWaiter();
       
    26 	
       
    27 	void StartAndWait();
       
    28 	TInt Result() const;
       
    29 	
       
    30 private:
       
    31 	CMtfAsyncWaiter();
       
    32 	
       
    33 	// from CActive
       
    34 	virtual void RunL();
       
    35 	virtual void DoCancel();
       
    36 	
       
    37 private:
       
    38 	TInt iError;
       
    39 	};
       
    40 
       
    41 #endif // __CMTFASYNCWAITER_H__