photosgallery/slideshow/view/inc/shwslideshowview.h
branchRCL_3
changeset 12 ce1c7ad1f18b
parent 11 71da52165949
child 13 bcb43dc84c44
equal deleted inserted replaced
11:71da52165949 12:ce1c7ad1f18b
    14 * Description:    Slideshow view implementation
    14 * Description:    Slideshow view implementation
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 
       
    20 
       
    21 
       
    22 #ifndef C_SHWSLIDESHOWVIEW_H
    19 #ifndef C_SHWSLIDESHOWVIEW_H
    23 #define C_SHWSLIDESHOWVIEW_H
    20 #define C_SHWSLIDESHOWVIEW_H
    24 
    21 
    25 // INCLUDES
    22 // INCLUDES
    26 #include <glxviewbase.h>
    23 #include <glxviewbase.h>
    27 #include <mglxmedialistobserver.h>
    24 #include <mglxmedialistobserver.h>
    28 #include <AknProgressDialog.h>
    25 #include <AknProgressDialog.h>
    29 #include <gestureobserver.h>
    26 #include <gestureobserver.h>
    30 #include <gesturehelper.h>
    27 #include <gesturehelper.h>
       
    28 #include <harvesterclient.h>
    31 #include "shwengineobserver.h"
    29 #include "shwengineobserver.h"
    32 #include "shwmusicobserver.h"
    30 #include "shwmusicobserver.h"
    33 #include "shwconstants.h"
    31 #include "shwconstants.h"
    34 #include "shwtickobserver.h"
    32 #include "shwtickobserver.h"
    35 #include "shwgestureobserver.h"
    33 #include "shwgestureobserver.h"
    51 class CShwSlideShowPauseHandler;
    49 class CShwSlideShowPauseHandler;
    52 class CShwSlideShowKeyHandler;
    50 class CShwSlideShowKeyHandler;
    53 class CShwTelephoneHandler;
    51 class CShwTelephoneHandler;
    54 class CMPXCollectionPath;
    52 class CMPXCollectionPath;
    55 class CEikButtonGroupContainer;
    53 class CEikButtonGroupContainer;
    56 // CLASS DECLARATION
       
    57 class CShwGestureControl;
    54 class CShwGestureControl;
    58 class CShwTicker;
    55 class CShwTicker;
    59 class CShwMediaKeyUtility;
    56 class CShwMediaKeyUtility;
    60 class CGestureControl;
    57 class CGestureControl;
    61 //class CHgContextUtility;
       
    62 class CGlxHdmiController;
    58 class CGlxHdmiController;
    63 /**
    59 /**
    64  *  Slideshow view.
    60  *  Slideshow view.
    65  *
    61  *
    66  * @internal reviewed 07/06/2007 by Kimmo Hoikka  
    62  * @internal reviewed 07/06/2007 by Kimmo Hoikka  
    69                                        public MGlxMediaListObserver,
    65                                        public MGlxMediaListObserver,
    70                                        public MShwEngineObserver,
    66                                        public MShwEngineObserver,
    71                                        public MShwMusicObserver,
    67                                        public MShwMusicObserver,
    72                                        public MProgressDialogCallback,
    68                                        public MProgressDialogCallback,
    73                                        public MShwTickObserver,
    69                                        public MShwTickObserver,
    74                                        public MShwGestureObserver
    70                                        public MShwGestureObserver,
       
    71 									   public MHarvesterEventObserver
    75     {
    72     {
    76     public:
    73     public:
    77 
    74 
    78         /**
    75         /**
    79          * Two-phased constructor.
    76          * Two-phased constructor.
   146             TUid aCustomMessageId, const TDesC8& aCustomMessage );
   143             TUid aCustomMessageId, const TDesC8& aCustomMessage );
   147     	/**
   144     	/**
   148     	 * @ref CGlxViewBase::DoViewDeactivate
   145     	 * @ref CGlxViewBase::DoViewDeactivate
   149     	 */	
   146     	 */	
   150         void DoViewDeactivate();
   147         void DoViewDeactivate();
   151    
   148    public:
       
   149     // from MHarvesterEventObserver
       
   150     void HarvestingUpdated( 
       
   151                 HarvesterEventObserverType aHEObserverType, 
       
   152                 HarvesterEventState aHarvesterEventState,
       
   153                 TInt aItemsLeft );
       
   154 
   152     private: // from MGlxMediaListObserver
   155     private: // from MGlxMediaListObserver
   153 
   156 
   154     	/// @ref MGlxMediaListObserver::HandleItemAddedL
   157     	/// @ref MGlxMediaListObserver::HandleItemAddedL
   155         void HandleItemAddedL( TInt aStartIndex,
   158         void HandleItemAddedL( TInt aStartIndex,
   156         					   TInt aEndIndex,
   159         					   TInt aEndIndex,
   262         void SetListFocusL();
   265         void SetListFocusL();
   263     	
   266     	
   264     	/**
   267     	/**
   265     	 * @ref MShwTickObserver::HandleTickL
   268     	 * @ref MShwTickObserver::HandleTickL
   266     	 */
   269     	 */
   267     	 
       
   268         void HandleTickL();
   270         void HandleTickL();
   269     	/**
   271 
       
   272         /**
   270     	 * @ref MShwTickObserver::HandleTickCancelled
   273     	 * @ref MShwTickObserver::HandleTickCancelled
   271     	 */
   274     	 */
   272         void HandleTickCancelled();
   275         void HandleTickCancelled();
   273     	
   276     	
   274     	/**
   277     	/**
   278 		
   281 		
   279 		/**
   282 		/**
   280 		 * Initializes the screen furniture for the slide show view
   283 		 * Initializes the screen furniture for the slide show view
   281 		 */
   284 		 */
   282         void InitializeShwFurnitureL();
   285         void InitializeShwFurnitureL();
   283     	/**
   286 
       
   287         /**
   284     	 * Initializes the soft keys
   288     	 * Initializes the soft keys
   285     	 */
   289     	 */
   286 		void InitializeCbaL();
   290 		void InitializeCbaL();
   287     	/**
   291 
       
   292 		/**
   288     	 * Hides the screen furniture
   293     	 * Hides the screen furniture
   289     	 */
   294     	 */
   290 		void HideShwFurniture();
   295 		void HideShwFurniture();
   291     	/**
   296 
       
   297 		/**
   292     	 * Makes the screen furniture visible
   298     	 * Makes the screen furniture visible
   293     	 */
   299     	 */
   294 		void ShowShwFurnitureL();
   300 		void ShowShwFurnitureL();
   295     	/**
   301 
       
   302 		/**
   296     	 * Replaces an existing command set with a new one
   303     	 * Replaces an existing command set with a new one
   297     	 *@
   304     	 *@
   298     	 */
   305     	 */
   299 		void ReplaceCommandSetL(TInt aNewComandId, TInt aOldCommandSet );
   306 		void ReplaceCommandSetL(TInt aNewComandId, TInt aOldCommandSet );
       
   307 
   300 		/**
   308 		/**
   301          * returns the index of item for which texture can be removed for cleanup
   309          * returns the index of item for which texture can be removed for cleanup
   302          * The index will be out the iterator offsets w.r.t focssed index.
   310          * The index will be out the iterator offsets w.r.t focssed index.
   303          */
   311          */
   304 		void SetImageL();
       
   305         TInt GetIndexToBeRemoved();
   312         TInt GetIndexToBeRemoved();
       
   313 
   306         /**
   314         /**
   307          * Remove the fullscreen texture.
   315          * Remove the fullscreen texture.
   308          */
   316          */
   309         void RemoveTexture();
   317         void RemoveTexture();
       
   318         
       
   319         /**
       
   320          * Set the current Item to HDMI.
       
   321          */
       
   322         void SetItemToHDMIL();
       
   323 
   310 	public:
   324 	public:
   311 	//to keep in track which of the command set is active/on top
   325 	//to keep in track which of the command set is active/on top
   312 		enum TShwState
   326 		enum TShwState
   313 			{
   327 			{
   314 			EShwPause = 1 ,
   328 			EShwPause = 1 ,
   329 
   343 
   330         /** Slideshow Engine */
   344         /** Slideshow Engine */
   331         CShwSlideshowEngine* iEngine; // owned
   345         CShwSlideshowEngine* iEngine; // owned
   332        
   346        
   333         CAlfControlGroup* iVolumeControlGroup; // owned
   347         CAlfControlGroup* iVolumeControlGroup; // owned
   334 
       
   335        // CGlxUiUtility* iUiUtility; // owned
       
   336 
   348 
   337         CAknWaitDialog*	iWaitDialog; // owned
   349         CAknWaitDialog*	iWaitDialog; // owned
   338 
   350 
   339         /// Own: Pause handler
   351         /// Own: Pause handler
   340         CShwSlideShowPauseHandler* iPauseHandler;
   352         CShwSlideShowPauseHandler* iPauseHandler;
   394 	CShwGestureControl* iShwGestureControl;
   406 	CShwGestureControl* iShwGestureControl;
   395 	GestureHelper::CGestureControl* iGestureControl;
   407 	GestureHelper::CGestureControl* iGestureControl;
   396 	CAlfControlGroup* iGestureControlGroup;
   408 	CAlfControlGroup* iGestureControlGroup;
   397 	CShwTicker* iTicker;
   409 	CShwTicker* iTicker;
   398 	CShwMediaKeyUtility* iMediaKeyHandler;
   410 	CShwMediaKeyUtility* iMediaKeyHandler;
   399 //    CHgContextUtility* iContextUtility;
       
   400 	CGlxHdmiController* iHdmiController;
   411 	CGlxHdmiController* iHdmiController;
   401 	TBool iHdmiActive;
   412 	TBool iHdmiActive;
       
   413 	RHarvesterClient iHarvesterClient;
   402     };
   414     };
   403 
   415 
   404 #endif  // C_SHWSLIDESHOWVIEW_H
   416 #endif  // C_SHWSLIDESHOWVIEW_H
   405 
   417 
   406 // End of File
   418 // End of File