usbengines/usbotgwatcher/inc/cusbtimer.h
branchRCL_3
changeset 65 a44cdf4b4bf0
parent 3 47c263f7e521
child 21 ff9df6630274
equal deleted inserted replaced
64:8ecef05bbada 65:a44cdf4b4bf0
     1 /*
     1 /*
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2  * Copyright (c) 2008-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 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  timer
       
    15  *
     8  *
    16 */
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:  timer
       
    15  *
       
    16  */
    17 
    17 
    18 #ifndef C_USBTIMER_H
    18 #ifndef C_USBTIMER_H
    19 #define C_USBTIMER_H
    19 #define C_USBTIMER_H
    20 
    20 
    21 #include <e32base.h>
    21 #include <e32base.h>
    63      * Two-phased constructor
    63      * Two-phased constructor
    64      *
    64      *
    65      * @param aObserver will get call back
    65      * @param aObserver will get call back
    66      * @param aTimerId timer id
    66      * @param aTimerId timer id
    67      */
    67      */
    68     static CUsbTimer * NewL(MUsbTimerObserver* aObserver,
    68     static CUsbTimer * NewL(MUsbTimerObserver& aObserver,
    69             TUsbTimerId aTimerId);
    69             TUsbTimerId aTimerId);
    70 
    70 
    71     /**
    71     /**
    72      * Destructor.
    72      * Destructor.
    73      */
    73      */
   104     /**
   104     /**
   105      * Default constructor
   105      * Default constructor
   106      * @param aObserver will get call back
   106      * @param aObserver will get call back
   107      * @param aTimerId timer id 
   107      * @param aTimerId timer id 
   108      */
   108      */
   109     CUsbTimer(MUsbTimerObserver* aObserver, TUsbTimerId aTimerId);
   109     CUsbTimer(MUsbTimerObserver& aObserver, TUsbTimerId aTimerId);
   110 
   110 
   111     /**
   111     /**
   112      * 2nd phase construction
   112      * 2nd phase construction
   113      */
   113      */
   114     void ConstructL();
   114     void ConstructL();
   118 
   118 
   119     /**
   119     /**
   120      * Observer
   120      * Observer
   121      * not own
   121      * not own
   122      */
   122      */
   123     MUsbTimerObserver* iObserver;
   123     MUsbTimerObserver& iObserver;
   124 
   124 
   125     /**
   125     /**
   126      * RTimer API
   126      * RTimer API
   127      */
   127      */
   128     RTimer iTimer;
   128     RTimer iTimer;