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

📄 threadlistener.h

📁 symbian的线程和活动对象源码
💻 H
字号:
/*
* ============================================================================
*  Name     : CThreadListener from ThreadListener.h
*  Part of  : ThreadAO
*  Created  : 12.1.2005 by Forum Nokia
*  Description:  
*     ThreadListener checks whether thread1 has been killed or not.
*     If thread1 has been killed, then exit the program. 
*  Version  : 1.0
*  Copyright: Nokia Corporation
* ============================================================================
*/

#ifndef __THREAD_LISTENER_H__
#define __THREAD_LISTENER_H__

//INCLUDES
#include <e32base.h> //CActive
#include <e32std.h>

// CLASS DECLARATION

/**
* 
*  ThreadListener checks whether thread1 has been killed or not.
*  If thread1 has been killed, then exit the main program. 
*/
class CThreadListener: public CActive
	{
public:
	
/*!
 * NewL()
 * 
 * discussion Create new CThreadListener object
 * param aThread Handle A handle to a thread.
 * return a pointer to the created instance of CThreadListener
 */
    static CThreadListener* NewL(RThread& aThread);
    
/*!
 * NewLC()
 *	 
 */
    static CThreadListener* NewLC(RThread& aThread);

/*!
 * ~CThreadListener()
 *
 * Destructor.
 *
 */
	~CThreadListener(void);
        
   // From CActive
   void RunL();
   void DoCancel();
 
private: // Basic two-phase Symbian OS constructors

/*!
 * CThreadListener();
 *
 * Constructor.
 *
 */
	CThreadListener();

/*!
 * ConstructL()
 * param aThread Handle A handle to a thread.
 */
	void ConstructL(RThread& aThread);
	
private:
	RThread iMonitoredThread;
	};

#endif // __THREAD_LISTENER_H__

⌨️ 快捷键说明

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