multitapengine.h

来自「Symbian平台 数字键盘手机输入法源码」· C头文件 代码 · 共 48 行

H
48
字号
#ifndef FEPMULTITAPENGINE_H
#define FEPMULTITAPENGINE_H

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

// Forward declarations
class CExampleFepMultiTapTimer;
class CeQTapControl;


class CExampleFepMultiTapEngine : public CBase
{
	public:
		CExampleFepMultiTapEngine(CeQTapControl& aControl);
		~CExampleFepMultiTapEngine();
		  // Static construction
		static CExampleFepMultiTapEngine* NewL (CeQTapControl& aControl);

		  // Second phase construction
		void ConstructL();

		TPtrC AppendCharacter(TUint aKeyCode);
		TPtrC DeleteCharacter(void);
		void ClearBuffer(void);
		TPtrC Buffer(void);
		TBool IsActive();	// Is MultiTap timer active
		void Cancel();    // Cancel multitap timer

		void SetUpper(TBool bUpper){m_bIsUpper= bUpper;}
	
	private:
		static TInt TimerTimeout(TAny* aPtr);
		TInt DoTimerTimeout();

	private:
		CeQTapControl*			m_peQTapCtrl;	// not owned
		TBuf<128>					iBuffer;
		TInt						iKeyPos;
		TUint						iPreviousMultiTapKeyCode;
		CExampleFepMultiTapTimer*	iMultiTapTimer;
		TBool						m_bIsUpper;
};

#endif // FEPMULTITAPENGINE_H

// end of file

⌨️ 快捷键说明

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