jishiqi.h
来自「在Symbian OS S60 3rd上面」· C头文件 代码 · 共 102 行
H
102 行
/*
============================================================================
Name : jishiqi.h
Author :
Version : 1.0
Copyright : Your copyright notice
Description : Cjishiqi declaration
============================================================================
*/
#ifndef JISHIQI_H
#define JISHIQI_H
// INCLUDES
#include <e32std.h>
#include <e32base.h>
class CImageTestAppView;
class MTimeOutNotifier
{
public:
/*!
@function TimerExpired
@discussion The function to be called when a timeout occurs
*/
virtual void TimerExpired() = 0;
virtual void TimerExpired1() = 0;
};
// CLASS DECLARATION
/**
* Cjishiqi
*
*/
class Cjishiqi : public CTimer
{
public:
// Constructors and destructor
/**
* Destructor.
*/
~Cjishiqi();
/**
* Two-phased constructor.
*/
static Cjishiqi* NewL(const TInt aPriority, MTimeOutNotifier& aTimeOutNotify);
/**
* Two-phased constructor.
*/
static Cjishiqi* NewLC(const TInt aPriority, MTimeOutNotifier& aTimeOutNotify);
public: // New Methods
/**
* Start timer
*/
void Start( TTimeIntervalMicroSeconds32 aFirstInterval = 1);
/**
* Stop timer
*/
void Stop();
TBool GetStatus();
protected: // From CTimer
/*!
@function RunL
@discussion Invoked when a timeout occurs
*/
virtual void RunL();
private:
/**
* Constructor for performing 1st stage construction
*/
Cjishiqi(const TInt aPriority, MTimeOutNotifier& aTimeOutNotify);
/**
* EPOC default constructor for performing 2nd stage construction
*/
void ConstructL();
private:
MTimeOutNotifier& iNotify;
TBool iRunning;
enum TStatus
{
status0 = 0x30,
status1
};
public:
TInt INFINITY;
CImageTestAppView* aContainer;
};
#endif // JISHIQI_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?