| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/qmlcomponentfactory.h`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "iqmlcomponentfactory.h"cxx . . $ `<file>/src/core/iqmlcomponentfactory.h`/ |
| 7 | #include <memory> |
| 8 | #include <string_view> |
| 9 | |
| 10 | class IQMLComponentRegistrycxx . . $ IQMLComponentRegistry#; |
| 11 | class QQuickItemcxx . . $ QQuickItem#; |
| 12 | |
| 13 | class QMLComponentFactorycxx . . $ QMLComponentFactory# final : public IQMLComponentFactorycxx . . $ IQMLComponentFactory# |
| 14 | { |
| 15 | public: |
| 16 | QMLComponentFactorycxx . . $ QMLComponentFactory#QMLComponentFactory(e8462a2bf8d64ffc).( |
| 17 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IQMLComponentRegistrycxx . . $ IQMLComponentRegistry#> &&qmlComponentRegistry) noexcept; |
| 18 | |
| 19 | void registerQMLTypescxx . . $ QMLComponentFactory#registerQMLTypes(83f5f38750778ac8).() const override; |
| 20 | |
| 21 | QMLItemcxx . . $ QMLItem# *createQMLItemcxx . . $ QMLComponentFactory#createQMLItem(308271eb1161825f).(stdcxx . . $ std/::stringcxx . . $ std/string# const &itemID, QQuickItemcxx . . $ QQuickItem# *parent, |
| 22 | QQmlApplicationEnginecxx . . $ QQmlApplicationEngine# &qmlEngine) const override; |
| 23 | |
| 24 | QQuickItemcxx . . $ QQuickItem# *createQuickItemcxx . . $ QMLComponentFactory#createQuickItem(60769b42a50f5a21).(stdcxx . . $ std/::stringcxx . . $ std/string# const &itemID, QQuickItemcxx . . $ QQuickItem# *parent, |
| 25 | stdcxx . . $ std/::stringcxx . . $ std/string# const &parentObjectName) const override; |
| 26 | |
| 27 | private: |
| 28 | /// Parent item to the first object that has parentObjectName as |
| 29 | /// object name (the parent itself or one of its children) |
| 30 | /// If there is no object with parentObjectName as object name, |
| 31 | /// the item is parented to parent. |
| 32 | void parentItemcxx . . $ QMLComponentFactory#parentItem(68d7ab0ff596b04d).(QQuickItemcxx . . $ QQuickItem# *item, QQuickItemcxx . . $ QQuickItem# *parent, |
| 33 | stdcxx . . $ std/::string_viewcxx . . $ std/string_view# parentObjectName) const; |
| 34 | |
| 35 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<IQMLComponentRegistrycxx . . $ IQMLComponentRegistry#> qmlComponentRegistry_cxx . . $ QMLComponentFactory#qmlComponentRegistry_.; |
| 36 | }; |