buildverification/autosmoketest/Utils/Src/SmokeTestTimeOutTimer.cpp
branchGCC_SURGE
changeset 17 03d9ade4748d
parent 14 5d7fec11a5ce
parent 15 5b5908ec640f
equal deleted inserted replaced
14:5d7fec11a5ce 17:03d9ade4748d
     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 // 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 	};