networkhandling/networkhandlingengine/NetworkHandlingGsmInc/CNWNetworkViagTimer.h
changeset 0 ff3b6d0fd310
equal deleted inserted replaced
-1:000000000000 0:ff3b6d0fd310
       
     1 /*
       
     2 * Copyright (c) 2002-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:  This file contains the header file of the CNWNetworkViagTimer class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CNWNETWORKVIAGTIMER_H
       
    21 #define CNWNETWORKVIAGTIMER_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class MNWNetworkTimer;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33 *  Utility class for timer 
       
    34 *  
       
    35 *
       
    36 *  @lib euser.lib
       
    37 *  @since Series 60 2.8
       
    38 */
       
    39 class CNWNetworkViagTimer : public CTimer
       
    40     {
       
    41     public:  // Constructors and destructor
       
    42         
       
    43         /**
       
    44         * Two-phased constructor.
       
    45         */
       
    46         static CNWNetworkViagTimer* NewL(
       
    47             TInt aPriority = CActive::EPriorityStandard );
       
    48         
       
    49         /**
       
    50         * Destructor.
       
    51         */
       
    52         virtual ~CNWNetworkViagTimer();
       
    53 
       
    54     public: // New functions
       
    55         
       
    56         /**
       
    57         * Uses the mixin class to notify the timer expiration.
       
    58         *
       
    59         * @param    anInterval  Timer interval.
       
    60         * @param    aObserver   Observer to call after timer expiration.
       
    61         * @return
       
    62         */
       
    63         void After( const TTimeIntervalMicroSeconds32& anInterval, 
       
    64                     MNWNetworkTimer* aObserver );
       
    65 
       
    66     protected:  // Functions from CActive
       
    67         
       
    68         /**
       
    69         * Informs object that asyncronous request is ready.
       
    70         * 
       
    71         */
       
    72         virtual void RunL();
       
    73 
       
    74     private:
       
    75 
       
    76         /**
       
    77         * C++ default constructor.
       
    78         */
       
    79         CNWNetworkViagTimer( TInt aPriority );
       
    80 
       
    81         /**
       
    82         * By default Symbian 2nd phase constructor is private.
       
    83         */
       
    84         void ConstructL();
       
    85 
       
    86         // Prohibit copy constructor if not deriving from CBase.
       
    87         CNWNetworkViagTimer( const CNWNetworkViagTimer& );
       
    88         // Prohibit assigment operator if not deriving from CBase.
       
    89         CNWNetworkViagTimer& operator=( const CNWNetworkViagTimer& );
       
    90 
       
    91     private:    // Data
       
    92         // Pointer to the MNWNetworkTimer
       
    93         MNWNetworkTimer* iTimerObserver;
       
    94          
       
    95     };
       
    96 
       
    97 #endif      // CNWNetworkViagTimer_H   
       
    98             
       
    99 // End of File