Warning, /network/kdeconnect-kde/app/qml/PluginItem.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-FileCopyrightText: 2015 Aleix Pol Gonzalez <aleixpol@kde.org> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 import QtQuick 0008 import QtQuick.Controls 0009 import QtQuick.Layouts 0010 import org.kde.kirigami as Kirigami 0011 import org.kde.kdeconnect 0012 0013 QtObject 0014 { 0015 property alias pluginName: checker.pluginName 0016 property alias iconName: checker.iconName 0017 property alias loaded: checker.available 0018 property alias device: checker.device 0019 property var interfaceFactory 0020 property var component 0021 property var name 0022 0023 readonly property var checker: PluginChecker { 0024 id: checker 0025 } 0026 property var onClick: () => { 0027 if (component === "" || !interfaceFactory) 0028 return; 0029 0030 var obj = interfaceFactory.create(checker.device.id()); 0031 var page = pageStack.push( 0032 Qt.resolvedUrl(component), 0033 { pluginInterface: obj, 0034 device: checker.device 0035 } 0036 ); 0037 obj.parent = page 0038 } 0039 }