?? ansphonetimer.h
字號:
#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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -