⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 threadanimation.h

📁 这是Symbian平台实现多线程的实例.对初学者非常有帮助.
💻 H
字号:
/*
* ============================================================================
*  Name     : CThreadAnimation from CThreadAnimation.h
*  Part of  : Thread
*  Created  : 04.02.2005 by Forum Nokia
*  Description:
*     Animation class that is used to animate thread state. While animation is
*     running a spiral is circulating. When thread is not alive then no animation
*     is showed.
*  Version  : 1.0
*  Copyright: Nokia Corporation
* ============================================================================
*/

#ifndef THREADANIMATION_H
#define THREADANIMATION_H

// INCLUDES
#include <coecntrl.h>
#include "e32base.h" 

// FORWARD DECLARATIONS
class CAknBitmapAnimation;

// CLASS DECLARATION

/**
*  CThreadAnimation Animates a thread.
*  
*/
class CThreadAnimation
	{
public:

/*!
 * NewL()
 * 
 * discussion Create new CThreadAnimation object
 * return a pointer to the created instance of CThreadAnimation
 * param aReader the resourcereader that contains one BMPANIM_DATA.
 * param aWindow Container window of this animation.
 */
	static CThreadAnimation* NewL(TResourceReader& aReader, RWindow& aWindow);
/*!
 * NewLC()
 *	 
 */
	static CThreadAnimation* NewLC(TResourceReader& aReader, RWindow& aWindow);


/*!
 * ~CThreadAnimation()
 *
 * Destructor.
 *
 */
	~CThreadAnimation(void);

/*!
 * StartAnimationL()
 *
 * discussion Starts thread animation. 
 *	 
 */
	void StartAnimationL();

/*!
 * StopAnimation()
 *
 * discussion Stops thread animation. Animation disappears from the screen.
 *	 
 */
	void StopAnimation();

private: // Basic two-phase EPOC constructors

/*!
 * CThreadAnimation()
 *
 * Default contructor.
 *
 */
	CThreadAnimation(void);

/*!
 * ConstructL()
 *
 * param aReader the resourcereader that contains one BMPANIM_DATA.
 * param aWindow Container window of this animation.
 */
	void ConstructL(TResourceReader& aReader, RWindow& aWindow);

private: // data members 
	// Bitmap animation .
	CAknBitmapAnimation* iAnimation;

	/// True if animation is running, false otherwise.
	TBool iRunning;
	};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -