/* SPDX-FileCopyrightText: 2023 Alexander Lohnau SPDX-License-Identifier: LGPL-2.0-or-later */ #ifndef KQUICKCONFIGMODULELOADER_H #define KQUICKCONFIGMODULELOADER_H #include "kcmutilsquick_export.h" #include #include class QQmlEngine; class KQuickConfigModule; namespace KQuickConfigModuleLoader { /** * Loads a QML KCM from the given plugin metadata. * @param engine The QQmlEngine to use, if not set, an internal engine will be created. If your application has an exisiting engine, this must be passed in. */ KCMUTILSQUICK_EXPORT KPluginFactory::Result loadModule(const KPluginMetaData &metaData, QObject *parent = nullptr, const QVariantList &args = {}, const std::shared_ptr &engine = {}); } #endif