hotspotfw/internetconnectivitytestservice/inc/ictspollingintervaltimer.h
changeset 0 56b72877c1cb
equal deleted inserted replaced
-1:000000000000 0:56b72877c1cb
       
     1 /*
       
     2 * Copyright (c) 2006 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:   Timer class for polling interval
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef ICTSPOLLINGINTERVALTIMER_H
       
    21 #define ICTSPOLLINGINTERVALTIMER_H
       
    22 
       
    23 #include <e32base.h>
       
    24 
       
    25 class MIctsPollingIntervalObserver;
       
    26 
       
    27 /**
       
    28  *  Timer for polling interval
       
    29  *
       
    30  *  @lib ictsclientinterface.lib
       
    31  */
       
    32 class CIctsPollingIntervalTimer : public CTimer
       
    33     {
       
    34     
       
    35     public:
       
    36         
       
    37         /**
       
    38         * Static constructor.
       
    39         */    
       
    40         static CIctsPollingIntervalTimer* NewL( MIctsPollingIntervalObserver& aObserver );
       
    41     
       
    42         /**
       
    43         * Destructor.
       
    44         */
       
    45         virtual ~CIctsPollingIntervalTimer();
       
    46     
       
    47         // from CTimer
       
    48     
       
    49         /**
       
    50         * Timer expired
       
    51         */
       
    52         void RunL();
       
    53     
       
    54     private:
       
    55     
       
    56         /**
       
    57         * C++ default constructor.
       
    58         */
       
    59         CIctsPollingIntervalTimer( MIctsPollingIntervalObserver& aObserver );
       
    60 
       
    61         /**
       
    62         * By default Symbian 2nd phase constructor is private.
       
    63         */
       
    64         void ConstructL();
       
    65                      
       
    66     private: // data
       
    67 
       
    68         /**
       
    69         * Reference of client using timer 
       
    70         * Not own.  
       
    71         */
       
    72         MIctsPollingIntervalObserver& iObserver;
       
    73     
       
    74     };
       
    75 
       
    76 #endif // ICTSPOLLINGINTERVALTIMER_H