aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlmoduleregistration.h
blob: b7a0da9cb9441d27cafb579d1bee7802c0d9d527 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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