Warning, /plasma/plasma-mobile/components/mobileshell/qml/statusbar/indicators/InternetIndicator.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2021 Devin Lin <espidev@gmail.com> 0003 SPDX-FileCopyrightText: 2019 Marco Martin <mart@kde.org> 0004 SPDX-FileCopyrightText: 2013-2017 Jan Grulich <jgrulich@redhat.com> 0005 0006 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 import QtQuick 0010 import QtQuick.Layouts 0011 import QtQuick.Controls as QQC2 0012 import org.kde.plasma.networkmanagement as PlasmaNM 0013 import org.kde.kirigami as Kirigami 0014 0015 Kirigami.Icon { 0016 id: connectionIcon 0017 0018 // data 0019 0020 readonly property string icon: connectionIconProvider.connectionIcon 0021 readonly property bool indicatorRunning: connectionIconProvider.connecting 0022 0023 readonly property var networkStatus: PlasmaNM.NetworkStatus { 0024 id: networkStatus 0025 } 0026 0027 readonly property var networkModel: PlasmaNM.NetworkModel { 0028 id: connectionModel 0029 } 0030 0031 readonly property var handler: PlasmaNM.Handler { 0032 id: handler 0033 } 0034 0035 readonly property var connectionIcon: PlasmaNM.ConnectionIcon { 0036 id: connectionIconProvider 0037 } 0038 0039 // implementation 0040 source: icon 0041 0042 QQC2.BusyIndicator { 0043 id: connectingIndicator 0044 0045 anchors.fill: parent 0046 running: connectionIcon.indicatorRunning 0047 visible: running 0048 } 0049 }