os/persistentdata/loggingservices/eventlogger/LogServ/src/LogServShutDownTimer.cpp
First public contribution.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #include "LogServShutdownTimer.h"
19 /////////////////////////////////////////////////////////////////////////////////////////
20 // -----> CLogServShutdownTimer (source)
21 /////////////////////////////////////////////////////////////////////////////////////////
23 CLogServShutdownTimer::CLogServShutdownTimer(TInt aPriority)
26 CActiveScheduler::Add(this);
29 void CLogServShutdownTimer::ConstructL()
34 CLogServShutdownTimer* CLogServShutdownTimer::NewL(TInt aPriority)
36 CLogServShutdownTimer* self = new(ELeave) CLogServShutdownTimer(aPriority);
37 CleanupStack::PushL(self);
39 CleanupStack::Pop(self);
43 /////////////////////////////////////////////////////////////////////////////////////////
44 /////////////////////////////////////////////////////////////////////////////////////////
45 /////////////////////////////////////////////////////////////////////////////////////////
47 void CLogServShutdownTimer::Start()
49 After(KLogShutdownDelay);
52 /////////////////////////////////////////////////////////////////////////////////////////
53 /////////////////////////////////////////////////////////////////////////////////////////
54 /////////////////////////////////////////////////////////////////////////////////////////
56 void CLogServShutdownTimer::RunL()
58 // Initiate server exit when the timer expires
59 CActiveScheduler::Stop();