idlefw/inc/framework/aiuiframeworkobserverimpl.h
branchRCL_3
changeset 9 d0529222e3f0
parent 4 1a2a00e78665
child 10 5ef93ea513cb
child 18 bd874ee5e5e2
equal deleted inserted replaced
4:1a2a00e78665 9:d0529222e3f0
     1 /*
       
     2 * Copyright (c) 2005-2006 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:  UI Framework observer for Active Idle
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_AIUIFRAMEWORKOBSERVERIMPL_H
       
    20 #define C_AIUIFRAMEWORKOBSERVERIMPL_H
       
    21 
       
    22 
       
    23 #include <e32base.h>
       
    24 #include "aistatemanager.h"
       
    25 #include "aiuiframeworkobserver.h"
       
    26 #include "aidevicestatusobserver.h"
       
    27 
       
    28 /**
       
    29  * CAiUiFrameworkObserverImpl implements MAiUiFrameworkObserver for
       
    30  * Active Idle framework. It is also a bridge between MAiUiFrameworkObserver
       
    31  * and Active Idle system state manager.
       
    32  *
       
    33  *  @lib aifw.lib
       
    34  *  @since S60 3.2
       
    35  */
       
    36 NONSHARABLE_CLASS( CAiUiFrameworkObserverImpl )
       
    37     : public CBase,
       
    38       public MAiUiFrameworkObserver,
       
    39       public MAiDeviceStatusObserver
       
    40     {
       
    41 public:
       
    42 
       
    43     static CAiUiFrameworkObserverImpl* NewL( MAiStateManager& aManager );
       
    44 
       
    45     virtual ~CAiUiFrameworkObserverImpl();
       
    46 
       
    47 // from base class MAiDeviceStatusObserver
       
    48 
       
    49     TAiStateChanges Status();
       
    50 
       
    51 private:
       
    52 
       
    53     CAiUiFrameworkObserverImpl( MAiStateManager& aManager );
       
    54 
       
    55     void ConstructL();
       
    56 
       
    57 // from base class MAiUiFrameworkObserver
       
    58     
       
    59     void HandleResourceChange( TInt aType );
       
    60 
       
    61     void HandleForegroundEvent( TBool aForeground );
       
    62     
       
    63 private: // data
       
    64 
       
    65     /**
       
    66      * State manager.
       
    67      */
       
    68     MAiStateManager& iManager;
       
    69 
       
    70     };
       
    71 
       
    72 #endif // C_AIUIFRAMEWORKOBSERVERIMPL_H