applayerprotocols/httptransportfw/Test/T_HttpIntegration/CTimeoutTimer.cpp
changeset 0 b16258d2340f
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // $Header$
       
    15 // TEngine.cpp
       
    16 // 
       
    17 //
       
    18 
       
    19 #include "CTimeoutTimer.h"
       
    20 
       
    21 //-----------------------------------------------------------------------------
       
    22 
       
    23 CTimeoutTimer* CTimeoutTimer::NewL(MTimeoutCallback& aCallback)
       
    24 {
       
    25 CTimeoutTimer* self = new (ELeave) CTimeoutTimer(aCallback);
       
    26 CleanupStack::PushL(self);
       
    27 self->ConstructL();
       
    28 CleanupStack::Pop(self);
       
    29 return self;
       
    30 }
       
    31 
       
    32 //-----------------------------------------------------------------------------
       
    33 
       
    34 CTimeoutTimer::~CTimeoutTimer()
       
    35 {
       
    36 }
       
    37 
       
    38 //-----------------------------------------------------------------------------
       
    39 
       
    40 CTimeoutTimer::CTimeoutTimer(MTimeoutCallback& aCallback)
       
    41 	: 
       
    42 	CTimer(EPriorityHigh), 
       
    43 	iCallback(aCallback)
       
    44 {
       
    45 CActiveScheduler::Add(this);
       
    46 }
       
    47 
       
    48 //-----------------------------------------------------------------------------
       
    49 
       
    50 void CTimeoutTimer::ConstructL()
       
    51 {
       
    52 CTimer::ConstructL();
       
    53 }
       
    54 
       
    55 //-----------------------------------------------------------------------------
       
    56 
       
    57 void CTimeoutTimer::RunL()
       
    58 {
       
    59 iCallback.Timeout();
       
    60 }
       
    61 
       
    62 //-----------------------------------------------------------------------------
       
    63 //	End of File
       
    64 //-----------------------------------------------------------------------------