photosgallery/viewframework/uiutilities/inc/mglxanimation.h
changeset 0 4e91876724a2
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     1 /*
       
     2 * Copyright (c) 2008-2009 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:    General animation interface
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 /**
       
    22  * @internal reviewed 12/07/2007 by Michael Yip
       
    23  */
       
    24 
       
    25 #ifndef M_GLXANIMATION_H
       
    26 #define M_GLXANIMATION_H
       
    27 
       
    28 
       
    29 class MGlxAnimationObserver;
       
    30 
       
    31 /// Constant to slow down all animations for testing purposes
       
    32 const TInt KGlxAnimationSlowDownFactor = 1;
       
    33 
       
    34 /**
       
    35  * General-purpose animation class
       
    36  */
       
    37 class MGlxAnimation
       
    38 	{
       
    39 public:
       
    40     /**
       
    41      * Start the animation
       
    42      * @param aTimer Timer to use for the animation. Timed value ranges from 
       
    43      *               0 (animation start) to 1 (animation complete)
       
    44      * @param aObserver Optional observer to get a callback when the animation 
       
    45      *                  completes
       
    46      */
       
    47 	virtual void AnimateL(TInt aTimer, 
       
    48 	    MGlxAnimationObserver* aObserver = NULL) = 0;
       
    49 	
       
    50 	/**
       
    51 	 * Destructor
       
    52 	 */
       
    53 	virtual ~MGlxAnimation() {};
       
    54 	};
       
    55 
       
    56 
       
    57 #endif //  M_GLXANIMATION_H