khronosfws/openmax_al/src/mmf_adaptation/sfmrlocaltimer.h
changeset 25 6f7ceef7b1d1
parent 12 5a06f39ad45b
equal deleted inserted replaced
21:2ed61feeead6 25:6f7ceef7b1d1
     1 /*
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2  * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3  * All rights reserved.
     4 * This component and the accompanying materials are made available
     4  * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5  * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6  * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     8  *
     9 * Initial Contributors:
     9  * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10  * Nokia Corporation - initial contribution.
    11 *
    11  *
    12 * Contributors:
    12  * Contributors:
    13 *
    13  *
    14 * Description: 
    14  * Description: 
    15 *
    15  *
    16 */
    16  */
    17 // sfmrlocaltimer.h
       
    18 
    17 
    19 #ifndef SFMRLOCALTIMER_H
    18 #ifndef SFMRLOCALTIMER_H
    20 #define SFMRLOCALTIMER_H
    19 #define SFMRLOCALTIMER_H
    21 
    20 
    22 #include <e32base.h>
    21 #include <e32base.h>
    26     {
    25     {
    27 public:
    26 public:
    28     // Construct/destruct
    27     // Construct/destruct
    29     LocalTimer(CMMFBackendEngine* parent, void* adaptContext);
    28     LocalTimer(CMMFBackendEngine* parent, void* adaptContext);
    30     TInt PostInit();
    29     TInt PostInit();
    31     ~LocalTimer();
    30     virtual ~LocalTimer();
    32 
    31 
    33 public:
    32 public:
    34     // Starts ticking after every aDelay microsecs
    33     // Starts ticking after every aDelay microsecs
    35     void Start(TUint64 aDelay);
    34     void Start(TUint64 aDelay);
    36     void Stop();
    35     void Stop();
    40 protected:
    39 protected:
    41     // From CActive
    40     // From CActive
    42     void RunL();
    41     void RunL();
    43     void DoCancel();
    42     void DoCancel();
    44 
    43 
    45 
       
    46 private:
    44 private:
    47     RTimer iTimer;      // Has
    45     RTimer iTimer; // Has
    48     TUint64 iTime;
    46     TUint64 iTime;
    49     TUint64 iDelay;
    47     TUint64 iDelay;
    50     CMMFBackendEngine* iParent;
    48     CMMFBackendEngine* iParent;
    51     void* iAdaptContext;
    49     void* iAdaptContext;
    52     };
    50     };