Warning, /plasma/plasma-bigscreen/containments/homescreen/package/contents/ui/indicators/Wifi.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2019 Marco Martin <mart@kde.org>
0003     SPDX-FileCopyrightText: 2013-2017 Jan Grulich <jgrulich@redhat.com>
0004 
0005     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0006 */
0007 
0008 import QtQuick 2.14
0009 import QtQuick.Layouts 1.14
0010 import org.kde.plasma.core 2.0 as PlasmaCore
0011 import org.kde.plasma.components 3.0 as PlasmaComponents
0012 import org.kde.plasma.networkmanagement as PlasmaNM
0013 import org.kde.kirigami 2.12 as Kirigami
0014 import org.kde.plasma.private.nanoshell as NanoShell
0015 
0016 AbstractIndicator {
0017     id: connectionIcon
0018 
0019     icon.name: connectionIconProvider.connectionIcon
0020 
0021     PlasmaComponents.BusyIndicator {
0022         id: connectingIndicator
0023 
0024         anchors.fill: parent
0025         running: connectionIconProvider.connecting
0026         visible: running
0027     }
0028 
0029     PlasmaNM.NetworkStatus {
0030         id: networkStatus
0031     }
0032 
0033     PlasmaNM.NetworkModel {
0034         id: connectionModel
0035     }
0036 
0037     PlasmaNM.Handler {
0038         id: handler
0039     }
0040 
0041     PlasmaNM.ConnectionIcon {
0042         id: connectionIconProvider
0043     }
0044     onClicked: {
0045         NanoShell.StartupFeedback.open(
0046                             connectionIconProvider.connectionIcon,
0047                             i18n("Network"),
0048                             connectionIcon.Kirigami.ScenePosition.x + connectionIcon.width/2,
0049                             connectionIcon.Kirigami.ScenePosition.y + connectionIcon.height/2,
0050                             Math.min(connectionIcon.width, connectionIcon.height));
0051         Plasmoid.executeCommand("plasma-settings -s -m kcm_mediacenter_wifi")
0052     }
0053 }