1// Copyright (C) 2019 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 QQMLMODULEREGISTRATION_H
5#define QQMLMODULEREGISTRATION_H
6
7#include <QtQml/qtqmlglobal.h>
8
9QT_BEGIN_NAMESPACE
10
11struct QQmlModuleRegistrationPrivate;
12class Q_QML_EXPORT QQmlModuleRegistration
13{
14 Q_DISABLE_COPY_MOVE(QQmlModuleRegistration)
15public:
16 QQmlModuleRegistration(const char *uri, void (*registerFunction)());
17 ~QQmlModuleRegistration();
18
19#if QT_DEPRECATED_SINCE(6, 0)
20 QT_DEPRECATED_X("Use registration without major version")
21 QQmlModuleRegistration(const char *uri, int majorVersion, void (*registerFunction)());
22#endif
23
24private:
25 QQmlModuleRegistrationPrivate *d = nullptr;
26};
27
28QT_END_NAMESPACE
29
30#endif // QQMLMODULEREGISTRATION_H
31

source code of qtdeclarative/src/qml/qml/qqmlmoduleregistration.h