websrv_pub/xml_extensions_api/tsrc/bc/xml_extensions_api/inc/ConnectionTimer.h
changeset 0 62f9d29f7211
equal deleted inserted replaced
-1:000000000000 0:62f9d29f7211
       
     1 /*
       
     2 * Copyright (c) 2002 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:  ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CONNECTIONTIMER_H
       
    21 #define CONNECTIONTIMER_H
       
    22 
       
    23 //  INCLUDES
       
    24 
       
    25 #include <e32std.h>
       
    26 #include <e32base.h>
       
    27 
       
    28 class CConnectionTimer : public CActive
       
    29     {
       
    30     public:  // Constructors and destructor
       
    31         
       
    32         /**
       
    33         * Two-phased constructor.
       
    34         */
       
    35         static CConnectionTimer* NewL();
       
    36         
       
    37         /**
       
    38         * Destructor.
       
    39         */
       
    40         virtual ~CConnectionTimer();
       
    41 
       
    42     public: // New functions
       
    43         
       
    44         void SetConnectionTimer(TTimeIntervalMicroSeconds32 aTimeOut);
       
    45         
       
    46     private:
       
    47 
       
    48         /**
       
    49         * C++ default constructor.
       
    50         */
       
    51         CConnectionTimer( );
       
    52 
       
    53         /**
       
    54         * By default Symbian 2nd phase constructor is private.
       
    55         */
       
    56         void ConstructL();
       
    57 
       
    58         //From Active
       
    59         void RunL();
       
    60 		void DoCancel();
       
    61 		private:    // Data
       
    62         //logging
       
    63         RTimer iTimer;
       
    64             };
       
    65 
       
    66 #endif      // CONNECTIONTIMER_H
       
    67             
       
    68 // End of File