Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qeventdispatcher_glib_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QEVENTDISPATCHER_GLIB_P_H
5#define QEVENTDISPATCHER_GLIB_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of the QLibrary class. This header file may change from
13// version to version without notice, or even be removed.
14//
15// We mean it.
16//
17
20
21typedef struct _GMainContext GMainContext;
22
24
26
28{
30 Q_DECLARE_PRIVATE(QEventDispatcherGlib)
31
32public:
33 explicit QEventDispatcherGlib(QObject *parent = nullptr);
34 explicit QEventDispatcherGlib(GMainContext *context, QObject *parent = nullptr);
36
37 bool processEvents(QEventLoop::ProcessEventsFlags flags) override;
38
39 void registerSocketNotifier(QSocketNotifier *socketNotifier) final;
40 void unregisterSocketNotifier(QSocketNotifier *socketNotifier) final;
41
42 void registerTimer(Qt::TimerId timerId, Duration interval, Qt::TimerType timerType,
43 QObject *object) override final;
44 bool unregisterTimer(Qt::TimerId timerId) override final;
45 bool unregisterTimers(QObject *object) override final;
46 QList<TimerInfoV2> timersForObject(QObject *object) const override final;
47 Duration remainingTime(Qt::TimerId timerId) const override final;
48
49 void wakeUp() final;
50 void interrupt() final;
51
52 static bool versionSupported();
53
54protected:
56};
57
58struct GPostEventSource;
60struct GTimerSource;
61struct GIdleTimerSource;
62
77
79
80#endif // QEVENTDISPATCHER_GLIB_P_H
std::chrono::nanoseconds Duration
A {std::chrono::duration} type that is used in various API in this class.
GSocketNotifierSource * socketNotifierSource
\inmodule QtCore
Definition qobject.h:103
\inmodule QtCore
struct _GMainContext GMainContext
Combined button and popup list for selecting options.
TimerType
static void * context
GLbitfield flags
#define Q_OBJECT