Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqmlextensioninterface.h
Go to the documentation of this file.
1// Copyright (C) 2016 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// Qt-Security score:significant
4
5#ifndef QQMLEXTENSIONINTERFACE_H
6#define QQMLEXTENSIONINTERFACE_H
7
8#include <QtQml/qtqmlglobal.h>
9#include <QtCore/qobject.h>
10
11QT_BEGIN_NAMESPACE
12
13
14class QQmlEngine;
15
17{
18public:
19 virtual ~QQmlTypesExtensionInterface();
20 virtual void registerTypes(const char *uri) = 0;
21};
22
23class Q_QML_EXPORT QQmlExtensionInterface : public QQmlTypesExtensionInterface
24{
25public:
26 ~QQmlExtensionInterface() override;
27 virtual void initializeEngine(QQmlEngine *engine, const char *uri) = 0;
28};
29
31{
32public:
33 virtual ~QQmlEngineExtensionInterface();
34 virtual void initializeEngine(QQmlEngine *engine, const char *uri) = 0;
35};
36
37#define QQmlTypesExtensionInterface_iid "org.qt-project.Qt.QQmlTypesExtensionInterface"
38Q_DECLARE_INTERFACE(QQmlTypesExtensionInterface, "org.qt-project.Qt.QQmlTypesExtensionInterface/1.0")
39
40// NOTE: When changing this to a new version and deciding to add backup code to
41// continue to support the previous version, make sure to support both of these iids.
42#define QQmlExtensionInterface_iid "org.qt-project.Qt.QQmlExtensionInterface/1.0"
43#define QQmlExtensionInterface_iid_old "org.qt-project.Qt.QQmlExtensionInterface"
44
45Q_DECLARE_INTERFACE(QQmlExtensionInterface, QQmlExtensionInterface_iid)
46
47#define QQmlEngineExtensionInterface_iid "org.qt-project.Qt.QQmlEngineExtensionInterface"
48Q_DECLARE_INTERFACE(QQmlEngineExtensionInterface, QQmlEngineExtensionInterface_iid)
49
50QT_END_NAMESPACE
51
52#endif // QQMLEXTENSIONINTERFACE_H
Q_DECLARE_INTERFACE(QNetworkAccessBackendFactory, QNetworkAccessBackendFactory_iid)
#define QQmlEngineExtensionInterface_iid
#define QQmlExtensionInterface_iid