diff options
author | Gatis Paeglis <gatis.paeglis@qt.io> | 2016-07-19 15:21:13 +0200 |
---|---|---|
committer | Gatis Paeglis <gatis.paeglis@qt.io> | 2016-11-29 14:32:30 +0000 |
commit | 172f21794850988c6c81683f73c641cf73ef55ca (patch) | |
tree | 9d62c9a02267cd2123ecb830569c05005721e3ae /examples | |
parent | 437f93cadf6839fdfcf4067388c48c4a3e0a6e9f (diff) |
Add support for self-contained update packages
Task-number: QTBUG-54500
Change-Id: Ia735e85c0c92cbbebd0098b9021ff7d04b3e246b
Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/qml/basic/main.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/qml/basic/main.qml b/examples/qml/basic/main.qml index 85a9085..49a62c6 100644 --- a/examples/qml/basic/main.qml +++ b/examples/qml/basic/main.qml @@ -170,6 +170,14 @@ Window { } } Button { + text: "Apply Package" + onClicked: { + if (!otaReady()) + return; + OtaClient.applyOffline("/var/superblock") + } + } + Button { visible: OtaClient.rollbackAvailable text: "Rollback" onClicked: { @@ -255,6 +263,7 @@ Window { if (success) log("Update available: " + OtaClient.updateAvailable) } + onApplyOfflineFinished: logWithCondition("Offline package apply", success) onRollbackFinished: logWithCondition("Rollback", success) onUpdateFinished: logWithCondition("Update", success) onRepositoryConfigChanged: updateConfigView(config) |