![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qtimerinfo_unix_p.h>
Public Types | |
using | Duration = QAbstractEventDispatcher::Duration |
using | TimerInfo = QAbstractEventDispatcher::TimerInfoV2 |
Public Member Functions | |
QTimerInfoList () | |
std::optional< Duration > | timerWait () |
void | timerInsert (QTimerInfo *) |
Duration | remainingDuration (Qt::TimerId timerId) const |
void | registerTimer (Qt::TimerId timerId, Duration interval, Qt::TimerType timerType, QObject *object) |
bool | unregisterTimer (Qt::TimerId timerId) |
bool | unregisterTimers (QObject *object) |
QList< TimerInfo > | registeredTimers (QObject *object) const |
int | activateTimers () |
bool | hasPendingTimers () |
void | clearTimers () |
bool | isEmpty () const |
qsizetype | size () const |
auto | findTimerById (Qt::TimerId timerId) const |
Public Attributes | |
std::chrono::steady_clock::time_point | currentTime |
Definition at line 45 of file qtimerinfo_unix_p.h.
Definition at line 48 of file qtimerinfo_unix_p.h.
Definition at line 49 of file qtimerinfo_unix_p.h.
|
default |
int QTimerInfoList::activateTimers | ( | ) |
Definition at line 373 of file qtimerinfo_unix.cpp.
|
inline |
Definition at line 68 of file qtimerinfo_unix_p.h.
|
inline |
Definition at line 78 of file qtimerinfo_unix_p.h.
bool QTimerInfoList::hasPendingTimers | ( | ) |
Updates the currentTime member to the current time, and returns true
if the first timer's timeout is in the future (after currentTime).
The list is sorted by timeout, thus it's enough to check the first timer only.
Definition at line 42 of file qtimerinfo_unix.cpp.
|
inline |
Definition at line 74 of file qtimerinfo_unix_p.h.
auto QTimerInfoList::registeredTimers | ( | QObject * | object | ) | const |
Definition at line 360 of file qtimerinfo_unix.cpp.
void QTimerInfoList::registerTimer | ( | Qt::TimerId | timerId, |
QTimerInfoList::Duration | interval, | ||
Qt::TimerType | timerType, | ||
QObject * | object ) |
Definition at line 277 of file qtimerinfo_unix.cpp.
QTimerInfoList::Duration QTimerInfoList::remainingDuration | ( | Qt::TimerId | timerId | ) | const |
Definition at line 259 of file qtimerinfo_unix.cpp.
|
inline |
Definition at line 76 of file qtimerinfo_unix_p.h.
void QTimerInfoList::timerInsert | ( | QTimerInfo * | ti | ) |
Definition at line 55 of file qtimerinfo_unix.cpp.
std::optional< QTimerInfoList::Duration > QTimerInfoList::timerWait | ( | ) |
Definition at line 238 of file qtimerinfo_unix.cpp.
bool QTimerInfoList::unregisterTimer | ( | Qt::TimerId | timerId | ) |
Definition at line 320 of file qtimerinfo_unix.cpp.
bool QTimerInfoList::unregisterTimers | ( | QObject * | object | ) |
Definition at line 337 of file qtimerinfo_unix.cpp.
|
mutable |
Definition at line 52 of file qtimerinfo_unix_p.h.