idlefw/inc/framework/aienvironmentchangeobserver.h
branchRCL_3
changeset 8 d0529222e3f0
parent 4 1a2a00e78665
child 11 bd874ee5e5e2
equal deleted inserted replaced
4:1a2a00e78665 8: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:  Environment observer
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_AIENVIROMENTCHANGEOBSERVER_H
       
    20 #define C_AIENVIROMENTCHANGEOBSERVER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include "aidevicestatusobserver.h"
       
    24 #include "aiuiframeworkobserver.h"
       
    25 
       
    26 class MAiStateManager;
       
    27 class CEnvironmentChangeNotifier;
       
    28 
       
    29 /**
       
    30  * @ingroup group_aifw
       
    31  * 
       
    32  *  System enviroment change observer.
       
    33  * 
       
    34  *  @lib aifw
       
    35  *  @since S60 3.2
       
    36  */
       
    37 NONSHARABLE_CLASS( CAiEnvironmentChangeObserver ) : public CBase,
       
    38                                                    public MAiDeviceStatusObserver
       
    39     {
       
    40 public:
       
    41 
       
    42 // Construction
       
    43 
       
    44     static CAiEnvironmentChangeObserver* NewL( MAiStateManager* aStateManager );
       
    45 
       
    46     virtual ~CAiEnvironmentChangeObserver();
       
    47 
       
    48 // functions from base class CAiEnvironmentChangeObserver
       
    49 
       
    50     TAiStateChanges Status();
       
    51 
       
    52 // new functions
       
    53 
       
    54     static TInt EnvironmentChangeCallBack(TAny* aPtr);
       
    55     
       
    56 private:
       
    57 
       
    58 // Construction
       
    59     
       
    60     CAiEnvironmentChangeObserver();
       
    61     
       
    62     void ConstructL( MAiStateManager* aStateManager );
       
    63 
       
    64 protected: // Data
       
    65 
       
    66     /**
       
    67      * State manager.
       
    68      * Not own.
       
    69      */
       
    70     MAiStateManager*   iStateManager;
       
    71 
       
    72     /**
       
    73      * Enviroment change notifier: time, locale and midnight crossover
       
    74      * Own.
       
    75      */
       
    76     CEnvironmentChangeNotifier*                 iEnvironmentChangeNotifier;
       
    77     };
       
    78 
       
    79 #endif // C_AIENVIROMENTCHANGEOBSERVER_H
       
    80