uifw/EikStd/srvuiinc/EikLafShutStarter.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __EIKLAFSHUTSTARTER_H__
       
    19 #define __EIKLAFSHUTSTARTER_H__
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <uiklaf/private/lafshut.h> // okay to include this in a private header
       
    23 
       
    24 class CEikLafShutStarter : public CBase, public MShutdownEventObserver
       
    25     {
       
    26 public:
       
    27     static CEikLafShutStarter* NewL(TBool aIsOOMF = EFalse);
       
    28     ~CEikLafShutStarter();
       
    29 
       
    30 private:
       
    31     CEikLafShutStarter();
       
    32     void ConstructL(TBool aIsOOMF);
       
    33 
       
    34 private: // from MShutdownEventObserver
       
    35     void HandleShutdownEventL(
       
    36         MSaveObserver::TSaveType aAction, 
       
    37         TBool aPowerOff, 
       
    38         TPowerState aEvent = EPwStandby);
       
    39         
       
    40     CArrayFix<TThreadId>* ClientArrayLC();
       
    41     TBool IsClientHung(TThreadId aId) const;
       
    42     void GetShutdownState(TBool& aPowerOff, TBool& aAllSessionsHavePendingRequest) const;
       
    43     
       
    44 private:
       
    45     CLafShutdownManagerBase* iLafShutdown;
       
    46     };
       
    47 
       
    48 #endif // __EIKLAFSHUTSTARTER_H__
       
    49 
       
    50 // End of File