/* SPDX-FileCopyrightText: 2024 Fushan Wen SPDX-License-Identifier: LGPL-2.1-or-later */ #include #include #include "dbustype.h" void qml_register_types_org_kde_plasma_workspace_dbus(); class DBusPlugin : public QQmlEngineExtensionPlugin { Q_OBJECT Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid) Q_DISABLE_COPY_MOVE(DBusPlugin) public: DBusPlugin(QObject *parent = nullptr) : QQmlEngineExtensionPlugin(parent) { QMetaType::registerConverter(); QMetaType::registerConverter(); QMetaType::registerConverter(); QMetaType::registerConverter(); QMetaType::registerConverter(); QMetaType::registerConverter(); QMetaType::registerConverter(); QMetaType::registerConverter(); QMetaType::registerConverter(); QMetaType::registerConverter(); QMetaType::registerConverter(); QMetaType::registerConverter([](const QDBusSignature &signature) -> QString { return signature.signature(); }); QMetaType::registerConverter(); QMetaType::registerConverter([](const QDBusObjectPath &objectPath) -> QString { return objectPath.path(); }); QMetaType::registerConverter(); QMetaType::registerConverter(); QMetaType::registerConverter([](const Plasma::DBus::VARIANT &variant) -> QVariant { return variant.value.variant(); }); qDBusRegisterMetaType>>(); volatile auto registration = &qml_register_types_org_kde_plasma_workspace_dbus; Q_UNUSED(registration); } }; #include "dbusplugin.moc"