photosgallery/slideshow/engine/effectsrc/shwcrossfadeeffect.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 08:45:44 +0200
changeset 0 4e91876724a2
permissions -rw-r--r--
Revision: 200949 Kit: 200951

/*
* Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:    The crossfade effect
 *
*/




#ifndef __SHWCROSSFADEEFFECT_H__
#define __SHWCROSSFADEEFFECT_H__

// INCLUDES
#include <e32std.h>
#include <e32base.h>
#include <alf/alfvisual.h>
#include <alf/alfenv.h>

#include "shweffect.h"

// FORWARD DECLARATIONS

// CLASS DECLARATION

/**
 * CShwCrossFadeEffect, the crossfade effect.
 * Shows images in full screen in view mode and performs smooth crossfade in transition.
 *
 * @lib shwslideshowengine.lib
 * @internal reviewed 07/06/2007 by Loughlin
 */
NONSHARABLE_CLASS( CShwCrossFadeEffect )
	: public CBase, public MShwEffect
	{
	public:

		/**
		 * Contructor.
		 */
		static CShwCrossFadeEffect* NewLC();

		/**
		 * Destructor.
		 */
		~CShwCrossFadeEffect();

	private:

		/**
		 * C++ contructor.
		 */
		CShwCrossFadeEffect();

	public: // from MShwEffect

		/// @ref MShwEffect::CloneLC
		MShwEffect* CloneLC();
		/// @ref MShwEffect::InitializeL
		void InitializeL( 
    		CAlfEnv* aHuiEnv, MGlxVisualList* aVisualList,
		    MGlxMediaList* aMediaList, TSize aScreenSize );
		/// @ref MShwEffect::PrepareViewL
		TSize PrepareViewL( CAlfVisual* aVisual, TSize aImageSize );
		/// @ref MShwEffect::EnterViewL
		MGlxLayout* EnterViewL( 
			CAlfVisual* aVisual, TInt aDuration, TInt aFadeInDuration );
		/// @ref MShwEffect::ExitView
		void ExitView( CAlfVisual* aVisual );
		/// @ref MShwEffect::EnterTransitionL
		MGlxLayout* EnterTransitionL( CAlfVisual* aVisual, TInt aDuration );
		/// @ref MShwEffect::ExitTransition
		void ExitTransition( CAlfVisual* aVisual );
		/// @ref MShwEffect::PauseL
		void PauseL();
		/// @ref MShwEffect::Resume
		void Resume();
        /// @ref MShwEffect:EffectInfo
        TShwEffectInfo EffectInfo();
        
	private:

		/// Own: the implementation
		class CShwCrossFadeEffectImpl;
		CShwCrossFadeEffectImpl* iImpl;

	};

#endif // __SHWCROSSFADEEFFECT_H__