videoutils_plat/videoconnutility_api/tsrc/VCXTestCommon/inc/CIptvTestTimer.h
branchRCL_3
changeset 23 13a33d82ad98
parent 0 822a42b6c3f1
equal deleted inserted replaced
22:826cea16efd9 23:13a33d82ad98
       
     1 /*
       
     2 * Copyright (c) 2008 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 the License "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 
       
    19 
       
    20 #ifndef CIPTVTESTTIMER_H
       
    21 #define CIPTVTESTTIMER_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // CONSTANTS
       
    27 
       
    28 // MACROS
       
    29 
       
    30 // DATA TYPES
       
    31 
       
    32 // FUNCTION PROTOTYPES
       
    33 
       
    34 // FORWARD DECLARATIONS
       
    35 class MIptvTestTimerObserver;
       
    36 
       
    37 // CLASS DECLARATION
       
    38 
       
    39 /**
       
    40 *
       
    41 *
       
    42 *
       
    43 *
       
    44 *  @since
       
    45 */
       
    46 class CIptvTestTimer : public CActive
       
    47     {
       
    48     public:  // Constructors and destructor
       
    49 
       
    50         /**
       
    51         * Two-phased constructor.
       
    52         */
       
    53         IMPORT_C static CIptvTestTimer* NewL(MIptvTestTimerObserver& aObserver, TInt aId);
       
    54 
       
    55         /**
       
    56         * Destructor.
       
    57         */
       
    58         IMPORT_C virtual ~CIptvTestTimer();
       
    59 
       
    60 
       
    61     public: // New functions
       
    62 		IMPORT_C void After(TTimeIntervalMicroSeconds32 aInterval);
       
    63 		IMPORT_C void CancelTimer( );
       
    64 
       
    65     protected: //from base classes
       
    66 	    void RunL();
       
    67 	    void DoCancel();
       
    68 
       
    69     private:
       
    70 
       
    71         /**
       
    72         * C++ default constructor.
       
    73         */
       
    74         CIptvTestTimer(MIptvTestTimerObserver& aObserver, TInt aId);
       
    75 
       
    76         /**
       
    77         * By default Symbian 2nd phase constructor is private.
       
    78         */
       
    79         void ConstructL();
       
    80 
       
    81     private:    // Data
       
    82 	    RTimer iTimer;
       
    83 	    MIptvTestTimerObserver& iObserver;
       
    84 	    TInt  iId;
       
    85 	    TBool iRestartAfterCancel;
       
    86 	    TTimeIntervalMicroSeconds32 iInterval;
       
    87     };
       
    88 
       
    89 
       
    90 #endif      // CIPTVTESTTIMER_H
       
    91 
       
    92 // End of File