mguardkeycapture.h.bak,v

来自「symbian s60手机上的短信拦截源代码。」· BAK,V 代码 · 共 142 行

BAK,V
142
字号
head	1.1;branch	1.1.1;access;symbols	v1_0:1.1.1.1	xueyw:1.1.1	v111:1.1.1.1	MGuard:1.1.1;locks; strict;comment	@# @;1.1date	2007.08.22.11.31.31;	author administrator;	state Exp;branches	1.1.1.1;next	;deltatype	text;permissions	644;1.1.1.1date	2007.08.22.11.31.31;	author administrator;	state Exp;branches;next	;deltatype	text;permissions	644;desc@@1.1log@Initial revision@text@/** ============================================================================*  Name     :  MGuardKeyCapture.h*  Part of  :  MGuard*  Created  :  July 21 2007 by xueyw*  Description:*  Copyright: * ============================================================================*/#ifndef __MGUARDKEYCAPTURE_H__#define __MGUARDKEYCAPTURE_H__//  Include Files#include <e32base.h>#include <w32std.h>  // RWsSession// Forward declarationsclass RWindowGroup;class CApaWindowGroupName;class CGuardKeyCapturer : public CActive {public:	// New functions	/** 	* Registers itself for the key press events	* @@leave Symbian standard leave codes	*/	void StartCapturingL();	void StopCapturingL();	void ResumeCapturingL();	~CGuardKeyCapturer();	CGuardKeyCapturer();public:	// From CActive	/**	* Is called by active scheduler when key press happens	*/	void RunL();	public:	TBool	IsCatpureStarted()	{		return iCaptureStarted;	}			TBool	IsCatpurePending()	{		return iCapturePending;	}		enum	{		EMaxKeyCount = 160	};protected:	/**	* Is called when event listening should be stopped	*/	virtual void DoCancel();	private:	// Data	// Session to the window server	RWsSession 				iWsSession;	// Window group created to listed to the events	RWindowGroup* 			iWindowGroup;	// Is used to hide window from the task switcher	CApaWindowGroupName* 	iWindowGroupName;	// Handle to the capturing request	TInt32 					iCaptureHandle[EMaxKeyCount];	TInt					iCaptureHandleCount;	// Handle to the second capturing request	TInt32 					iLongCaptureHandle;	// Number of keypresses already captured	TInt 					iCaptureCounter;	TBool					iCaptureStarted;	TBool					D:\VCMauiTests\VC71 DotNET Windows Forms Application Project\VC71 DotNET Windows Forms Application Project.vcproj;};#endif  // __MGUARDKEYCAPTURE_H__// End of file@1.1.1.1log@no message@text@@

⌨️ 快捷键说明

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