Debian Codegraph @

src/core/iqmlcomponentfactory.h

raw symbols SCIP
1 // SPDX-License-Identifier: GPL-3.0-or-later
2 // Copyright 2019 Juan Palacios <[email protected]>
3
4 #pragma once
5
6 #include <string>
7
8 class QMLItem;
9 class QQmlApplicationEngine;
10 class QQuickItem;
11
12 class IQMLComponentFactory
13 {
14 public:
15 virtual void registerQMLTypes() const = 0;
16
17 virtual QMLItem *createQMLItem(std::string const &itemID, QQuickItem *parent,
18 QQmlApplicationEngine &qmlEngine) const = 0;
19
20 virtual QQuickItem *
21 createQuickItem(std::string const &itemID, QQuickItem *parent,
22 std::string const &parentObjectName) const = 0;
23
24 virtual ~IQMLComponentFactory() = default;
25 };