photosgallery/viewframework/views/fullscreenview/inc/glxfullscreenviewimp.h
branchRCL_3
changeset 17 a60acebbbd9d
parent 15 191387a8b767
child 18 78ad99c24f08
equal deleted inserted replaced
15:191387a8b767 17:a60acebbbd9d
    20 
    20 
    21 #include <alf/ialfwidgeteventhandler.h>
    21 #include <alf/ialfwidgeteventhandler.h>
    22 #include <mglxuicommandhandler.h>
    22 #include <mglxuicommandhandler.h>
    23 #include <gesturehelper.h>
    23 #include <gesturehelper.h>
    24 #include <gestureobserver.h>
    24 #include <gestureobserver.h>
    25 
    25 #include <alf/alfcompositionutility.h>
    26 #include "glxfullscreenview.h"
    26 #include "glxfullscreenview.h"
    27 #include "glxfullscreenbindingsetfactory.h"
    27 #include "glxfullscreenbindingsetfactory.h"
    28 #include "glxfullscreenview.hrh"
    28 #include "glxfullscreenview.hrh"
    29 #include "glxmmcnotifier.h"
    29 #include "glxmmcnotifier.h"
    30 
    30 
    46 class CGlxDRMUtility;
    46 class CGlxDRMUtility;
    47 class CGlxHdmiController;
    47 class CGlxHdmiController;
    48 class CGestureHelper;
    48 class CGestureHelper;
    49 class TGlxMedia;
    49 class TGlxMedia;
    50 class CGlxFullScreenBusyIcon;
    50 class CGlxFullScreenBusyIcon;
    51 //class CHgContextUtility;
       
    52 
    51 
    53 namespace Alf
    52 namespace Alf
    54 	{
    53 	{
    55    class IMulCoverFlowWidget;
    54    class IMulCoverFlowWidget;
    56    class IMulModel;
    55    class IMulModel;
    57    class IMulSliderWidget;
    56    class IMulSliderWidget;
    58    class IMulSliderModel;
    57    class IMulSliderModel;
    59 	}
    58 	}
    60 /*
    59 /*
    61  Defines the state of the Ui in fullscreen
       
    62  */	
       
    63 namespace NGlxNFullScreenUIState
       
    64     {
       
    65     enum TUiState
       
    66         {
       
    67          EUiOn,EUiOff
       
    68         };
       
    69     }
       
    70 /*
       
    71  Defines the swipe direction
    60  Defines the swipe direction
    72  */ 
    61  */ 
    73 enum TSwipe
    62 enum TSwipe
    74     {
    63     {
    75         EForward,EBackward
    64         EForward,EBackward
    76     };
    65     };
    77     
    66     
    78 NONSHARABLE_CLASS (CGlxFullScreenViewImp): public CGlxFullScreenView, 
    67 NONSHARABLE_CLASS (CGlxFullScreenViewImp): public CGlxFullScreenView, 
    79                                             public IAlfWidgetEventHandler,
    68                                             public IAlfWidgetEventHandler,
    80  											public MGlxUiCommandHandler,
    69  											public MGlxUiCommandHandler,
    81 			                                public MStorageNotifierObserver
    70 			                                public MStorageNotifierObserver,
       
    71 			                                public CAlfEffectObserver::MAlfEffectObserver
    82     {
    72     {
    83 public:    
    73 public:    
    84     /**
    74     /**
    85     * Two-phased constructor.`
    75     * Two-phased constructor.`
    86     *
    76     *
   142     IAlfInterfaceBase* makeInterface( const IfId& aType );
   132     IAlfInterfaceBase* makeInterface( const IfId& aType );
   143     
   133     
   144     AlfEventHandlerType eventHandlerType() ;
   134     AlfEventHandlerType eventHandlerType() ;
   145 
   135 
   146     AlfEventHandlerExecutionPhase eventExecutionPhase() ;
   136     AlfEventHandlerExecutionPhase eventExecutionPhase() ;
   147 
   137 	
   148 
   138 	//From MAlfEffectObserver
       
   139     void HandleEffectCallback(TInt aType, TInt aHandle, TInt aStatus);
   149 private:
   140 private:
   150     /*
   141     /*
   151      * Constructor 
   142      * Constructor 
   152      */
   143      */
   153     CGlxFullScreenViewImp(const TFullScreenViewResourceIds& aResourceIds,TInt aViewUID);
   144     CGlxFullScreenViewImp(const TFullScreenViewResourceIds& aResourceIds,TInt aViewUID);
   201     */
   192     */
   202     void ShowUiL(TBool aStartTimer);
   193     void ShowUiL(TBool aStartTimer);
   203     
   194     
   204     /*
   195     /*
   205     * Hide the UI off
   196     * Hide the UI off
   206     * @param asliderstatus:When we start zooming using the slider widget,for continous zooming from the 
   197     * @param aHideSlider:When we start zooming using the slider widget,for continous zooming from the 
   207     * fullscreen view to zoom control, we need to have the slider visible so in this case we shouldnt 
   198     * fullscreen view to zoom control, we need to have the slider visible so in this case we shouldnt 
   208     * be hiding the slider so pass EFalse,else case asliderstatus = ETrue
   199     * be hiding the slider so pass EFalse,else case asliderstatus = ETrue
   209     */     
   200     */     
   210     void HideUi(TBool aSliderStatus);
   201     void HideUi(TBool aHideSlider);
   211     
   202     
   212     /*
   203     /*
   213     * Sets the UI state
   204     * Sets the UI state
   214     */     
   205     */     
   215     void SetUiSate (NGlxNFullScreenUIState::TUiState  aState);
   206     void SetUiState (TUiState  aState);
   216     
   207     
   217     /*
   208     /*
   218     * returns the Ui state
   209     * returns the Ui state
   219     */     
   210     */     
   220     NGlxNFullScreenUIState::TUiState GetUiSate();
   211     TUiState GetUiState();
   221     
   212     
   222     /*
   213     /*
   223     * Call back function for the CPeriodic
   214     * Call back function for the CPeriodic
   224     */
   215     */
   225     static TInt TimeOut(TAny* aSelf);
   216     static TInt TimeOut(TAny* aSelf);
   280     void NavigateToMainListL();
   271     void NavigateToMainListL();
   281 	
   272 	
   282     /**
   273     /**
   283      * Disable/enable the fullscreen toolbar
   274      * Disable/enable the fullscreen toolbar
   284      */
   275      */
   285     void EnableFSToolbarL(TBool aEnable);
   276     void EnableFSToolbar(TBool aEnable);
   286 
   277 
   287 private:
   278 private:
   288     /** Softkey resource id's */
   279     /** Softkey resource id's */
   289     TFullScreenViewResourceIds iResourceIds; 
   280     TFullScreenViewResourceIds iResourceIds; 
   290     // /** Avkon unique ViewId */ 
   281     // /** Avkon unique ViewId */ 
   311 
   302 
   312     //creating zoomcontrol
   303     //creating zoomcontrol
   313     CGlxZoomControl* iZoomControl;
   304     CGlxZoomControl* iZoomControl;
   314     
   305     
   315     // Holds the state of the Ui in Fullscreen
   306     // Holds the state of the Ui in Fullscreen
   316     NGlxNFullScreenUIState::TUiState iUiState;
   307     TUiState iUiState;
   317 
   308 
   318     // used to turn the Ui off,if the screen is inactive for 10 sec
   309     // used to turn the Ui off,if the screen is inactive for 10 sec
   319     CPeriodic* iTimer;
   310     CPeriodic* iTimer;
   320     CEikButtonGroupContainer* iZoomButtonGroup;
   311     CEikButtonGroupContainer* iZoomButtonGroup;
   321 	CGlxCommandHandlerAiwShowMapHardKey* iShowOnMapHardKeyhandler;
   312 	CGlxCommandHandlerAiwShowMapHardKey* iShowOnMapHardKeyhandler;
   339 	TBool iMMCState;
   330 	TBool iMMCState;
   340 	TSize iScrnSize;   // ScrnSize
   331 	TSize iScrnSize;   // ScrnSize
   341 	TSize iGridIconSize; // grid icon size
   332 	TSize iGridIconSize; // grid icon size
   342     TBool iIsDialogLaunched;
   333     TBool iIsDialogLaunched;
   343     TBool iIsMMCRemoved;
   334     TBool iIsMMCRemoved;
       
   335 	CAlfEffectObserver* iAlfEffectObs;
       
   336 	TInt iEffectHandle;
   344     };
   337     };
   345 
   338 
   346 #endif
   339 #endif
   347 
   340