supl/locationsuplfw/gateway/inc/epos_csuplconnecttimer.h
changeset 0 667063e416a2
equal deleted inserted replaced
-1:000000000000 0:667063e416a2
       
     1 /*
       
     2 * Copyright (c) 2005 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:   Class to handle server delayed shutdown
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __CSuplConnecttimer_H
       
    21 #define __CSuplConnecttimer_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 #include "epos_mconnecttimerobserver.h"
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31  *  Class to handle delayed server shutdown
       
    32  */
       
    33 class CSuplConnectTimer : public CTimer
       
    34     {
       
    35     private:    // Constructor
       
    36         /**
       
    37         * C++ Constructor
       
    38         */
       
    39         CSuplConnectTimer(MConnectTimerObserver *aObserver);
       
    40 
       
    41     public:     // Destructor
       
    42         /**
       
    43         * C++ Destructor
       
    44         */
       
    45         ~CSuplConnectTimer();
       
    46 
       
    47         /**
       
    48         * Two-phase constructor
       
    49         */
       
    50         static CSuplConnectTimer* NewL(MConnectTimerObserver *aObserver);
       
    51 
       
    52     public:     // New functions
       
    53 
       
    54 		/**
       
    55         * Start shutdown countdown.
       
    56         */
       
    57         void Start(TTimeIntervalMicroSeconds32 aDelay);
       
    58 
       
    59     private:
       
    60         /**
       
    61         * EPOC default constructor
       
    62         */
       
    63         void ConstructL();
       
    64 
       
    65         // By default, prohibit copy constructor
       
    66         CSuplConnectTimer( const CSuplConnectTimer& );
       
    67         // Prohibit assigment operator
       
    68         CSuplConnectTimer& operator= ( const CSuplConnectTimer& );
       
    69 
       
    70     protected:  // Functions from base classes
       
    71 
       
    72         /**
       
    73         * From CActive.
       
    74         * Called when timer completes
       
    75         */
       
    76         void RunL();
       
    77 
       
    78     private:    // Data
       
    79         MConnectTimerObserver	*iObserver;
       
    80     };
       
    81 
       
    82 #endif // __CSuplConnecttimer_H
       
    83 
       
    84 // End of File