photosgallery/slideshow/view/inc/shwslideshowview.h
branchRCL_3
changeset 24 ea65f74e6de4
parent 19 420f6808bf21
equal deleted inserted replaced
23:b023a8d2866a 24:ea65f74e6de4
    21 
    21 
    22 // INCLUDES
    22 // INCLUDES
    23 #include <glxviewbase.h>
    23 #include <glxviewbase.h>
    24 #include <mglxmedialistobserver.h>
    24 #include <mglxmedialistobserver.h>
    25 #include <AknProgressDialog.h>
    25 #include <AknProgressDialog.h>
       
    26 #include <AknWsEventObserver.h>
    26 #include <gestureobserver.h>
    27 #include <gestureobserver.h>
    27 #include <gesturehelper.h>
    28 #include <gesturehelper.h>
    28 #include "shwengineobserver.h"
    29 #include "shwengineobserver.h"
    29 #include "shwmusicobserver.h"
    30 #include "shwmusicobserver.h"
    30 #include "shwconstants.h"
    31 #include "shwconstants.h"
    71                                        public MProgressDialogCallback,
    72                                        public MProgressDialogCallback,
    72                                        public MShwTickObserver,
    73                                        public MShwTickObserver,
    73                                        public MShwGestureObserver,
    74                                        public MShwGestureObserver,
    74                                        public MStorageNotifierObserver,
    75                                        public MStorageNotifierObserver,
    75                                        public MGlxTvObserver,
    76                                        public MGlxTvObserver,
    76 									   public MGlxHDMIDecoderObserver
    77 									   public MGlxHDMIDecoderObserver,
       
    78 									   public MAknWsEventObserver
    77     {
    79     {
    78     public:
    80     public:
    79 
    81 
    80         /**
    82         /**
    81          * Two-phased constructor.
    83          * Two-phased constructor.
   136 
   138 
   137         /** 
   139         /** 
   138          * @ref CAknView::HandleForegroundEventL
   140          * @ref CAknView::HandleForegroundEventL
   139          */
   141          */
   140         void HandleForegroundEventL(TBool aForeground);
   142         void HandleForegroundEventL(TBool aForeground);
       
   143 
       
   144     public: // From MAknWsEventObserver
       
   145         void HandleWsEventL(const TWsEvent& aEvent, CCoeControl* aDestination);
   141 
   146 
   142     public: // From CGlxViewBase
   147     public: // From CGlxViewBase
   143     	
   148     	
   144     	/**
   149     	/**
   145     	 * @ref CGlxViewBase::DoViewActivateL
   150     	 * @ref CGlxViewBase::DoViewActivateL
   339 		/**
   344 		/**
   340 		 * Returns the index of the next item 
   345 		 * Returns the index of the next item 
   341 		 * for which HDMI advance decoding will be done
   346 		 * for which HDMI advance decoding will be done
   342 		 */
   347 		 */
   343 		TInt GetNextIndex();
   348 		TInt GetNextIndex();
       
   349 		/**
       
   350          * Returns the application foreground status.
       
   351 		 * Foreground status is found using WindowsGroupID
       
   352 		 */
       
   353 		TBool IsAppInForegroundL();
   344 	public:
   354 	public:
   345 	//to keep in track which of the command set is active/on top
   355 	//to keep in track which of the command set is active/on top
   346 		enum TShwState
   356 		enum TShwState
   347 			{
   357 			{
   348 			EShwPause = 1 ,
   358 			EShwPause = 1 ,
   423 		EFurnitureHidden
   433 		EFurnitureHidden
   424 		};
   434 		};
   425 		
   435 		
   426 	TShwState iShwState;
   436 	TShwState iShwState;
   427 	TShwFurniture iShwFurniture;	
   437 	TShwFurniture iShwFurniture;	
   428 	TInt iCurrentActiveCommandSet;
       
   429 	CShwGestureControl* iShwGestureControl;
   438 	CShwGestureControl* iShwGestureControl;
   430 	GestureHelper::CGestureControl* iGestureControl;
   439 	GestureHelper::CGestureControl* iGestureControl;
   431 	CAlfControlGroup* iGestureControlGroup;
   440 	CAlfControlGroup* iGestureControlGroup;
   432 	CShwTicker* iTicker;
   441 	CShwTicker* iTicker;
   433 	CShwMediaKeyUtility* iMediaKeyHandler;
   442 	CShwMediaKeyUtility* iMediaKeyHandler;
   442 	//and after that we are bringing to foreground
   451 	//and after that we are bringing to foreground
   443 	TBool iPrevNotInBackground;
   452 	TBool iPrevNotInBackground;
   444 
   453 
   445 	TInt iHdmiWidth;
   454 	TInt iHdmiWidth;
   446     TInt iHdmiHeight;
   455     TInt iHdmiHeight;
       
   456     CAknWsEventMonitor* iAknEventMonitor;// not owned
   447     };
   457     };
   448 
   458 
   449 #endif  // C_SHWSLIDESHOWVIEW_H
   459 #endif  // C_SHWSLIDESHOWVIEW_H
   450 
   460 
   451 // End of File
   461 // End of File