idlehomescreen/xmluirendering/uiengine/inc/xnviewadapter.h
branchRCL_3
changeset 23 7be2816dbabd
parent 18 d05a55b217df
equal deleted inserted replaced
19:79311d856354 23:7be2816dbabd
    43  * @lib xn3layoutengine.lib
    43  * @lib xn3layoutengine.lib
    44  * @since S60 5.0
    44  * @since S60 5.0
    45  */
    45  */
    46 NONSHARABLE_CLASS( CXnViewAdapter ) : public CAknView,  
    46 NONSHARABLE_CLASS( CXnViewAdapter ) : public CAknView,  
    47     public MXnUiStateObserver
    47     public MXnUiStateObserver
    48     {
    48     {    
    49 private:
       
    50     // friend classes
       
    51     friend class CXnViewManager;
       
    52     
       
    53 public:
    49 public:
    54     /**
    50     /**
    55      * Two-phase constructor
    51      * Two-phase constructor
    56      */
    52      */
    57     static CXnViewAdapter* NewL( CXnAppUiAdapter& aAdapter );
    53     static CXnViewAdapter* NewL( CXnAppUiAdapter& aAdapter );
   169      * @param aAwake ETrue if controls should exit from powersavemode, 
   165      * @param aAwake ETrue if controls should exit from powersavemode, 
   170      *               EFalse if controls should enter to powersavemode.
   166      *               EFalse if controls should enter to powersavemode.
   171      */
   167      */
   172     void ChangeControlsStateL( TBool aAwake );
   168     void ChangeControlsStateL( TBool aAwake );
   173     
   169     
   174 private:
       
   175     // new functions
       
   176     
       
   177     /**
   170     /**
   178      * Activates new container ro view. 
   171      * Activates new container ro view. 
   179      * Deactivates internally previous container if it exists.
   172      * Deactivates internally previous container if it exists.
   180      * This is always called from DoActivateL or from CXnViewManager.
   173      * This is always called from DoActivateL or from CXnViewManager when 
       
   174      * active view data is changed.
   181      * 
   175      * 
   182      * @since S60 5.0
   176      * @since S60 5.0
   183      * @param aContainer Container to activate
   177      * @param aContainer Container to activate
   184      * @param aEnterEditState ETrue if activated container should be set to edit state.
   178      * @param aEnterEditState ETrue if activated container should be set to edit state.
   185      * @param aForceActivation if ETrue forces deactivation and then activation even if
   179      * @param aEffect Effect uid, default no effect
   186      *        the conntainer remains the same 
       
   187      */
   180      */
   188     void ActivateContainerL( CXnViewData& aContainer, 
   181     void ActivateContainerL( CXnViewData& aContainer, 
   189         TBool aEnterEditState = EFalse, TBool aForceActivation = EFalse );
   182         TBool aEnterEditState = EFalse, TUid aEffect = TUid::Null() );
   190 
   183     
       
   184 private:
       
   185     // new functions
       
   186     
   191     /**
   187     /**
   192      * Deactivates the current container from view.      
   188      * Deactivates the current container from view.      
   193      * 
   189      * 
   194      * @since S60 5.0               
   190      * @since S60 5.0               
       
   191      * @param aHide ETrue if old container is hidden, EFalse otherwise
   195      */    
   192      */    
   196     void DeactivateContainerL();
   193     void DeactivateContainerL( TBool aHide = ETrue );
   197 
   194 
   198     /**
   195     /**
   199      * Activates default container to view. 
   196      * Activates default container to view. 
   200      * Deactivates internally previous container if it exists.
   197      * Deactivates internally previous container if it exists.
   201      * 
   198      * 
   251     const CXnViewData* iContainer;
   248     const CXnViewData* iContainer;
   252     /** Flags */
   249     /** Flags */
   253     TBitFlags32 iFlags;
   250     TBitFlags32 iFlags;
   254     /** Timer to set window group order after default view is activated, owned */
   251     /** Timer to set window group order after default view is activated, owned */
   255     CPeriodic* iTimer;
   252     CPeriodic* iTimer;
       
   253     /** Action to handle in timer callback */
       
   254     TInt iAction;
   256     };
   255     };
   257 
   256 
   258 #endif // XNVIEWADAPTER_H
   257 #endif // XNVIEWADAPTER_H
   259 
   258 
   260 // End of file
   259 // End of file