The QLandmarkSaveRequest class allows a client to asynchronously request that certain landmarks be saved by a landmark manager. More...
#include <QLandmarkSaveRequest>
Inherits QLandmarkAbstractRequest.
QLandmarkSaveRequest ( QLandmarkManager * manager, QObject * parent = 0 ) | |
~QLandmarkSaveRequest () | |
QMap<int, QLandmarkManager::Error> | errorMap () const |
QList<QLandmark> | landmarks () const |
void | setLandmark ( const QLandmark & landmark ) |
void | setLandmarks ( const QList<QLandmark> & landmarks ) |
The QLandmarkSaveRequest class allows a client to asynchronously request that certain landmarks be saved by a landmark manager.
For a QLandmarkSaveRequest, the resultsAvailable() signal will be emitted when either an individual items error out (individaul errors may be retrieved by calling errorMap()), or when 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 landmark save request with the given manager and parent.
Destroys the request object.
Returns the mapping of input landmark list indices to errors which occurred.
Returns the list of landmarks to be saved. If called after the save operation has finished, any new landmarks will have had their QLandmarkId set. (Landmarks which were updated or failed to save will remain unchanged, use the errorMap() function to determine which particular landmarks failed to save.)
See also setLandmarks().
Convenience function to set a single landmark to be saved. This function is the equivalent of calling setLandmarks() with a single landmark.
See also setLandmarks().
Sets the list of landmarks to be saved.
See also landmarks() and setLandmark().