photosgallery/slideshow/engine/effectsrc/shwzoomandpaneffect.h
changeset 0 4e91876724a2
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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:    The zoom and pan effect
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __SHWZOOMANDPANEFFECT_H__
       
    22 #define __SHWZOOMANDPANEFFECT_H__
       
    23 
       
    24 // INCLUDES
       
    25 #include <e32std.h>
       
    26 #include <e32base.h>
       
    27 #include <alf/alfvisual.h>
       
    28 #include <alf/alfenv.h>
       
    29 
       
    30 #include "shweffect.h"
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35  * CShwZoomAndPanEffect, the Zoom And Pan effect.
       
    36  * Zooms and pans in the image in full screen in view mode and performs smooth transition.
       
    37  * 
       
    38  * @lib shwslideshowengine.lib
       
    39  * @internal reviewed 07/06/2007 by Loughlin
       
    40  * @internal reviewed 06/06/2007 by Dan Rhodes
       
    41  */
       
    42 NONSHARABLE_CLASS( CShwZoomAndPanEffect ) : public CBase, public MShwEffect
       
    43 	{
       
    44 	public:
       
    45 
       
    46 		/**
       
    47 		 * Contructor.
       
    48 		 */
       
    49 		static CShwZoomAndPanEffect* NewLC();
       
    50 		/**
       
    51 		 * Destructor.
       
    52 		 */
       
    53 		~CShwZoomAndPanEffect();
       
    54 
       
    55 	private:
       
    56 
       
    57 		/**
       
    58 		 * C++ contructor.
       
    59 		 */
       
    60 		CShwZoomAndPanEffect();
       
    61 
       
    62 	public: // from MShwEffect
       
    63 
       
    64 		/// @ref MShwEffect::CloneLC
       
    65 		MShwEffect* CloneLC();
       
    66 		/// @ref MShwEffect::InitializeL
       
    67 		void InitializeL( 
       
    68     		CAlfEnv* aAlfEnv, MGlxVisualList* aVisualList,
       
    69 		    MGlxMediaList* aMediaList, TSize aScreenSize );
       
    70 		/// @ref MShwEffect::PrepareViewL
       
    71 		TSize PrepareViewL( CAlfVisual* aVisual, TSize aImageSize );
       
    72 		/// @ref MShwEffect::EnterViewL
       
    73 		MGlxLayout* EnterViewL( 
       
    74 			CAlfVisual* aVisual, TInt aDuration, TInt aFadeInDuration );
       
    75 		/// @ref MShwEffect::ExitView
       
    76 		void ExitView( CAlfVisual* aVisual );
       
    77 		/// @ref MShwEffect::EnterTransitionL
       
    78 		MGlxLayout* EnterTransitionL( CAlfVisual* aVisual, TInt aDuration );
       
    79 		/// @ref MShwEffect::ExitTransition
       
    80 		void ExitTransition( CAlfVisual* aVisual );
       
    81 		/// @ref MShwEffect::PauseL
       
    82 		void PauseL();
       
    83 		/// @ref MShwEffect::Resume
       
    84 		void Resume();
       
    85         /// @ref MShwEffect:EffectInfo
       
    86         TShwEffectInfo EffectInfo();
       
    87 
       
    88 	private: // Data
       
    89 
       
    90 		/// Own: the implementation class
       
    91 		class CShwZoomAndPanEffectImpl;
       
    92 		CShwZoomAndPanEffectImpl* iImpl;
       
    93 
       
    94 	};
       
    95 
       
    96 #endif // __SHWZOOMANDPANEFFECT_H__