soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
STimer Class Reference

定时器类 More...

#include <STimer.h>

Inheritance diagram for STimer:
TObjRefImpl< ITimer >

Public Member Functions

 STimer (IEvtSlot *pSlot)
 构造函数
 
 ~STimer (void)
 析构函数
 
BOOL StartTimer (int nElapse, BOOL bRepeat, LPARAM uData=0) OVERRIDE
 启动定时器
 
void KillTimer () OVERRIDE
 停止定时器
 
- Public Member Functions inherited from TObjRefImpl< ITimer >
 TObjRefImpl ()
 Constructor that initializes the reference count to 1.
 
virtual ~TObjRefImpl ()
 Virtual destructor.
 
long AddRef () override
 Increments the reference count.
 
long Release () override
 Decrements the reference count and deletes the object if the count reaches zero.
 
void OnFinalRelease () override
 Deletes the object.
 

Additional Inherited Members

- Protected Attributes inherited from TObjRefImpl< ITimer >
LONG m_cRef
 Reference count.
 

Detailed Description

定时器类

Definition at line 13 of file STimer.h.

Constructor & Destructor Documentation

◆ STimer()

SNSBEGIN STimer::STimer ( IEvtSlot * pSlot)

构造函数

Parameters
pSlot事件槽对象指针

Definition at line 6 of file STimer.cpp.

◆ ~STimer()

STimer::~STimer ( void )

析构函数

Definition at line 12 of file STimer.cpp.

Member Function Documentation

◆ KillTimer()

void STimer::KillTimer ( )

停止定时器

Definition at line 24 of file STimer.cpp.

◆ StartTimer()

BOOL STimer::StartTimer ( int nElapse,
BOOL bRepeat,
LPARAM uData = 0 )

启动定时器

Parameters
nElapse定时器间隔时间(毫秒)
bRepeat是否重复定时器
uData用户数据(默认为0)
Returns
如果成功启动定时器返回TRUE,否则返回FALSE

Definition at line 17 of file STimer.cpp.


The documentation for this class was generated from the following files: