shift-shell/components/mobileshell/qml/dataproviders/WifiProvider.qml
Devin Lin 210042a6bf libmobileshell: Move back to QML plugin
Move from a C++ library + QML plugin to a QML plugin only for simplicity, since the homescreen switching architecture will be done from Plasma, and so use of the shell library only needs to be from QML.
2022-03-21 10:00:09 -04:00

36 lines
963 B
QML

/*
SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
SPDX-FileCopyrightText: 2019 Marco Martin <mart@kde.org>
SPDX-FileCopyrightText: 2013-2017 Jan Grulich <jgrulich@redhat.com>
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
import QtQuick 2.2
import QtQuick.Layouts 1.4
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.networkmanagement 0.2 as PlasmaNM
pragma Singleton
QtObject {
property string icon: connectionIconProvider.connectionIcon
property bool indicatorRunning: connectionIconProvider.connecting
property var networkStatus: PlasmaNM.NetworkStatus {
id: networkStatus
}
property var networkModel: PlasmaNM.NetworkModel {
id: connectionModel
}
property var handler: PlasmaNM.Handler {
id: handler
}
property var connectionIcon: PlasmaNM.ConnectionIcon {
id: connectionIconProvider
}
}