tcpipimpextimer.cpp
来自「一个tcp/ip的程序,实现上传和下载等功能」· C++ 代码 · 共 59 行
CPP
59 行
/**
*
* @brief Definition of CTcpipImpExTimer
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/
// INCLUDE FILES
// Class include
#include "TcpipImpExTimer.h"
CTcpipImpExTimer* CTcpipImpExTimer::NewL(const TInt aPriority, MTimeOutNotifier& aTimeOutNotify)
{
CTcpipImpExTimer* self = CTcpipImpExTimer::NewLC(aPriority, aTimeOutNotify);
CleanupStack::Pop(self);
return self;
}
CTcpipImpExTimer* CTcpipImpExTimer::NewLC(const TInt aPriority, MTimeOutNotifier& aTimeOutNotify)
{
CTcpipImpExTimer* self = new (ELeave) CTcpipImpExTimer(aPriority, aTimeOutNotify);
CleanupStack::PushL(self);
self->ConstructL();
return self;
}
CTcpipImpExTimer::CTcpipImpExTimer(const TInt aPriority, MTimeOutNotifier& aTimeOutNotify)
: CTimer(aPriority), iNotify(aTimeOutNotify)
{
}
CTcpipImpExTimer::~CTcpipImpExTimer()
{
}
void CTcpipImpExTimer::ConstructL()
{
CTimer::ConstructL();
CActiveScheduler::Add(this);
}
void CTcpipImpExTimer::RunL()
{
// Timer request has completed, so notify the timer's owner
if (iStatus == KErrNone)
{
iNotify.TimerExpired();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?