Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
GlobalTimer Class Reference

#include <global_timer.h>

+ Collaboration diagram for GlobalTimer:

Public Types

enum class  Type : bool { kRepeating = false , kOneShot = true }
 

Public Member Functions

 GlobalTimer (CJS_App *pObj, CJS_Runtime *pRuntime, Type nType, const WideString &script, uint32_t dwElapse, uint32_t dwTimeOut)
 
 ~GlobalTimer ()
 
bool IsOneShot () const
 
uint32_t GetTimeOut () const
 
int32_t GetTimerID () const
 
CJS_RuntimeGetRuntime () const
 
WideString GetJScript () const
 

Static Public Member Functions

static void InitializeGlobals ()
 
static void DestroyGlobals ()
 
static void Trigger (int32_t nTimerID)
 
static void Cancel (int32_t nTimerID)
 

Detailed Description

Definition at line 15 of file global_timer.h.

Member Enumeration Documentation

◆ Type

enum class GlobalTimer::Type : bool
strong
Enumerator
kRepeating 
kOneShot 

Definition at line 17 of file global_timer.h.

Constructor & Destructor Documentation

◆ GlobalTimer()

GlobalTimer::GlobalTimer ( CJS_App * pObj,
CJS_Runtime * pRuntime,
Type nType,
const WideString & script,
uint32_t dwElapse,
uint32_t dwTimeOut )

Definition at line 35 of file global_timer.cpp.

References GlobalTimer(), CJS_Runtime::GetTimerHandler(), CFX_Timer::HandlerIface::SetTimer(), and Trigger().

Referenced by GlobalTimer().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ~GlobalTimer()

GlobalTimer::~GlobalTimer ( )

Definition at line 53 of file global_timer.cpp.

Member Function Documentation

◆ Cancel()

void GlobalTimer::Cancel ( int32_t nTimerID)
static

Definition at line 92 of file global_timer.cpp.

◆ DestroyGlobals()

void GlobalTimer::DestroyGlobals ( )
static

Definition at line 30 of file global_timer.cpp.

◆ GetJScript()

WideString GlobalTimer::GetJScript ( ) const
inline

Definition at line 40 of file global_timer.h.

Referenced by CJS_App::TimerProc().

+ Here is the caller graph for this function:

◆ GetRuntime()

CJS_Runtime * GlobalTimer::GetRuntime ( ) const
inline

Definition at line 39 of file global_timer.h.

Referenced by CJS_App::TimerProc().

+ Here is the caller graph for this function:

◆ GetTimeOut()

uint32_t GlobalTimer::GetTimeOut ( ) const
inline

Definition at line 37 of file global_timer.h.

Referenced by CJS_App::TimerProc().

+ Here is the caller graph for this function:

◆ GetTimerID()

int32_t GlobalTimer::GetTimerID ( ) const
inline

Definition at line 38 of file global_timer.h.

Referenced by CJS_TimerObj::SetTimer().

+ Here is the caller graph for this function:

◆ InitializeGlobals()

void GlobalTimer::InitializeGlobals ( )
static

Definition at line 24 of file global_timer.cpp.

◆ IsOneShot()

bool GlobalTimer::IsOneShot ( ) const
inline

Definition at line 36 of file global_timer.h.

References kOneShot.

Referenced by CJS_App::TimerProc(), and Trigger().

+ Here is the caller graph for this function:

◆ Trigger()

void GlobalTimer::Trigger ( int32_t nTimerID)
static

Definition at line 65 of file global_timer.cpp.

References IsOneShot().

Referenced by GlobalTimer().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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