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 QABSTRACTEVENTDISPATCHER_P_H |
5 | #define QABSTRACTEVENTDISPATCHER_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 purely as an |
12 | // implementation detail. This header file may change from version to |
13 | // version without notice, or even be removed. |
14 | // |
15 | // We mean it. |
16 | // |
17 | |
18 | #include "QtCore/qabstracteventdispatcher.h" |
19 | #include "QtCore/qnamespace.h" |
20 | #include "private/qobject_p.h" |
21 | #include "QtCore/qttypetraits.h" |
22 | |
23 | QT_BEGIN_NAMESPACE |
24 | |
25 | Q_AUTOTEST_EXPORT qsizetype qGlobalPostedEventsCount(); |
26 | |
27 | class Q_CORE_EXPORT QAbstractEventDispatcherPrivate : public QObjectPrivate |
28 | { |
29 | Q_DECLARE_PUBLIC(QAbstractEventDispatcher) |
30 | public: |
31 | QAbstractEventDispatcherPrivate(); |
32 | ~QAbstractEventDispatcherPrivate() override; |
33 | |
34 | QList<QAbstractNativeEventFilter *> eventFilters; |
35 | |
36 | bool isV2 = false; |
37 | |
38 | static int allocateTimerId(); |
39 | static void releaseTimerId(int id); |
40 | static void releaseTimerId(Qt::TimerId id) |
41 | { releaseTimerId(id: qToUnderlying(e: id)); } |
42 | |
43 | static QAbstractEventDispatcherPrivate *get(QAbstractEventDispatcher *o) |
44 | { return o->d_func(); } |
45 | static const QAbstractEventDispatcherPrivate *get(const QAbstractEventDispatcher *o) |
46 | { return o->d_func(); } |
47 | }; |
48 | |
49 | QT_END_NAMESPACE |
50 | |
51 | #endif // QABSTRACTEVENTDISPATCHER_P_H |
52 |