aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlmoduleregistration.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qml/qqmlmoduleregistration.h')
-rw-r--r--src/qml/qml/qqmlmoduleregistration.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlmoduleregistration.h b/src/qml/qml/qqmlmoduleregistration.h
new file mode 100644
index 0000000000..b7a0da9cb9
--- /dev/null
+++ b/src/qml/qml/qqmlmoduleregistration.h
@@ -0,0 +1,30 @@
+// Copyright (C) 2019 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
+
+#ifndef QQMLMODULEREGISTRATION_H
+#define QQMLMODULEREGISTRATION_H
+
+#include <QtQml/qtqmlglobal.h>
+
+QT_BEGIN_NAMESPACE
+
+struct QQmlModuleRegistrationPrivate;
+class Q_QML_EXPORT QQmlModuleRegistration
+{
+ Q_DISABLE_COPY_MOVE(QQmlModuleRegistration)
+public:
+ QQmlModuleRegistration(const char *uri, void (*registerFunction)());
+ ~QQmlModuleRegistration();
+
+#if QT_DEPRECATED_SINCE(6, 0)
+ QT_DEPRECATED_X("Use registration without major version")
+ QQmlModuleRegistration(const char *uri, int majorVersion, void (*registerFunction)());
+#endif
+
+private:
+ QQmlModuleRegistrationPrivate *d = nullptr;
+};
+
+QT_END_NAMESPACE
+
+#endif // QQMLMODULEREGISTRATION_H