testexecfw/stf/stfui/stf/inc/activetimer.h
changeset 2 8bb370ba6d1d
equal deleted inserted replaced
1:bbd31066657e 2:8bb370ba6d1d
       
     1 /*
       
     2 * Copyright (c) 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 #ifndef ACTIVETIMER_H_
       
    19 #define ACTIVETIMER_H_
       
    20 #include <e32std.h>
       
    21 #include <e32base.h>
       
    22 #include <e32cons.h>
       
    23 
       
    24 const TInt KPrintInterval = 1000000;
       
    25 
       
    26 class CActiveTimer : public CTimer
       
    27     {
       
    28     
       
    29 public:
       
    30     static CActiveTimer* NewL( CConsoleBase* aConsole );
       
    31     ~CActiveTimer();
       
    32 
       
    33 public:
       
    34     void StartL();
       
    35 
       
    36 public:
       
    37     void RunL();
       
    38     void DoCancel();
       
    39 
       
    40 private:
       
    41     CActiveTimer( CConsoleBase* aConsole );
       
    42     void ConstructL();
       
    43 
       
    44 private: 
       
    45     CConsoleBase* iConsole;
       
    46     TTime iStartTime;
       
    47     TInt iXPos;
       
    48     TInt iYPos;
       
    49     
       
    50     };
       
    51 
       
    52 #endif /* ACTIVETIMER_H_ */