Warning, /network/kdeconnect-kde/plasmoid/package/contents/ui/Sftp.qml is written in an unsupported language. File is not indexed.

0001 /**
0002  * SPDX-FileCopyrightText: 2014 Samoilenko Yuri <kinnalru@gmail.com>
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 org.kde.plasma.core as PlasmaCore
0009 import org.kde.kdeconnect
0010 
0011 QtObject {
0012 
0013     id: root
0014 
0015     property alias device: checker.device
0016     readonly property alias available: checker.available
0017 
0018     readonly property PluginChecker pluginChecker: PluginChecker {
0019         id: checker
0020         pluginName: "sftp"
0021     }
0022 
0023     property variant sftp: null
0024 
0025     function browse() {
0026         if (sftp)
0027             sftp.startBrowsing();
0028     }
0029 
0030     onAvailableChanged: {
0031         if (available) {
0032             sftp = SftpDbusInterfaceFactory.create(device.id())
0033         } else {
0034             sftp = null
0035         }
0036     }
0037 }