uifw/ganes/inc/HgVgTimer.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     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 HGVGTIMER_H_
       
    19 #define HGVGTIMER_H_
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32base.h>
       
    23 #include <e32std.h> 
       
    24 
       
    25 /**
       
    26  * Timer class. Needed for better timer resolution in HgVgMediaWall.
       
    27  */
       
    28 NONSHARABLE_CLASS(CHgVgTimer) : public CTimer
       
    29     {
       
    30 public:
       
    31 
       
    32     /**
       
    33      * Creates new CHgVgTimer
       
    34      */
       
    35     static CHgVgTimer* NewL (); 
       
    36         
       
    37     // Destructor.
       
    38     virtual ~CHgVgTimer();
       
    39 
       
    40 protected:
       
    41     CHgVgTimer();
       
    42     
       
    43 public: // CTimer
       
    44     
       
    45     void RunL();
       
    46     
       
    47 public:        
       
    48     void Start( TTimeIntervalMicroSeconds32 aDelay,
       
    49                     TTimeIntervalMicroSeconds32 anInterval,
       
    50                     TCallBack aCallBack );
       
    51             
       
    52 private:    
       
    53     TTimeIntervalMicroSeconds32 iInterval;
       
    54     TCallBack iCallBack;
       
    55     };
       
    56 
       
    57 #endif /* HGVGTIMER */