Qt Mobility Reference Documentation

QLandmarkSaveRequest Class Reference

The QLandmarkSaveRequest class allows a client to asynchronously request that certain landmarks be saved by a landmark manager. More...

 #include <QLandmarkSaveRequest>

Inherits QLandmarkAbstractRequest.


Public Functions

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 )

Additional Inherited Members


Detailed Description

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()), an overall operation error occurs(which may be retrieved by calling error()), or when individual items have been saved (which may be retrieved by calling landmarks()).


Member Function Documentation

QLandmarkSaveRequest::QLandmarkSaveRequest ( QLandmarkManager * manager, QObject * parent = 0 )

Constructs a landmark save request with the given manager and parent.

QLandmarkSaveRequest::~QLandmarkSaveRequest ()

Destroys the request object.

QMap<int, QLandmarkManager::Error> QLandmarkSaveRequest::errorMap () const

Returns the mapping of input landmark list indices to errors which occurred.

QList<QLandmark> QLandmarkSaveRequest::landmarks () const

Returns the list of landmarks which will be saved if called prior to callling QLandmarkAbstractRequest::start(), otherwise returns the list of landmarks as they were saved into the landmark manager.

See also setLandmarks().

void QLandmarkSaveRequest::setLandmark ( const QLandmark & landmark )

Convenience function to set a single landmark to be saved.

See also setLandmarks().

void QLandmarkSaveRequest::setLandmarks ( const QList<QLandmark> & landmarks )

Sets the list of landmarks to be saved.

See also landmarks() and setLandmark().


Copyright © 2009-2010 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt Mobility Project 1.1.0