forked from UASResearchLaboratory/GCSNetworkPlanner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qmlcache_loader.cpp
151 lines (146 loc) · 6.28 KB
/
qmlcache_loader.cpp
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
#include <QtQml/qqmlprivate.h>
#include <QtCore/qdir.h>
#include <QtCore/qurl.h>
static const unsigned char qt_resource_tree[] = {
0,
0,0,0,0,2,0,0,0,10,0,0,0,1,0,0,1,
12,0,0,0,0,0,1,0,0,0,0,0,0,0,172,0,
0,0,0,0,1,0,0,0,0,0,0,0,142,0,0,0,
0,0,1,0,0,0,0,0,0,0,78,0,0,0,0,0,
1,0,0,0,0,0,0,0,108,0,0,0,0,0,1,0,
0,0,0,0,0,0,8,0,0,0,0,0,1,0,0,0,
0,0,0,1,38,0,0,0,0,0,1,0,0,0,0,0,
0,0,240,0,0,0,0,0,1,0,0,0,0,0,0,0,
48,0,0,0,0,0,1,0,0,0,0,0,0,0,200,0,
0,0,0,0,1,0,0,0,0};
static const unsigned char qt_resource_names[] = {
0,
1,0,0,0,47,0,47,0,17,8,137,115,28,0,78,0,
101,0,116,0,119,0,111,0,114,0,107,0,66,0,97,0,
110,0,110,0,101,0,114,0,46,0,113,0,109,0,108,0,
12,13,39,134,92,0,80,0,108,0,111,0,116,0,77,0,
97,0,105,0,110,0,46,0,113,0,109,0,108,0,12,5,
180,69,124,0,74,0,111,0,121,0,115,0,116,0,105,0,
99,0,107,0,46,0,113,0,109,0,108,0,14,7,235,75,
124,0,85,0,97,0,118,0,77,0,97,0,112,0,70,0,
111,0,114,0,109,0,46,0,113,0,109,0,108,0,12,5,
48,135,188,0,80,0,108,0,111,0,116,0,86,0,105,0,
101,0,119,0,46,0,113,0,109,0,108,0,11,4,107,8,
156,0,80,0,108,0,97,0,110,0,110,0,101,0,114,0,
46,0,113,0,109,0,108,0,17,14,217,244,156,0,68,0,
106,0,105,0,65,0,99,0,116,0,105,0,118,0,97,0,
116,0,101,0,85,0,73,0,46,0,113,0,109,0,108,0,
11,12,197,40,92,0,68,0,100,0,115,0,77,0,101,0,
110,0,117,0,46,0,113,0,109,0,108,0,10,3,136,41,
92,0,85,0,97,0,118,0,77,0,97,0,112,0,46,0,
113,0,109,0,108,0,9,11,126,164,252,0,115,0,112,0,
101,0,97,0,107,0,46,0,113,0,109,0,108};
static const unsigned char qt_resource_empty_payout[] = { 0, 0, 0, 0, 0 };
QT_BEGIN_NAMESPACE
extern Q_CORE_EXPORT bool qRegisterResourceData(int, const unsigned char *, const unsigned char *, const unsigned char *);
QT_END_NAMESPACE
namespace QmlCacheGeneratedCode {
namespace _0x5f__speak_qml {
extern const unsigned char qmlData[];
const QQmlPrivate::CachedQmlUnit unit = {
reinterpret_cast<const QV4::CompiledData::Unit*>(&qmlData), nullptr, nullptr
};
}
namespace _0x5f__UavMap_qml {
extern const unsigned char qmlData[];
const QQmlPrivate::CachedQmlUnit unit = {
reinterpret_cast<const QV4::CompiledData::Unit*>(&qmlData), nullptr, nullptr
};
}
namespace _0x5f__DdsMenu_qml {
extern const unsigned char qmlData[];
const QQmlPrivate::CachedQmlUnit unit = {
reinterpret_cast<const QV4::CompiledData::Unit*>(&qmlData), nullptr, nullptr
};
}
namespace _0x5f__DjiActivateUI_qml {
extern const unsigned char qmlData[];
const QQmlPrivate::CachedQmlUnit unit = {
reinterpret_cast<const QV4::CompiledData::Unit*>(&qmlData), nullptr, nullptr
};
}
namespace _0x5f__Planner_qml {
extern const unsigned char qmlData[];
const QQmlPrivate::CachedQmlUnit unit = {
reinterpret_cast<const QV4::CompiledData::Unit*>(&qmlData), nullptr, nullptr
};
}
namespace _0x5f__PlotView_qml {
extern const unsigned char qmlData[];
const QQmlPrivate::CachedQmlUnit unit = {
reinterpret_cast<const QV4::CompiledData::Unit*>(&qmlData), nullptr, nullptr
};
}
namespace _0x5f__UavMapForm_qml {
extern const unsigned char qmlData[];
const QQmlPrivate::CachedQmlUnit unit = {
reinterpret_cast<const QV4::CompiledData::Unit*>(&qmlData), nullptr, nullptr
};
}
namespace _0x5f__Joystick_qml {
extern const unsigned char qmlData[];
const QQmlPrivate::CachedQmlUnit unit = {
reinterpret_cast<const QV4::CompiledData::Unit*>(&qmlData), nullptr, nullptr
};
}
namespace _0x5f__PlotMain_qml {
extern const unsigned char qmlData[];
const QQmlPrivate::CachedQmlUnit unit = {
reinterpret_cast<const QV4::CompiledData::Unit*>(&qmlData), nullptr, nullptr
};
}
namespace _0x5f__NetworkBanner_qml {
extern const unsigned char qmlData[];
const QQmlPrivate::CachedQmlUnit unit = {
reinterpret_cast<const QV4::CompiledData::Unit*>(&qmlData), nullptr, nullptr
};
}
}
namespace {
struct Registry {
Registry();
QHash<QString, const QQmlPrivate::CachedQmlUnit*> resourcePathToCachedUnit;
static const QQmlPrivate::CachedQmlUnit *lookupCachedUnit(const QUrl &url);
};
Q_GLOBAL_STATIC(Registry, unitRegistry)
Registry::Registry() {
resourcePathToCachedUnit.insert(QStringLiteral("/speak.qml"), &QmlCacheGeneratedCode::_0x5f__speak_qml::unit);
resourcePathToCachedUnit.insert(QStringLiteral("/UavMap.qml"), &QmlCacheGeneratedCode::_0x5f__UavMap_qml::unit);
resourcePathToCachedUnit.insert(QStringLiteral("/DdsMenu.qml"), &QmlCacheGeneratedCode::_0x5f__DdsMenu_qml::unit);
resourcePathToCachedUnit.insert(QStringLiteral("/DjiActivateUI.qml"), &QmlCacheGeneratedCode::_0x5f__DjiActivateUI_qml::unit);
resourcePathToCachedUnit.insert(QStringLiteral("/Planner.qml"), &QmlCacheGeneratedCode::_0x5f__Planner_qml::unit);
resourcePathToCachedUnit.insert(QStringLiteral("/PlotView.qml"), &QmlCacheGeneratedCode::_0x5f__PlotView_qml::unit);
resourcePathToCachedUnit.insert(QStringLiteral("/UavMapForm.qml"), &QmlCacheGeneratedCode::_0x5f__UavMapForm_qml::unit);
resourcePathToCachedUnit.insert(QStringLiteral("/Joystick.qml"), &QmlCacheGeneratedCode::_0x5f__Joystick_qml::unit);
resourcePathToCachedUnit.insert(QStringLiteral("/PlotMain.qml"), &QmlCacheGeneratedCode::_0x5f__PlotMain_qml::unit);
resourcePathToCachedUnit.insert(QStringLiteral("/NetworkBanner.qml"), &QmlCacheGeneratedCode::_0x5f__NetworkBanner_qml::unit);
QQmlPrivate::RegisterQmlUnitCacheHook registration;
registration.version = 0;
registration.lookupCachedQmlUnit = &lookupCachedUnit;
QQmlPrivate::qmlregister(QQmlPrivate::QmlUnitCacheHookRegistration, ®istration);
QT_PREPEND_NAMESPACE(qRegisterResourceData)(/*version*/0x01, qt_resource_tree, qt_resource_names, qt_resource_empty_payout);
}
const QQmlPrivate::CachedQmlUnit *Registry::lookupCachedUnit(const QUrl &url) {
if (url.scheme() != QLatin1String("qrc"))
return nullptr;
QString resourcePath = QDir::cleanPath(url.path());
if (resourcePath.isEmpty())
return nullptr;
if (!resourcePath.startsWith(QLatin1Char('/')))
resourcePath.prepend(QLatin1Char('/'));
return unitRegistry()->resourcePathToCachedUnit.value(resourcePath, nullptr);
}
}
int QT_MANGLE_NAMESPACE(qInitResources_qml)() {
::unitRegistry();
return 1;
}
Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_qml))
int QT_MANGLE_NAMESPACE(qCleanupResources_qml)() {
return 1;
}