2021-12-27 11:04:10 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
QtObject {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
property var devicesModule
|
|
|
|
|
2023-03-14 02:52:16 +00:00
|
|
|
property var devicesModel: devicesModule ? devicesModule.model : null
|
2021-12-27 11:04:10 +00:00
|
|
|
|
|
|
|
// Module Properties
|
2023-03-14 02:52:16 +00:00
|
|
|
property bool isDeviceSetup: devicesModule ? devicesModule.isDeviceSetup : false
|
|
|
|
|
|
|
|
readonly property int localPairingState: devicesModule ? devicesModule.localPairingState : -1
|
|
|
|
readonly property string localPairingError: devicesModule ? devicesModule.localPairingError : ""
|
2023-04-29 10:33:08 +00:00
|
|
|
readonly property string localPairingInstallationId: devicesModule ? devicesModule.localPairingInstallationId : ""
|
|
|
|
readonly property string localPairingInstallationName: devicesModule ? devicesModule.localPairingInstallationName : ""
|
|
|
|
readonly property string localPairingInstallationDeviceType: devicesModule ? devicesModule.localPairingInstallationDeviceType : ""
|
2021-12-27 11:04:10 +00:00
|
|
|
|
2023-02-10 21:23:42 +00:00
|
|
|
function loadDevices() {
|
|
|
|
return root.devicesModule.loadDevices()
|
|
|
|
}
|
|
|
|
|
2023-03-22 23:21:44 +00:00
|
|
|
function setInstallationName(installationId, name) {
|
|
|
|
return root.devicesModule.setInstallationName(installationId, name)
|
2021-12-27 11:04:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function syncAll() {
|
|
|
|
root.devicesModule.syncAll()
|
|
|
|
}
|
|
|
|
|
|
|
|
function advertise() {
|
|
|
|
root.devicesModule.advertise()
|
|
|
|
}
|
|
|
|
|
|
|
|
function enableDevice(installationId, enable) {
|
|
|
|
root.devicesModule.enableDevice(installationId, enable)
|
|
|
|
}
|
2023-03-14 02:52:16 +00:00
|
|
|
|
2023-06-29 06:26:03 +00:00
|
|
|
function generateConnectionStringAndRunSetupSyncingPopup() {
|
|
|
|
root.devicesModule.generateConnectionStringAndRunSetupSyncingPopup()
|
2023-03-14 02:52:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function validateConnectionString(connectionString) {
|
|
|
|
return root.devicesModule.validateConnectionString(connectionString)
|
|
|
|
}
|
|
|
|
|
|
|
|
function inputConnectionStringForBootstrapping(connectionString) {
|
|
|
|
return root.devicesModule.inputConnectionStringForBootstrapping(connectionString)
|
|
|
|
}
|
2021-12-27 11:04:10 +00:00
|
|
|
}
|