photosgallery/viewframework/layouts/inc/glxsetcoefficientlayout.h
changeset 0 4e91876724a2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/photosgallery/viewframework/layouts/inc/glxsetcoefficientlayout.h	Thu Dec 17 08:45:44 2009 +0200
@@ -0,0 +1,80 @@
+/*
+* Copyright (c) 2008-2009 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:    Set coefficient layout
+*
+*/
+
+
+
+
+#ifndef T_GLXSETCOEFFICIENTLAYOUT_H
+#define T_GLXSETCOEFFICIENTLAYOUT_H
+
+#include <glxlayout.h>
+#include <alf/alfTimedValue.h>
+
+/**
+ *  TGlxSetCoefficientLayout
+ *  
+ *  Resets the coefficient to a defined value.
+ *  The value can be animated.
+ *
+ *  @lib glxlayouts.lib
+ */
+class TGlxSetCoefficientLayout : public TGlxLayout
+	{
+	public:
+
+		/**
+		 * Constructor.
+		 */
+		IMPORT_C TGlxSetCoefficientLayout();
+
+		/**
+		 * Destructor.
+		 */
+		IMPORT_C ~TGlxSetCoefficientLayout();
+
+		/**
+		 * Set layout type to which the coefficient is set
+		 * @param aType the layout type, see @ref TGlxLayoutInfo::TLayoutType
+		 */
+		IMPORT_C void SetType( TGlxLayoutInfo::TLayoutType aType );
+
+		/**
+		 * SetCoefficient.
+		 * @param aCoefficient the value to set
+		 * @param aMilliseconds the target time for the coefficient value 
+		 */
+		IMPORT_C void SetCoefficient( TReal32 aCoefficient, TInt aMilliseconds );
+		
+	protected:	// From TGlxLayout
+
+		/// @ref TGlxLayout::DoSetLayoutValues
+		void DoSetLayoutValues( TGlxLayoutInfo& aInfo );
+		/// @ref TGlxLayout::DoChanged
+		TBool DoChanged() const;
+		/// @ref TGlxLayout::DoClearChanged
+		void DoClearChanged();
+
+	private:
+
+		/// Own: the type of the layout
+		TGlxLayoutInfo::TLayoutType iType;
+		/// Own: the timed value for the coefficient
+	    TAlfTimedValue iCoefficient;
+
+	};
+	
+#endif // T_GLXSETCOEFFICIENTLAYOUT_H