| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/qmlcomponentregistry.h`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "iqmlcomponentregistry.h"cxx . . $ `<file>/src/core/iqmlcomponentregistry.h`/ |
| 7 | #include <functional> |
| 8 | #include <string> |
| 9 | #include <string_view> |
| 10 | #include <unordered_map> |
| 11 | #include <vector> |
| 12 | |
| 13 | class QMLItemcxx . . $ QMLItem#; |
| 14 | class QQmlApplicationEnginecxx . . $ QQmlApplicationEngine#; |
| 15 | class QQuickItemcxx . . $ QQuickItem#; |
| 16 | |
| 17 | class QMLComponentRegistrycxx . . $ QMLComponentRegistry# final : public IQMLComponentRegistrycxx . . $ IQMLComponentRegistry# |
| 18 | { |
| 19 | public: |
| 20 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::functioncxx . . $ std/function#<void(void)>> const & |
| 21 | qmlTypeRegistererscxx . . $ QMLComponentRegistry#qmlTypeRegisterers(d58a39ac34c07e90).() const override; |
| 22 | |
| 23 | stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map#<stdcxx . . $ std/::stringcxx . . $ std/string#, |
| 24 | stdcxx . . $ std/::functioncxx . . $ std/function#<QMLItemcxx . . $ QMLItem# *(QQmlApplicationEnginecxx . . $ QQmlApplicationEngine# &)>> const & |
| 25 | qmlItemProviderscxx . . $ QMLComponentRegistry#qmlItemProviders(f255daa6b8e24c63).() const override; |
| 26 | |
| 27 | stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map#<stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::functioncxx . . $ std/function#<QQuickItemcxx . . $ QQuickItem# *(void)>> const & |
| 28 | quickItemProviderscxx . . $ QMLComponentRegistry#quickItemProviders(73a8d04f826783bd).() const override; |
| 29 | |
| 30 | static bool addQMLTypeRegisterercxx . . $ QMLComponentRegistry#addQMLTypeRegisterer(9f2ee88c4f5f1585).(stdcxx . . $ std/::functioncxx . . $ std/function#<void(void)> &®isterer); |
| 31 | |
| 32 | static bool addQMLItemProvidercxx . . $ QMLComponentRegistry#addQMLItemProvider(810b0b7f5440dcb9).( |
| 33 | stdcxx . . $ std/::string_viewcxx . . $ std/string_view# componentID, |
| 34 | stdcxx . . $ std/::functioncxx . . $ std/function#<QMLItemcxx . . $ QMLItem# *(QQmlApplicationEnginecxx . . $ QQmlApplicationEngine# &)> &&provider); |
| 35 | |
| 36 | static bool addQuickItemProvidercxx . . $ QMLComponentRegistry#addQuickItemProvider(d40f163cf7ecbf79).(stdcxx . . $ std/::string_viewcxx . . $ std/string_view# itemID, |
| 37 | stdcxx . . $ std/::functioncxx . . $ std/function#<QQuickItemcxx . . $ QQuickItem# *(void)> &&provider); |
| 38 | |
| 39 | private: |
| 40 | static stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::functioncxx . . $ std/function#<void(void)>> &qmlTypeRegisterers_cxx . . $ QMLComponentRegistry#qmlTypeRegisterers_(e2a4be686f11d3ab).(); |
| 41 | static stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map#<stdcxx . . $ std/::stringcxx . . $ std/string#, |
| 42 | stdcxx . . $ std/::functioncxx . . $ std/function#<QMLItemcxx . . $ QMLItem# *(QQmlApplicationEnginecxx . . $ QQmlApplicationEngine# &)>> & |
| 43 | qmlItemProviders_cxx . . $ QMLComponentRegistry#qmlItemProviders_(6af7262bdb0ab05f).(); |
| 44 | static stdcxx . . $ std/::unordered_mapcxx . . $ std/unordered_map#<stdcxx . . $ std/::stringcxx . . $ std/string#, stdcxx . . $ std/::functioncxx . . $ std/function#<QQuickItemcxx . . $ QQuickItem# *(void)>> & |
| 45 | quickItemProviders_cxx . . $ QMLComponentRegistry#quickItemProviders_(1bfd91e4e1ca0104).(); |
| 46 | }; |