| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/qmlcomponentregistry.cpp`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #include "qmlcomponentregistry.h"cxx . . $ `<file>/src/core/qmlcomponentregistry.h`/ |
| 5 | |
| 6 | #include <utility> |
| 7 | |
| 8 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::functioncxx . . $ std/function#<void()>> const & |
| 9 | QMLComponentRegistrycxx . . $ QMLComponentRegistry#::qmlTypeRegistererscxx . . $ QMLComponentRegistry#qmlTypeRegisterers(d58a39ac34c07e90).() const |
| 10 | { |
| 11 | return qmlTypeRegisterers_cxx . . $ QMLComponentRegistry#qmlTypeRegisterers_(e2a4be686f11d3ab).(); |
| 12 | } |
| 13 | |
| 14 | stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map#<stdcxx . . $ std/::stringcxx . . $ std/string#, |
| 15 | stdcxx . . $ std/::functioncxx . . $ std/function#<QMLItemcxx . . $ QMLItem# *(QQmlApplicationEnginecxx . . $ QQmlApplicationEngine# &)>> const & |
| 16 | QMLComponentRegistrycxx . . $ QMLComponentRegistry#::qmlItemProviderscxx . . $ QMLComponentRegistry#qmlItemProviders(f255daa6b8e24c63).() const |
| 17 | { |
| 18 | return qmlItemProviders_cxx . . $ QMLComponentRegistry#qmlItemProviders_(6af7262bdb0ab05f).(); |
| 19 | } |
| 20 | |
| 21 | stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map#<stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::functioncxx . . $ std/function#<QQuickItemcxx . . $ QQuickItem# *(void)>> const & |
| 22 | QMLComponentRegistrycxx . . $ QMLComponentRegistry#::quickItemProviderscxx . . $ QMLComponentRegistry#quickItemProviders(73a8d04f826783bd).() const |
| 23 | { |
| 24 | return quickItemProviders_cxx . . $ QMLComponentRegistry#quickItemProviders_(1bfd91e4e1ca0104).(); |
| 25 | } |
| 26 | |
| 27 | bool QMLComponentRegistrycxx . . $ QMLComponentRegistry#::addQMLTypeRegisterercxx . . $ QMLComponentRegistry#addQMLTypeRegisterer(9f2ee88c4f5f1585).(stdcxx . . $ std/::functioncxx . . $ std/function#<void()> &®isterer) |
| 28 | { |
| 29 | qmlTypeRegisterers_cxx . . $ QMLComponentRegistry#qmlTypeRegisterers_(e2a4be686f11d3ab).().emplace_backcxx . . $ std/vector#emplace_back(a1bcdfdabc3a37df).(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(registerer)); |
| 30 | return true; |
| 31 | } |
| 32 | |
| 33 | bool QMLComponentRegistrycxx . . $ QMLComponentRegistry#::addQMLItemProvidercxx . . $ QMLComponentRegistry#addQMLItemProvider(810b0b7f5440dcb9).( |
| 34 | stdcxx . . $ std/::string_viewcxx . . $ std/string_view# componentID, |
| 35 | stdcxx . . $ std/::functioncxx . . $ std/function#<QMLItemcxx . . $ QMLItem# *(QQmlApplicationEnginecxx . . $ QQmlApplicationEngine# &)> &&provider) |
| 36 | { |
| 37 | qmlItemProviders_cxx . . $ QMLComponentRegistry#qmlItemProviders_(6af7262bdb0ab05f).().emplacecxx . . $ std/unordered_map#emplace(8e800962ae7274b6).(stdcxx . . $ std/::stringcxx . . $ std/string#(componentID), stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(provider)); |
| 38 | return true; |
| 39 | } |
| 40 | |
| 41 | bool QMLComponentRegistrycxx . . $ QMLComponentRegistry#::addQuickItemProvidercxx . . $ QMLComponentRegistry#addQuickItemProvider(d40f163cf7ecbf79).( |
| 42 | stdcxx . . $ std/::string_viewcxx . . $ std/string_view# itemID, stdcxx . . $ std/::functioncxx . . $ std/function#<QQuickItemcxx . . $ QQuickItem# *(void)> &&provider) |
| 43 | { |
| 44 | quickItemProviders_cxx . . $ QMLComponentRegistry#quickItemProviders_(1bfd91e4e1ca0104).().emplacecxx . . $ std/unordered_map#emplace(8e800962ae7274b6).(stdcxx . . $ std/::stringcxx . . $ std/string#(itemID), stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(provider)); |
| 45 | return true; |
| 46 | } |
| 47 | |
| 48 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::functioncxx . . $ std/function#<void(void)>> &QMLComponentRegistrycxx . . $ QMLComponentRegistry#::qmlTypeRegisterers_cxx . . $ QMLComponentRegistry#qmlTypeRegisterers_(e2a4be686f11d3ab).() |
| 49 | { |
| 50 | static stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::functioncxx . . $ std/function#<void(void)>> registererscxx . . $ std/vector#vector(49f6e7a06ebc5aa8).; |
| 51 | return registerers; |
| 52 | } |
| 53 | |
| 54 | stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map#<stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::functioncxx . . $ std/function#<QMLItemcxx . . $ QMLItem# *(QQmlApplicationEnginecxx . . $ QQmlApplicationEngine# &)>> & |
| 55 | QMLComponentRegistrycxx . . $ QMLComponentRegistry#::qmlItemProviders_cxx . . $ QMLComponentRegistry#qmlItemProviders_(6af7262bdb0ab05f).() |
| 56 | { |
| 57 | static stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map#<stdcxx . . $ std/::stringcxx . . $ std/string#, |
| 58 | stdcxx . . $ std/::functioncxx . . $ std/function#<QMLItemcxx . . $ QMLItem# *(QQmlApplicationEnginecxx . . $ QQmlApplicationEngine# &)>> |
| 59 | providerscxx . . $ std/unordered_map#unordered_map(49f6e7a06ebc5aa8).; |
| 60 | return providers; |
| 61 | } |
| 62 | |
| 63 | stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map#<stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::functioncxx . . $ std/function#<QQuickItemcxx . . $ QQuickItem# *(void)>> & |
| 64 | QMLComponentRegistrycxx . . $ QMLComponentRegistry#::quickItemProviders_cxx . . $ QMLComponentRegistry#quickItemProviders_(1bfd91e4e1ca0104).() |
| 65 | { |
| 66 | static stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map#<stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::functioncxx . . $ std/function#<QQuickItemcxx . . $ QQuickItem# *(void)>> providerscxx . . $ std/unordered_map#unordered_map(49f6e7a06ebc5aa8).; |
| 67 | return providers; |
| 68 | } |