DtkDeclarative
DTK Declarative module
载入中...
搜索中...
未找到
dqmlapppreloadinterface.h
1// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DQMLAPPPLUGINPRELOADINTERFACE_H
6#define DQMLAPPPLUGINPRELOADINTERFACE_H
7
8#include <QSGRendererInterface>
9#include <dtkdeclarative_global.h>
10
11#define DQmlAppPreloadInterface_iid "dtk.qml.app.preload.interface"
12
13QT_BEGIN_NAMESPACE
14class QGuiApplication;
15class QQmlApplicationEngine;
16class QQmlEngine;
17QT_END_NAMESPACE
18
19DQUICK_BEGIN_NAMESPACE
20
22{
23public:
24 DQmlAppPreloadInterface() = default;
25 virtual ~DQmlAppPreloadInterface() = default;
26
27 virtual QUrl preloadComponentPath() const = 0;
28 virtual void aboutToPreload(QQmlApplicationEngine *engine);
29 virtual QGuiApplication *creatApplication(int &argc, char **argv);
30 virtual QSGRendererInterface::GraphicsApi graphicsApi();
31};
32
33DQUICK_END_NAMESPACE
34
35Q_DECLARE_INTERFACE(DTK_QUICK_NAMESPACE::DQmlAppPreloadInterface, DQmlAppPreloadInterface_iid)
36#endif // DQMLAPPPLUGINPRELOADINTERFACE_H
Definition dqmlapppreloadinterface.h:22