The QLandmarkCategorySaveRequest class allows a client to asynchronously request that certain categories be saved by a landmark manager. More...
#include <QLandmarkCategorySaveRequest>
Inherits: QLandmarkAbstractRequest.
This class was introduced in Qt Mobility 1.1.
QLandmarkCategorySaveRequest ( QLandmarkManager * manager, QObject * parent = 0 ) | |
~QLandmarkCategorySaveRequest () | |
QList<QLandmarkCategory> | categories () const |
QMap<int, QLandmarkManager::Error> | errorMap () const |
void | setCategories ( const QList<QLandmarkCategory> & categories ) |
void | setCategory ( const QLandmarkCategory & category ) |
The QLandmarkCategorySaveRequest class allows a client to asynchronously request that certain categories be saved by a landmark manager.
For a QLandmarkCategorySaveRequest, the resultsAvailable() signal will be emitted when either an individual items error out (individaul errors may be retrieved by calling errorMap()), or an overall operation error occurs(which may be retrieved by calling error()).
Please see the class documentation for QLandmarkAbstractRequest for more information about the usage of request classes and ownership semantics.
Constructs a category save request with the given manager and parent.
Destroys the request object.
Returns the list of categories to be saved. If called after the save operation has finished, any new categories saved will have had their QLandmarkCategoryId set. (Categories which were updated or failed to save will remain unchanged, use the errorMap() function to determine which particular categories failed to save.)
This function was introduced in Qt Mobility 1.1.
See also setCategories().
Returns the mapping of the input category list indices to the errors which occurred.
This function was introduced in Qt Mobility 1.1.
Sets the list of categories to be saved.
This function was introduced in Qt Mobility 1.1.
See also categories() and setCategory().
Convenience function to set a single category to be saved. This function is the equivalent of calling setCategories() with a single category.
This function was introduced in Qt Mobility 1.1.
See also setCategories().
© 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.