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
QTimerInfoList Class Reference

#include <qtimerinfo_unix_p.h>

Collaboration diagram for QTimerInfoList:

Public Types

using Duration = QAbstractEventDispatcher::Duration
using TimerInfo = QAbstractEventDispatcher::TimerInfoV2

Public Member Functions

 QTimerInfoList ()
std::optional< DurationtimerWait ()
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< TimerInforegisteredTimers (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

Detailed Description

Definition at line 46 of file qtimerinfo_unix_p.h.

Member Typedef Documentation

◆ Duration

◆ TimerInfo

Constructor & Destructor Documentation

◆ QTimerInfoList()

QTimerInfoList::QTimerInfoList ( )
default

Member Function Documentation

◆ activateTimers()

int QTimerInfoList::activateTimers ( )

Definition at line 374 of file qtimerinfo_unix.cpp.

◆ clearTimers()

void QTimerInfoList::clearTimers ( )
inline

Definition at line 69 of file qtimerinfo_unix_p.h.

◆ findTimerById()

auto QTimerInfoList::findTimerById ( Qt::TimerId timerId) const
inline

Definition at line 79 of file qtimerinfo_unix_p.h.

◆ hasPendingTimers()

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 43 of file qtimerinfo_unix.cpp.

◆ isEmpty()

bool QTimerInfoList::isEmpty ( ) const
inline

Definition at line 75 of file qtimerinfo_unix_p.h.

◆ registeredTimers()

auto QTimerInfoList::registeredTimers ( QObject * object) const

Definition at line 361 of file qtimerinfo_unix.cpp.

◆ registerTimer()

void QTimerInfoList::registerTimer ( Qt::TimerId timerId,
QTimerInfoList::Duration interval,
Qt::TimerType timerType,
QObject * object )

Definition at line 278 of file qtimerinfo_unix.cpp.

◆ remainingDuration()

QTimerInfoList::Duration QTimerInfoList::remainingDuration ( Qt::TimerId timerId) const

Definition at line 260 of file qtimerinfo_unix.cpp.

◆ size()

qsizetype QTimerInfoList::size ( ) const
inline

Definition at line 77 of file qtimerinfo_unix_p.h.

◆ timerInsert()

void QTimerInfoList::timerInsert ( QTimerInfo * ti)

Definition at line 56 of file qtimerinfo_unix.cpp.

◆ timerWait()

std::optional< QTimerInfoList::Duration > QTimerInfoList::timerWait ( )

Definition at line 239 of file qtimerinfo_unix.cpp.

◆ unregisterTimer()

bool QTimerInfoList::unregisterTimer ( Qt::TimerId timerId)

Definition at line 321 of file qtimerinfo_unix.cpp.

◆ unregisterTimers()

bool QTimerInfoList::unregisterTimers ( QObject * object)

Definition at line 338 of file qtimerinfo_unix.cpp.

Member Data Documentation

◆ currentTime

std::chrono::steady_clock::time_point QTimerInfoList::currentTime
mutable

Definition at line 53 of file qtimerinfo_unix_p.h.


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