testexecmdw/tef/tef/utils/inc/teftimer.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 * @file
       
    16 * This contains CTEFTimer
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 #ifndef __TEF_TIMER_H__
       
    23 #define __TEF_TIMER_H__
       
    24 
       
    25 #include <e32base.h>
       
    26 
       
    27 class MTEFTimerCallback
       
    28 /**
       
    29  * @internalComponent
       
    30  * @test
       
    31  *
       
    32  * Timer completion callback
       
    33  */
       
    34 	{
       
    35 public:
       
    36 	/**
       
    37 	 * Method from which CTEFTimer informs the user that the timer has completed
       
    38 	 */
       
    39 	virtual void	TimerCompleted() = 0;
       
    40 	};
       
    41 
       
    42 class CTEFTimer : public CTimer
       
    43 /**
       
    44  * @internalComponent
       
    45  * @test
       
    46  *
       
    47  * @see		CTimer
       
    48  * Timer help class
       
    49  */
       
    50 	{
       
    51 public:
       
    52 	IMPORT_C static CTEFTimer*	NewL(MTEFTimerCallback& aCallback, TInt aPriority = EPriorityStandard);
       
    53 
       
    54 protected:
       
    55 	CTEFTimer(MTEFTimerCallback& aCallback, TInt aPriority);
       
    56 
       
    57 	void				ConstructL();
       
    58 
       
    59 	virtual void		RunL();
       
    60 
       
    61 private:
       
    62 	MTEFTimerCallback&	iCallback;
       
    63 	};
       
    64 
       
    65 #endif // __TEF_TIMER_H__