soui
5.0.0.1
Soui5 Doc
Loading...
Searching...
No Matches
STimer-i.h
1
#ifndef __STIMER_I__H__
2
#define __STIMER_I__H__
3
#include <interface/obj-ref-i.h>
4
#include <interface/SEvtArgs-i.h>
5
6
SNSBEGIN
7
8
#undef INTERFACE
9
#define INTERFACE ITimer
10
DECLARE_INTERFACE_(ITimer,
IObjRef
)
11
{
12
//!添加引用
13
/*!
14
*/
15
STDMETHOD_(
long
, AddRef)(THIS) PURE;
16
17
//!释放引用
18
/*!
19
*/
20
STDMETHOD_(
long
, Release)(THIS) PURE;
21
22
//!释放对象
23
/*!
24
*/
25
STDMETHOD_(
void
, OnFinalRelease)(THIS) PURE;
26
27
//////////////////////////////////////////////////////////////////////////
28
29
/**
30
* StartTimer
31
* @brief 启动定时器
32
* @param int nElapse -- 延时(ms)
33
* @param BOOL bRepeat -- 重复标志
34
* @param LPARAM uData -- Timer 自定义参数
35
* @return BOOL, TRUE--成功
36
* Describe
37
*/
38
STDMETHOD_(BOOL, StartTimer)(THIS_
int
nElapse, BOOL bRepeat, LPARAM uData DEF_VAL(0)) PURE;
39
40
/**
41
* KillTimer
42
* @brief 停止定时器
43
* @return void
44
* Describe
45
*/
46
STDMETHOD_(
void
, KillTimer)(THIS) PURE;
47
};
48
49
SNSEND
50
#endif
// __STIMER_I__H__
IObjRef
Interface for reference counting.
Definition
obj-ref-i.h:19
SOUI
include
interface
STimer-i.h
Generated by
1.13.2