realtimenetprots/sipfw/SampleApp/socketengine/Inc/SIPExTimeOutTimer.h
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 
       
     2 /*
       
     3 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     4 * All rights reserved.
       
     5 * This component and the accompanying materials are made available
       
     6 * under the terms of "Eclipse Public License v1.0"
       
     7 * which accompanies this distribution, and is available
       
     8 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     9 *
       
    10 * Initial Contributors:
       
    11 * Nokia Corporation - initial contribution.
       
    12 *
       
    13 * Contributors:
       
    14 *
       
    15 * Description:
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CSIPEXTIMEOUTIMER_H
       
    22 #define CSIPEXTIMEOUTIMER_H
       
    23 
       
    24 // INCLUDES
       
    25 #include    <e32base.h>
       
    26 
       
    27 // CONSTANTS
       
    28 const TInt KTimeOutInSeconds( 30 );
       
    29 const TInt KTimeOut( KTimeOutInSeconds * 1000000 );
       
    30 
       
    31 // FORWARD DECLARATIONS
       
    32 class MSIPExTimeOutNotify;
       
    33 
       
    34 // CLASS DECLARATIONS
       
    35 /**
       
    36 * Implements timeout timer.
       
    37 */
       
    38 class CSIPExTimeOutTimer: public CTimer
       
    39 	{
       
    40     public:
       
    41         
       
    42         /**
       
    43         * Static constructor
       
    44         * @param aTimeOutNotify The reference to the timeout notifier.
       
    45         * @return A new instance of CSIPExTimeOutTimer
       
    46         */
       
    47         static CSIPExTimeOutTimer* NewL( MSIPExTimeOutNotify& aTimeOutNotify );
       
    48 
       
    49         /**
       
    50         * Destructor.
       
    51         */
       
    52         ~CSIPExTimeOutTimer();
       
    53 
       
    54     protected:
       
    55 
       
    56         /**
       
    57         * C++ default constructor.
       
    58         * @param aTimeOutNotify The reference to the timeout notifier.
       
    59         */
       
    60         CSIPExTimeOutTimer( MSIPExTimeOutNotify& aTimeOutNotify );
       
    61 
       
    62         /**
       
    63         * Symbian 2nd phase constructor that might leave.
       
    64         */
       
    65         void ConstructL( );
       
    66 
       
    67     private: // From base classes
       
    68         /**
       
    69         * From CActive
       
    70         */
       
    71         virtual void RunL();
       
    72 
       
    73     private: // Member variables
       
    74 
       
    75         // The reference to the notifier
       
    76         MSIPExTimeOutNotify& iNotifier;
       
    77 	};
       
    78 
       
    79 #endif // CSIPEXTIMEOUTIMER_H
       
    80 
       
    81 // End of file