1 | // Copyright (C) 2014 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Volker Krause <volker.krause@kdab.com> |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | |
5 | #ifndef QHOOKS_H |
6 | #define QHOOKS_H |
7 | |
8 | // |
9 | // W A R N I N G |
10 | // ------------- |
11 | // |
12 | // This file is not part of the Qt API. It exists purely as an |
13 | // implementation detail. This header file may change from version to |
14 | // version without notice, or even be removed. |
15 | // |
16 | // We mean it. |
17 | // |
18 | |
19 | #include <QtCore/private/qglobal_p.h> |
20 | |
21 | QT_BEGIN_NAMESPACE |
22 | |
23 | class QObject; |
24 | |
25 | namespace QHooks { |
26 | |
27 | enum HookIndex { |
28 | HookDataVersion = 0, |
29 | HookDataSize = 1, |
30 | QtVersion = 2, |
31 | AddQObject = 3, |
32 | RemoveQObject = 4, |
33 | Startup = 5, |
34 | TypeInformationVersion = 6, |
35 | LastHookIndex |
36 | }; |
37 | |
38 | typedef void(*AddQObjectCallback)(QObject*); |
39 | typedef void(*RemoveQObjectCallback)(QObject*); |
40 | typedef void(*StartupCallback)(); |
41 | |
42 | } |
43 | |
44 | extern quintptr Q_CORE_EXPORT qtHookData[]; |
45 | |
46 | QT_END_NAMESPACE |
47 | |
48 | #endif |
49 | |