The LandmarkAbstractModel element is an uncreatable / uninstantiable base element for LandmarkModel and LandmarkCategoryModel. It defines many common properties for the two models. More...
Inherited by LandmarkCategoryModel and LandmarkModel.
This element was introduced in Mobility 1.2.
The LandmarkAbstractModel element is an uncreatable / uninstantiable base element for LandmarkModel and LandmarkCategoryModel. It defines many common properties for the two models.
This element is part of the QtMobility.location 1.1 module.
See also LandmarkModel and LandmarkCategoryModel.
autoUpdate : bool |
Controls whether the model data should be automatically updated when appropriate events occur: limit changes, offset changes, filter changes, filter contents change, or sorting rules change. Property also controls whether the data is updated automatically once model instantiation is completed.
Note: while autoUpdate adds to development comfort, each change in appropriate parameters cause full fetch from underlying database and therefore its use should be thought through. E.g. if your application inherently behaves such that filters, their contents, and underlying database change very frequently, it may be wiser to bind a manual update call to a less hectic trigger source.
This property group was introduced in Mobility 1.2.
read-onlycount : int |
Indicates the number of items currently in the model (landmarks/categories).
This property group was introduced in Mobility 1.2.
read-onlyerror : string |
Human readable string of the last error that occurred (read-only).
This property group was introduced in Mobility 1.2.
limit : int |
Sets the maximum amount of items held by the model.
This property group was introduced in Mobility 1.2.
offset : int |
Sets the offset for the landmarks. For example if one creates a tabbed / paged application, the offset could be changed dynamically by a multiple of items per page.
This property group was introduced in Mobility 1.2.
sortBy : enumeration |
Specifies the role to sort the items by.
Note: both sortBy and sortOrder incur performance costs. If the order is not important (e.g. when displaying landmarks as Map objects) it is advisable not to set them.
This property group was introduced in Mobility 1.2.
sortOrder : enumeration |
Specifies the sort order.
Note: both sortBy and sortOrder incur performance costs. If the order is not important (e.g. when displaying landmarks as Map objects) it is advisable not to set them.
This property group was introduced in Mobility 1.2.
This handler is called when the data in the underlying data storage has changed. If autoUpdate is true, model data will be updated shortly afterwards.
This documentation was introduced in Mobility 1.2.
This handler is called when the model data has changed.
This documentation was introduced in Mobility 1.2.
Updates the items represented by the model from the underlying store.
This documentation was introduced in Mobility 1.2.
See also autoUpdate.
© 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.