epoc32/include/animationevents.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
--- a/epoc32/include/animationevents.h	Tue Nov 24 13:55:44 2009 +0000
+++ b/epoc32/include/animationevents.h	Tue Mar 16 16:12:26 2010 +0000
@@ -1,1 +1,56 @@
-animationevents.h
+// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
+// which accompanies this distribution, and is available
+// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+//
+
+#ifndef __ANIMATIONEVENTS_H__
+#define __ANIMATIONEVENTS_H__
+
+/** Generic events which all animation data providers can pass to animators.
+
+An implementation of CAnimation may intercept these and perform additional
+processing if necessary.  
+
+Events specific to a particular data type should take values greater than
+EAnimationReservedEvents.  Implementations of CAnimation should not intercept
+or attempt to act on data type specific events.
+@publishedAll
+@released */
+enum TAnimationEvent
+	{
+	/** Sent when the data itself has changed and the animator needs to be
+	ready to	receive the new values */
+	EAnimationDataChanged,
+	/** Sent when an error occurs within the data provider and it is unable
+	to complete the sending of the animation data */
+	EAnimationDataProviderError,
+	/** Specifies an upper limit for generic events.  Events larger than this
+	are free to use for data type specific information */
+	EAnimationReservedEvents = 0xFF
+	};
+
+/** Events specific to the "bitmap" data type.  These events are only sent
+by data providers dealing with bitmap frame animations, and are only understood
+by bitmap animators.
+@publishedAll
+@released */
+enum TBitmapAnimationEvent
+	{
+	/** This event contains data specifying the bitmaps for a new frame of
+	animation */
+	EBitmapAnimationNewFrame = EAnimationReservedEvents + 1,
+	/** This event indicates that there are no more frames to send */
+	EBitmapAnimationComplete,
+	};
+
+#endif //__ANIMATIONEVENTS_H__