--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/photosgallery/slideshow/engine/effectsrc/shwcrossfadeeffect.h Thu Dec 17 08:45:44 2009 +0200
@@ -0,0 +1,99 @@
+/*
+* 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__