/* * SPDX-FileCopyrightText: 2015 Aleix Pol Gonzalez * * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ import QtQuick import QtQuick.Controls import QtQuick.Layouts import org.kde.kirigami as Kirigami import org.kde.kdeconnect QtObject { property alias pluginName: checker.pluginName property alias iconName: checker.iconName property alias loaded: checker.available property alias device: checker.device property var interfaceFactory property var component property var name readonly property var checker: PluginChecker { id: checker } property var onClick: () => { if (component === "" || !interfaceFactory) return; var obj = interfaceFactory.create(checker.device.id()); var page = pageStack.push( Qt.resolvedUrl(component), { pluginInterface: obj, device: checker.device } ); obj.parent = page } }