examples/ForumNokia/ThreadExample/inc/threadanimation.h

00001 /*
00002 * ============================================================================
00003 *  Name     : CThreadAnimation from CThreadAnimation.h
00004 *  Part of  : Thread
00005 *  Created  : 04.02.2005 by Forum Nokia
00006 *  Description:
00007 *     Animation class that is used to animate thread state. While animation is
00008 *     running a spiral is circulating. When thread is not alive then no animation
00009 *     is showed.
00010 *  Version  : 1.0
00011 *  Copyright: Nokia Corporation
00012 * ============================================================================
00013 */
00014 
00015 #ifndef THREADANIMATION_H
00016 #define THREADANIMATION_H
00017 
00018 // INCLUDES
00019 #include <coecntrl.h>
00020 #include "e32base.h" 
00021 
00022 // FORWARD DECLARATIONS
00023 class CAknBitmapAnimation;
00024 
00025 // CLASS DECLARATION
00026 
00031 class CThreadAnimation
00032         {
00033 public:
00034 
00043         static CThreadAnimation* NewL(TResourceReader& aReader, RWindow& aWindow);
00048         static CThreadAnimation* NewLC(TResourceReader& aReader, RWindow& aWindow);
00049 
00050 
00057         ~CThreadAnimation(void);
00058 
00065         void StartAnimationL();
00066 
00073         void StopAnimation();
00074 
00075 private: // Basic two-phase EPOC constructors
00076 
00083         CThreadAnimation(void);
00084 
00091         void ConstructL(TResourceReader& aReader, RWindow& aWindow);
00092 
00093 private: // data members 
00094         // Bitmap animation .
00095         CAknBitmapAnimation* iAnimation;
00096 
00098         TBool iRunning;
00099         };
00100 
00101 #endif

Generated by  doxygen 1.6.2