ansphonetimer.h
来自「s60 接打电话代码,很有学习价值的,可以移植到不同平台」· C头文件 代码 · 共 47 行
H
47 行
#ifndef __ANSPHONETIMER_H__
#define __ANSPHONETIMER_H__
#include <e32base.h>
class MAnsPhoneTimerObserver
{
public:
virtual void TimerCompleteL() = 0;
};
/**
*
* @class CAnsPhoneTimer AnsPhoneTimer.h
* @brief This class is an elementary timer object, deriving from CTimer
*
* As soon as the object is created, it starts waiting for iTime to expire..
* The view displays
* When it does, the RunL() is called and the observer is updated.
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*
*/
class CAnsPhoneTimer : public CTimer
{
public:
static CAnsPhoneTimer* NewL(MAnsPhoneTimerObserver& aObserver, TInt aTime);
~CAnsPhoneTimer();
public: // CActive
void RunL();
void DoCancel();
private:
CAnsPhoneTimer(MAnsPhoneTimerObserver& aObserver, TInt aTime);
void ConstructL();
private:
MAnsPhoneTimerObserver& iObserver;
TInt iTime;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?