tcpipimpextimer.h
来自「S60下的TCP/IP连接的演示程序」· C头文件 代码 · 共 99 行
H
99 行
#ifndef __TcpipImpExTIMER_H__
#define __TcpipImpExTIMER_H__
#include <e32base.h>
/**
*
* @class MTimeOutNotifier TcpipExTimer.h
* @brief This class specifies the function to be called when a timeout occurs.
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*
*/
class MTimeOutNotifier
{
public:
/*!
@function TimerExpired
@discussion The function to be called when a timeout occurs
*/
virtual void TimerExpired() = 0;
};
/**
*
* @class CTcpipImpExTimer TcpipExTimer.h
* @brief This class will notify an object after a specified timeout.
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*
*/
class CTcpipImpExTimer : public CTimer
{
public:
/*!
@function NewL
@discussion Create a CTcpipImpExTimer object
@param aPriority priority to use for this timer
@param aTimeOutNotify object to notify of timeout event
@result a pointer to the created instance of CTcpipImpExTimer
*/
static CTcpipImpExTimer* NewL(const TInt aPriority, MTimeOutNotifier& aTimeOutNotify);
/*!
@function NewL
@discussion Create a CTcpipImpExTimer object
@param aPriority priority to use for this timer
@param aTimeOutNotify object to notify of timeout event
@result a pointer to the created instance of CTcpipImpExTimer
*/
static CTcpipImpExTimer* NewLC(const TInt aPriority, MTimeOutNotifier& aTimeOutNotify);
/*!
@function ~CTcpipImpExTimer
@discussion Destroy the object and release all memory objects
*/
~CTcpipImpExTimer();
protected: // From CTimer
/*!
@function RunL
@discussion Invoked when a timeout occurs
*/
virtual void RunL();
private:
/*!
@function CTcpipImpExTimer
@discussion Perform the first phase of two phase construction
@param aPriority priority to use for this timer
@param aTimeOutNotify An observer to notify
*/
CTcpipImpExTimer(const TInt aPriority, MTimeOutNotifier& aTimeOutNotify);
/*!
@function ConstructL
@discussion Perform the second phase construction of a CTcpipImpExTimer
*/
void ConstructL();
private: // Member variables
/*! @var The observer for this objects events */
MTimeOutNotifier& iNotify;
};
#endif // __TcpipImpExTIMER_H__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?