messagingfw/sendas/test/sendastesteditutils/src/csendastestedittimer.cpp
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     1 // Copyright (c) 2005-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 //
       
    15 
       
    16 #include "csendastestedittimer.h"
       
    17 #include "csendastesteditutils.h"
       
    18 
       
    19 #include <mturutils.h>
       
    20 #include <msvids.h>
       
    21 
       
    22 CSendAsTestEditTimer* CSendAsTestEditTimer::NewL(CSendAsTestEditUtils& aEditUtils)
       
    23 	{
       
    24 	CSendAsTestEditTimer* self=new (ELeave) CSendAsTestEditTimer(aEditUtils);
       
    25 	CleanupStack::PushL(self);
       
    26 	self->ConstructL();
       
    27 	CleanupStack::Pop(self);
       
    28 	return self;
       
    29 	}
       
    30 	
       
    31 CSendAsTestEditTimer::CSendAsTestEditTimer(CSendAsTestEditUtils& aEditUtils)
       
    32 : CTimer(EPriorityStandard), iEditUtils(aEditUtils)
       
    33 	{
       
    34 	CActiveScheduler::Add(this);
       
    35 	}
       
    36 	
       
    37 CSendAsTestEditTimer::~CSendAsTestEditTimer()
       
    38 	{
       
    39 	Cancel();
       
    40 	}
       
    41 	
       
    42 // methods from CActive	
       
    43 void CSendAsTestEditTimer::RunL()
       
    44 	{
       
    45 	// inform the edit utils that the timer is complete
       
    46 	iEditUtils.TimerDone();
       
    47 	}