idlefw/inc/framework/aifocusobserver.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:  AI2 focus observer.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_AIFOCUSOBSERVER_H
       
    20 #define C_AIFOCUSOBSERVER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <e32property.h>
       
    24 //++HV 
       
    25 #include <akntransitionutils.h>
       
    26 //--HV 
       
    27 #include "aipsstatusobserver.h"
       
    28 
       
    29 class MAiPSPropertyObserver;
       
    30 
       
    31 /**
       
    32  * @ingroup group_aifw
       
    33  * 
       
    34  *  Focus change observer. Using telephony idle visiblity PS.
       
    35  * 
       
    36  *  @lib aifw
       
    37  *  @since S60 3.2
       
    38  */
       
    39  
       
    40 NONSHARABLE_CLASS( CAiFocusObserver ) : public CAiPSStatusObserver
       
    41 										//++HV    
       
    42     									,public MAknTransitionUtilsObserver
       
    43 										//--HV    
       
    44     {
       
    45 public:
       
    46 
       
    47 // Construction
       
    48 
       
    49     static CAiFocusObserver* NewL( MAiStateManager* aStateManager );
       
    50 
       
    51     virtual ~CAiFocusObserver();
       
    52 
       
    53 // functions from base class CAiPSStatusObserver
       
    54 
       
    55     TAiStateChanges Status();
       
    56 
       
    57 private:
       
    58 
       
    59 // Construction
       
    60     
       
    61     CAiFocusObserver();
       
    62     
       
    63     void ConstructL( MAiStateManager* aStateManager );
       
    64     
       
    65 // new functions
       
    66 
       
    67     //++HV
       
    68     
       
    69     static TInt StaticHandleFocusChangeEvent( TAny* aPtr );
       
    70     TInt HandleFocusChangeEvent();
       
    71 
       
    72     
       
    73 	// From MAknTransitionUtilsObserver
       
    74 	TInt AknTransitionCallback(TInt aEvent, TInt aState = 0, const TDesC8* aParams = NULL);
       
    75 		
       
    76         
       
    77 private:
       
    78 	TBool iTfxEffectActive;
       
    79 
       
    80 
       
    81 	//--HV 
       
    82     };
       
    83 
       
    84 #endif // C_AIFOCUSOBSERVER_H
       
    85 
       
    86 // End of File.