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
21QT_BEGIN_NAMESPACE
22
23class QObject;
24
25namespace QHooks {
26
27enum 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
38typedef void(*AddQObjectCallback)(QObject*);
39typedef void(*RemoveQObjectCallback)(QObject*);
40typedef void(*StartupCallback)();
41
42}
43
44extern quintptr Q_CORE_EXPORT qtHookData[];
45
46QT_END_NAMESPACE
47
48#endif
49

source code of qtbase/src/corelib/global/qhooks_p.h