4#ifndef QABSTRACTEVENTDISPATCHER_H
5#define QABSTRACTEVENTDISPATCHER_H
7#include <QtCore/qobject.h>
8#include <QtCore/qeventloop.h>
30 : timerId(
id), interval(
i), timerType(
t) { }
51#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0)
56 virtual bool unregisterTimer(
int timerId) = 0;
57 virtual QList<TimerInfo> registeredTimers(
QObject *
object)
const = 0;
58 virtual int remainingTime(
int timerId) = 0;
62 QList<TimerInfoV2> timersForObject(
QObject *
object)
const;
75 virtual void startingUp();
76 virtual void closingDown();
94#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0)
107 virtual bool unregisterTimer(
Qt::TimerId timerId) = 0;
108 virtual QList<TimerInfoV2> timersForObject(
QObject *
object)
const = 0;
109 virtual Duration remainingTime(
Qt::TimerId timerId)
const = 0;
117 QObject *
object)
override final;
118 virtual bool unregisterTimer(
int timerId)
override final;
119 virtual QList<TimerInfo> registeredTimers(
QObject *
object)
const override final;
121 virtual int remainingTime(
int timerId)
override final;
DarwinBluetooth::LECBManagerNotifier * notifier
virtual void registerSocketNotifier(QSocketNotifier *notifier)=0
Registers notifier with the event loop.
virtual Duration remainingTime(Qt::TimerId timerId) const =0
Returns the remaining time of the timer with the given timerId.
void aboutToBlock()
This signal is emitted before the event loop calls a function that could block.
std::chrono::nanoseconds Duration
A {std::chrono::duration} type that is used in various API in this class.
virtual void unregisterSocketNotifier(QSocketNotifier *notifier)=0
Unregisters notifier from the event dispatcher.
virtual void wakeUp()=0
\threadsafe
virtual QList< TimerInfoV2 > timersForObject(QObject *object) const =0
void awake()
This signal is emitted after the event loop returns from a function that could block.
virtual void registerTimer(Qt::TimerId timerId, Duration interval, Qt::TimerType timerType, QObject *object)=0
virtual bool processEvents(QEventLoop::ProcessEventsFlags flags)=0
Processes pending events that match flags until there are no more events to process.
virtual bool unregisterTimer(Qt::TimerId timerId)=0
virtual bool unregisterTimers(QObject *object)=0
Unregisters all the timers associated with the given object.
virtual void interrupt()=0
Interrupts event dispatching.
Combined button and popup list for selecting options.
QAbstractEventDispatcher QAbstractEventDispatcherV2
GLuint GLsizei const GLchar * message
#define Q_DECLARE_TYPEINFO(TYPE, FLAGS)
\variable QAbstractEventDispatcher::TimerInfo::timerId
TimerInfo(int id, int i, Qt::TimerType t)
Constructs a TimerInfo struct with the given timerId, interval, and timerType.