resourcemgmt/powerandmemorynotificationservice/src/shutdowntimer.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 // Copyright (c) 2007-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 #if !defined(SHUTDOWNTIMER_H)
       
    17 #define SHUTDOWNTIMER_H
       
    18 
       
    19 #include <e32base.h>
       
    20 
       
    21 class CServShutdownServer;
       
    22 /**
       
    23 This class describes a timer object. 
       
    24 Its RunL() implemantation calls CServShutdownServer::SwitchOff() to execute the switch off 
       
    25 when timeout expires.
       
    26 @internalTechnology
       
    27 */
       
    28 NONSHARABLE_CLASS(CShutdownTimer): public CTimer
       
    29 	{
       
    30 public:
       
    31 	static CShutdownTimer* NewL(CServShutdownServer& aShtdwnSrv);
       
    32 	void DoCancel();
       
    33 	void Start(TInt aNumClients);
       
    34 protected:
       
    35 	virtual void RunL();
       
    36 private:
       
    37 	CShutdownTimer(CServShutdownServer& aShtdwnSrv);
       
    38 private:
       
    39 	CServShutdownServer& iShtdwnSrv;
       
    40 	};
       
    41 #endif//SHUTDOWNTIMER_H