multitapengine.h
来自「Fep Example in Symbian」· C头文件 代码 · 共 45 行
H
45 行
#ifndef FEPMULTITAPENGINE_H
#define FEPMULTITAPENGINE_H
// INCLUDES
#include <e32base.h>
#include <e32std.h>
// Forward declarations
class CExampleFepMultiTapTimer;
class CExampleFepControl;
class CExampleFepMultiTapEngine : public CBase
{
public:
CExampleFepMultiTapEngine(CExampleFepControl& aControl);
~CExampleFepMultiTapEngine();
// Static construction
static CExampleFepMultiTapEngine* NewL (CExampleFepControl& 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
private:
static TInt TimerTimeout(TAny* aPtr);
TInt DoTimerTimeout();
private:
CExampleFepControl& iFepControl; // not owned
TBuf<128> iBuffer;
TInt iKeyPos;
TUint iPreviousMultiTapKeyCode;
CExampleFepMultiTapTimer* iMultiTapTimer;
};
#endif // FEPMULTITAPENGINE_H
// end of file
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?