kdeconnect-kde/plasmoid/package/contents/ui/SMS.qml

30 lines
779 B
QML
Raw Normal View History

2019-07-21 19:12:29 +01:00
/**
* SPDX-FileCopyrightText: 2019 Aleix Pol Gonzalez <aleixpol@kde.org>
2024-06-30 23:03:57 +01:00
* SPDX-FileCopyrightText: 2024 ivan tkachenko <me@ratijas.tk>
2019-07-21 19:12:29 +01:00
*
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
2019-07-21 19:12:29 +01:00
*/
2024-06-30 23:03:57 +01:00
pragma ComponentBehavior: Bound
import QtQuick
2019-07-21 19:12:29 +01:00
2024-06-30 23:03:57 +01:00
import org.kde.kdeconnect as KDEConnect
2019-07-21 19:12:29 +01:00
2024-06-30 23:03:57 +01:00
QtObject {
2019-07-21 19:12:29 +01:00
id: root
2024-06-30 23:03:57 +01:00
required property KDEConnect.DeviceDbusInterface device
2019-07-21 19:12:29 +01:00
readonly property alias available: checker.available
2024-06-30 23:03:57 +01:00
readonly property KDEConnect.PluginChecker pluginChecker: KDEConnect.PluginChecker {
2019-07-21 19:12:29 +01:00
id: checker
pluginName: "sms"
2024-06-30 23:03:57 +01:00
device: root.device
2019-07-21 19:12:29 +01:00
}
2024-06-30 23:03:57 +01:00
readonly property KDEConnect.SmsDbusInterface plugin:
available ? KDEConnect.SmsDbusInterfaceFactory.create(device.id()) : null
2019-07-21 19:12:29 +01:00
}