1 | // Copyright (C) 2016 Research In Motion. |
---|---|
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 QQMLAPPLICATIONENGINE_P_H |
5 | #define QQMLAPPLICATIONENGINE_P_H |
6 | |
7 | #include "qqmlapplicationengine.h" |
8 | #include "qqmlengine_p.h" |
9 | #include <QCoreApplication> |
10 | #include <QFileInfo> |
11 | #include <QLibraryInfo> |
12 | |
13 | // |
14 | // W A R N I N G |
15 | // ------------- |
16 | // |
17 | // This file is not part of the Qt API. It exists purely as an |
18 | // implementation detail. This header file may change from version to |
19 | // version without notice, or even be removed. |
20 | // |
21 | // We mean it. |
22 | // |
23 | |
24 | QT_BEGIN_NAMESPACE |
25 | |
26 | class QFileSelector; |
27 | class Q_QML_PRIVATE_EXPORT QQmlApplicationEnginePrivate : public QQmlEnginePrivate |
28 | { |
29 | Q_DECLARE_PUBLIC(QQmlApplicationEngine) |
30 | public: |
31 | QQmlApplicationEnginePrivate(QQmlEngine *e); |
32 | ~QQmlApplicationEnginePrivate(); |
33 | void ensureInitialized(); |
34 | void init(); |
35 | void cleanUp(); |
36 | |
37 | void startLoad(const QUrl &url, const QByteArray &data = QByteArray(), bool dataFlag = false); |
38 | void startLoad(QAnyStringView uri, QAnyStringView type); |
39 | void _q_loadTranslations(); |
40 | void finishLoad(QQmlComponent *component); |
41 | void ensureLoadingFinishes(QQmlComponent *component); |
42 | QList<QObject *> objects; |
43 | QVariantMap initialProperties; |
44 | QStringList extraFileSelectors; |
45 | QString translationsDirectory; |
46 | #if QT_CONFIG(translation) |
47 | std::unique_ptr<QTranslator> activeTranslator; |
48 | #endif |
49 | bool isInitialized = false; |
50 | }; |
51 | |
52 | QT_END_NAMESPACE |
53 | |
54 | #endif |
55 |