From cccd8d6c20323686f95fcdb4f0bd0e3e27723bb9 Mon Sep 17 00:00:00 2001 From: Gatis Paeglis Date: Tue, 18 Oct 2016 17:33:51 +0200 Subject: example: adapt to use the renamed API Change-Id: I83f12bcdd18f13b025a8c4dd2898d8a368316e9e Reviewed-by: Gatis Paeglis --- examples/qml/basic/main.qml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/examples/qml/basic/main.qml b/examples/qml/basic/main.qml index 5e4825d..4749a67 100644 --- a/examples/qml/basic/main.qml +++ b/examples/qml/basic/main.qml @@ -57,15 +57,15 @@ Window { anchors.leftMargin: 10 anchors.topMargin: 10 - Label { text: "CLIENT:"; Layout.bottomMargin: 14 } - Label { text: "Version: " + OTAClient.clientVersion } - Label { text: "Description: " + OTAClient.clientDescription } - Label { text: "Revision: " + OTAClient.clientRevision } + Label { text: "BOOTED:"; Layout.bottomMargin: 14 } + Label { text: "Version: " + OTAClient.bootedVersion } + Label { text: "Description: " + OTAClient.bootedDescription } + Label { text: "Revision: " + OTAClient.bootedRevision } - Label { text: "SERVER:"; Layout.bottomMargin: 14; Layout.topMargin: 14 } - Label { text: "Version: " + OTAClient.serverVersion } - Label { text: "Description: " + OTAClient.serverDescription } - Label { text: "Revision: " + OTAClient.serverRevision } + Label { text: "REMOTE:"; Layout.bottomMargin: 14; Layout.topMargin: 14 } + Label { text: "Version: " + OTAClient.remoteVersion } + Label { text: "Description: " + OTAClient.remoteDescription } + Label { text: "Revision: " + OTAClient.remoteRevision } Label { text: "ROLLBACK:"; Layout.bottomMargin: 14; Layout.topMargin: 14 } Label { text: "Version: " + OTAClient.rollbackVersion } @@ -82,7 +82,7 @@ Window { if (!otaReady()) return; log("Fetcing OTA info...") - OTAClient.fetchServerInfo() + OTAClient.fetchRemoteInfo() } } Button { @@ -138,8 +138,8 @@ Window { onErrorChanged: log(error) onStatusChanged: log(status) onInitializationFinished: log("Initialization " + (OTAClient.initialized ? "finished" : "failed")) - onFetchServerInfoFinished: { - log("FetchServerInfo " + (success ? "finished" : "failed")) + onFetchRemoteInfoFinished: { + log("Fetching info from a remote server " + (success ? "finished" : "failed")) if (success) log("Update available: " + OTAClient.updateAvailable) } -- cgit v1.2.3