The QValueSpaceSubscriber class allows applications to read and subscribe to Value Space paths. More...
This element was introduced in Mobility 1.2.
The ValueSpaceSubscriber element is part of the QtMobility.publishsubscribe 1.1 module.
Each ValueSpaceSubscriber element represents a single value or path in the Value Space. The path is set using the path property.
Note that unlike the C++ class QValueSpaceSubscriber, the QML element has no default path. A path must be set before the subscriber will connect to the Value Space and begin receiving notifications.
ValueSpaceSubscriber {
id: nowPlaying
path: "/applications/mediaplayer/now-playing"
}
The value is accessed using the value property.
Text {
text: nowPlaying.value
}
read-onlyconnected : bool |
This property holds whether the subscriber is currently connected to the backing store of the Value Space.
This property group was introduced in Mobility 1.2.
path : string |
This property holds the base path of the subscriber, and is read/write.
This property group was introduced in Mobility 1.2.
read-onlysubPaths : QStringList |
This property holds a list of known sub-paths of the currently set path.
This property group was introduced in Mobility 1.2.
read-onlyvalue : QVariant |
This property holds the value of the key at the set path in the Value Space. Read-only.
This property group was introduced in Mobility 1.2.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.