photosgallery/slideshow/engine/effectsrc/shwcrossfadeeffect.h
author William Roberts <williamr@symbian.org>
Tue, 06 Apr 2010 17:25:48 +0100
branchCompilerCompatibility
changeset 16 0bc0ea26031e
parent 0 4e91876724a2
permissions -rw-r--r--
Fix pointer-to-member function syntax for RVCT4 and GCCE (Bug 1732 and Bug 1728)

/*
* 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__