diff -r 000000000000 -r bde4ae8d615e os/persistentdata/loggingservices/eventlogger/LogServ/inc/LogServShutdownTimer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/os/persistentdata/loggingservices/eventlogger/LogServ/inc/LogServShutdownTimer.h Fri Jun 15 03:10:57 2012 +0200 @@ -0,0 +1,47 @@ +// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +#ifndef __LOGSERVSHUTDOWNTIMER_H__ +#define __LOGSERVSHUTDOWNTIMER_H__ + +#include + +/** +LogEng server shutdown timer. +If the connection (session) count to the LogEng server becomes 0 and the server is transient +then the timer will be scheduled to run after KLogShutdownDelay microseconds (set to be 2 seconds). +If during that period of time no connetcion to the server is established then the server will be +shut down. + +@see CLogServServer +@internalComponent +*/ +class CLogServShutdownTimer : public CTimer + { +public: + static CLogServShutdownTimer* NewL(TInt aPriority); + void Start(); + +private: + CLogServShutdownTimer(TInt aPriority); + void ConstructL(); + // From CActive + void RunL(); + +private: // Internal constants + enum { KLogShutdownDelay = 2000000 }; + }; + +#endif