Utils/Src/SmokeTestTimeOutTimer.cpp
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
equal deleted inserted replaced
0:e8c1ea2c6496 1:8758140453c0
       
     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 the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // SmokeTestTimeOutTimer.h
       
    15 // This contains CTestTimeOutTimer
       
    16 // 
       
    17 //
       
    18 
       
    19 #include "SmokeTestTimeOutTimer.h"
       
    20 
       
    21 //////////////////////////////////////////////////////////////////////
       
    22 // Construction/Destruction
       
    23 //////////////////////////////////////////////////////////////////////
       
    24 
       
    25 EXPORT_C CTestTimeOutTimer::~CTestTimeOutTimer()
       
    26 	{
       
    27 	}
       
    28 
       
    29 EXPORT_C CTestTimeOutTimer* CTestTimeOutTimer::NewL(MTestTimeOutTimerCallback& aTestTimerCallback, TInt aPriority)
       
    30 	{
       
    31 	CTestTimeOutTimer*	self=NewLC(aTestTimerCallback, aPriority);
       
    32 	CleanupStack::Pop();
       
    33 	return self;
       
    34 	}
       
    35 
       
    36 EXPORT_C CTestTimeOutTimer* CTestTimeOutTimer::NewLC(MTestTimeOutTimerCallback& aTestTimerCallback, TInt aPriority)
       
    37 	{
       
    38 	CTestTimeOutTimer*	self=new(ELeave) CTestTimeOutTimer(aTestTimerCallback, aPriority);
       
    39 	CleanupStack::PushL(self);
       
    40 	self->ConstructL();
       
    41 	return self;
       
    42 	}
       
    43 
       
    44 CTestTimeOutTimer::CTestTimeOutTimer(MTestTimeOutTimerCallback& aTestTimerCallback, TInt aPriority)
       
    45 :	CTimer(aPriority)
       
    46 ,	iTestTimerCallback(aTestTimerCallback)
       
    47 	{
       
    48 	}
       
    49 
       
    50 void CTestTimeOutTimer::ConstructL()
       
    51 	{
       
    52 	CTimer::ConstructL();
       
    53 	CActiveScheduler::Add(this);
       
    54 	}
       
    55 
       
    56 void CTestTimeOutTimer::RunL()
       
    57 	{
       
    58 	iTestTimerCallback.TimerCompleted();
       
    59 	};