131 lines
6.5 KiB
C++
131 lines
6.5 KiB
C++
#include <QtQml/qqmlprivate.h>
|
|
#include <QtCore/qdir.h>
|
|
#include <QtCore/qurl.h>
|
|
#include <QtCore/qhash.h>
|
|
#include <QtCore/qstring.h>
|
|
|
|
namespace QmlCacheGeneratedCode {
|
|
namespace _qt_qml_KomplexHubContent_App_qml {
|
|
extern const unsigned char qmlData[];
|
|
extern const QQmlPrivate::AOTCompiledFunction aotBuiltFunctions[];
|
|
const QQmlPrivate::CachedQmlUnit unit = {
|
|
reinterpret_cast<const QV4::CompiledData::Unit*>(&qmlData), &aotBuiltFunctions[0], nullptr
|
|
};
|
|
}
|
|
namespace _qt_qml_KomplexHubContent_MainScreen_qml {
|
|
extern const unsigned char qmlData[];
|
|
extern const QQmlPrivate::AOTCompiledFunction aotBuiltFunctions[];
|
|
const QQmlPrivate::CachedQmlUnit unit = {
|
|
reinterpret_cast<const QV4::CompiledData::Unit*>(&qmlData), &aotBuiltFunctions[0], nullptr
|
|
};
|
|
}
|
|
namespace _qt_qml_KomplexHubContent_pages_HomePage_qml {
|
|
extern const unsigned char qmlData[];
|
|
extern const QQmlPrivate::AOTCompiledFunction aotBuiltFunctions[];
|
|
const QQmlPrivate::CachedQmlUnit unit = {
|
|
reinterpret_cast<const QV4::CompiledData::Unit*>(&qmlData), &aotBuiltFunctions[0], nullptr
|
|
};
|
|
}
|
|
namespace _qt_qml_KomplexHubContent_pages_ImageSearchPage_qml {
|
|
extern const unsigned char qmlData[];
|
|
extern const QQmlPrivate::AOTCompiledFunction aotBuiltFunctions[];
|
|
const QQmlPrivate::CachedQmlUnit unit = {
|
|
reinterpret_cast<const QV4::CompiledData::Unit*>(&qmlData), &aotBuiltFunctions[0], nullptr
|
|
};
|
|
}
|
|
namespace _qt_qml_KomplexHubContent_pages_InstalledWallpaperPage_qml {
|
|
extern const unsigned char qmlData[];
|
|
extern const QQmlPrivate::AOTCompiledFunction aotBuiltFunctions[];
|
|
const QQmlPrivate::CachedQmlUnit unit = {
|
|
reinterpret_cast<const QV4::CompiledData::Unit*>(&qmlData), &aotBuiltFunctions[0], nullptr
|
|
};
|
|
}
|
|
namespace _qt_qml_KomplexHubContent_pages_LiveSearchPage_qml {
|
|
extern const unsigned char qmlData[];
|
|
extern const QQmlPrivate::AOTCompiledFunction aotBuiltFunctions[];
|
|
const QQmlPrivate::CachedQmlUnit unit = {
|
|
reinterpret_cast<const QV4::CompiledData::Unit*>(&qmlData), &aotBuiltFunctions[0], nullptr
|
|
};
|
|
}
|
|
namespace _qt_qml_KomplexHubContent_pages_LoginPage_qml {
|
|
extern const unsigned char qmlData[];
|
|
extern const QQmlPrivate::AOTCompiledFunction aotBuiltFunctions[];
|
|
const QQmlPrivate::CachedQmlUnit unit = {
|
|
reinterpret_cast<const QV4::CompiledData::Unit*>(&qmlData), &aotBuiltFunctions[0], nullptr
|
|
};
|
|
}
|
|
namespace _qt_qml_KomplexHubContent_pages_SettingsPage_qml {
|
|
extern const unsigned char qmlData[];
|
|
extern const QQmlPrivate::AOTCompiledFunction aotBuiltFunctions[];
|
|
const QQmlPrivate::CachedQmlUnit unit = {
|
|
reinterpret_cast<const QV4::CompiledData::Unit*>(&qmlData), &aotBuiltFunctions[0], nullptr
|
|
};
|
|
}
|
|
namespace _qt_qml_KomplexHubContent_pages_UserProfilePage_qml {
|
|
extern const unsigned char qmlData[];
|
|
extern const QQmlPrivate::AOTCompiledFunction aotBuiltFunctions[];
|
|
const QQmlPrivate::CachedQmlUnit unit = {
|
|
reinterpret_cast<const QV4::CompiledData::Unit*>(&qmlData), &aotBuiltFunctions[0], nullptr
|
|
};
|
|
}
|
|
namespace _qt_qml_KomplexHubContent_pages_WallpaperSettingsPage_qml {
|
|
extern const unsigned char qmlData[];
|
|
extern const QQmlPrivate::AOTCompiledFunction aotBuiltFunctions[];
|
|
const QQmlPrivate::CachedQmlUnit unit = {
|
|
reinterpret_cast<const QV4::CompiledData::Unit*>(&qmlData), &aotBuiltFunctions[0], nullptr
|
|
};
|
|
}
|
|
|
|
}
|
|
namespace {
|
|
struct Registry {
|
|
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("/qt/qml/KomplexHubContent/App.qml"), &QmlCacheGeneratedCode::_qt_qml_KomplexHubContent_App_qml::unit);
|
|
resourcePathToCachedUnit.insert(QStringLiteral("/qt/qml/KomplexHubContent/MainScreen.qml"), &QmlCacheGeneratedCode::_qt_qml_KomplexHubContent_MainScreen_qml::unit);
|
|
resourcePathToCachedUnit.insert(QStringLiteral("/qt/qml/KomplexHubContent/pages/HomePage.qml"), &QmlCacheGeneratedCode::_qt_qml_KomplexHubContent_pages_HomePage_qml::unit);
|
|
resourcePathToCachedUnit.insert(QStringLiteral("/qt/qml/KomplexHubContent/pages/ImageSearchPage.qml"), &QmlCacheGeneratedCode::_qt_qml_KomplexHubContent_pages_ImageSearchPage_qml::unit);
|
|
resourcePathToCachedUnit.insert(QStringLiteral("/qt/qml/KomplexHubContent/pages/InstalledWallpaperPage.qml"), &QmlCacheGeneratedCode::_qt_qml_KomplexHubContent_pages_InstalledWallpaperPage_qml::unit);
|
|
resourcePathToCachedUnit.insert(QStringLiteral("/qt/qml/KomplexHubContent/pages/LiveSearchPage.qml"), &QmlCacheGeneratedCode::_qt_qml_KomplexHubContent_pages_LiveSearchPage_qml::unit);
|
|
resourcePathToCachedUnit.insert(QStringLiteral("/qt/qml/KomplexHubContent/pages/LoginPage.qml"), &QmlCacheGeneratedCode::_qt_qml_KomplexHubContent_pages_LoginPage_qml::unit);
|
|
resourcePathToCachedUnit.insert(QStringLiteral("/qt/qml/KomplexHubContent/pages/SettingsPage.qml"), &QmlCacheGeneratedCode::_qt_qml_KomplexHubContent_pages_SettingsPage_qml::unit);
|
|
resourcePathToCachedUnit.insert(QStringLiteral("/qt/qml/KomplexHubContent/pages/UserProfilePage.qml"), &QmlCacheGeneratedCode::_qt_qml_KomplexHubContent_pages_UserProfilePage_qml::unit);
|
|
resourcePathToCachedUnit.insert(QStringLiteral("/qt/qml/KomplexHubContent/pages/WallpaperSettingsPage.qml"), &QmlCacheGeneratedCode::_qt_qml_KomplexHubContent_pages_WallpaperSettingsPage_qml::unit);
|
|
QQmlPrivate::RegisterQmlUnitCacheHook registration;
|
|
registration.structVersion = 0;
|
|
registration.lookupCachedQmlUnit = &lookupCachedUnit;
|
|
QQmlPrivate::qmlregister(QQmlPrivate::QmlUnitCacheHookRegistration, ®istration);
|
|
}
|
|
|
|
Registry::~Registry() {
|
|
QQmlPrivate::qmlunregister(QQmlPrivate::QmlUnitCacheHookRegistration, quintptr(&lookupCachedUnit));
|
|
}
|
|
|
|
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_qmlcache_KomplexHubContent)() {
|
|
::unitRegistry();
|
|
return 1;
|
|
}
|
|
Q_CONSTRUCTOR_FUNCTION(QT_MANGLE_NAMESPACE(qInitResources_qmlcache_KomplexHubContent))
|
|
int QT_MANGLE_NAMESPACE(qCleanupResources_qmlcache_KomplexHubContent)() {
|
|
return 1;
|
|
}
|