summaryrefslogtreecommitdiffstats
path: root/src/imports/pluginmain.cpp
diff options
context:
space:
mode:
authorGatis Paeglis <gatis.paeglis@qt.io>2016-12-20 11:42:45 +0100
committerGatis Paeglis <gatis.paeglis@qt.io>2016-12-21 11:35:41 +0000
commit1b30c228f653a712e884adcbb22750b5643c0452 (patch)
tree10c8a9c88b882e2d0b0299cb33868c4e4b8b3d90 /src/imports/pluginmain.cpp
parentffc7a483fba2b2e902550072780c87c6f066e947 (diff)
Remove impractical API from QOtaClient
These convenience methods do not provide any real convenience after all. This API is not practical and extenting it would be pain (each new json property would require a new accessor method for each *Metadata version). The reduced subset of API is still sufficient to be used in property bindings: Label { text: extractVersion(OtaClient.remoteMetadata, "version") } Label { text: extractVersion(OtaClient.remoteMetadata, "description") } Where extractVersion() parses JSON metadata. If the metadata file is huge (parsing takes long time), API users can subscribe to onRemoteMetadataChanage: onRemoteMetadataChanged: { // parse the whole metadata file only once and set // appropriate properties. } Change-Id: If095e8c17712fa7b06bd577364ec10ae6ca6d52e Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
Diffstat (limited to 'src/imports/pluginmain.cpp')
-rw-r--r--src/imports/pluginmain.cpp60
1 files changed, 0 insertions, 60 deletions
diff --git a/src/imports/pluginmain.cpp b/src/imports/pluginmain.cpp
index ab0f453..6112b3f 100644
--- a/src/imports/pluginmain.cpp
+++ b/src/imports/pluginmain.cpp
@@ -43,26 +43,6 @@ QT_BEGIN_NAMESPACE
*/
/*!
- \qmlproperty string OtaClient::bootedVersion
- \readonly
-
- This is a convenience property that holds a string containing the booted
- system's version.
-
- \sa bootedMetadata
-*/
-
-/*!
- \qmlproperty string OtaClient::bootedDescription
- \readonly
-
- This is a convenience property that holds a string containing the booted
- system's description.
-
- \sa bootedMetadata
-*/
-
-/*!
\qmlproperty string OtaClient::bootedRevision
\readonly
@@ -79,26 +59,6 @@ QT_BEGIN_NAMESPACE
*/
/*!
- \qmlproperty string OtaClient::remoteVersion
- \readonly
-
- This is a convenience property that holds a string containing the system's
- version on a server.
-
- \sa remoteMetadata
-*/
-
-/*!
- \qmlproperty string OtaClient::remoteDescription
- \readonly
-
- This is a convenience property that holds a string containing the system's
- description on a server.
-
- \sa remoteMetadata
-*/
-
-/*!
\qmlproperty string OtaClient::remoteRevision
\readonly
@@ -115,26 +75,6 @@ QT_BEGIN_NAMESPACE
*/
/*!
- \qmlproperty string OtaClient::rollbackVersion
- \readonly
-
- This is a convenience property that holds a string containing the rollback
- system's version.
-
- \sa rollbackMetadata
-*/
-
-/*!
- \qmlproperty string OtaClient::rollbackDescription
- \readonly
-
- This is a convenience property that holds a string containing the rollback
- system's description.
-
- \sa rollbackMetadata
-*/
-
-/*!
\qmlproperty string OtaClient::rollbackRevision
\readonly