2021-04-09 20:59:05 +00:00
|
|
|
/*
|
2021-12-22 23:29:00 +00:00
|
|
|
* SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
|
2021-04-09 20:59:05 +00:00
|
|
|
* SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org>
|
2021-09-28 22:55:51 +00:00
|
|
|
* SPDX-FileCopyrightText: 2021 Tobias Fella <fella@posteo.de>
|
2021-04-09 20:59:05 +00:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
*/
|
|
|
|
|
|
2023-10-19 17:46:54 +00:00
|
|
|
pragma Singleton
|
|
|
|
|
|
2021-04-09 20:59:05 +00:00
|
|
|
import QtQuick 2.1
|
2023-11-02 11:08:17 +00:00
|
|
|
import org.kde.plasma.mm
|
2021-04-09 20:59:05 +00:00
|
|
|
|
|
|
|
|
QtObject {
|
2022-11-11 16:21:12 +00:00
|
|
|
readonly property string icon: "network-mobile-" + Math.floor(SignalIndicator.strength / 20) * 20
|
|
|
|
|
|
|
|
|
|
readonly property string label: SignalIndicator.simLocked ? i18n("SIM Locked") : SignalIndicator.name
|
2021-04-09 20:59:05 +00:00
|
|
|
|
2022-11-11 16:21:12 +00:00
|
|
|
readonly property bool showIndicator: SignalIndicator.modemAvailable
|
2021-04-09 20:59:05 +00:00
|
|
|
}
|
|
|
|
|
|