Qt Mobility Reference Documentation

QLandmarkCategorySaveRequest Class Reference

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

 #include <QLandmarkCategorySaveRequest>

Inherits QLandmarkAbstractRequest.


Public Functions

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 )

Additional Inherited Members


Detailed Description

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()), 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 categories()).


Member Function Documentation

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

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

QLandmarkCategorySaveRequest::~QLandmarkCategorySaveRequest ()

Destroys the request object.

QList<QLandmarkCategory> QLandmarkCategorySaveRequest::categories () const

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

See also setCategories().

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

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

void QLandmarkCategorySaveRequest::setCategories ( const QList<QLandmarkCategory> & categories )

Sets the list of categories to be saved.

See also categories() and setCategory().

void QLandmarkCategorySaveRequest::setCategory ( const QLandmarkCategory & category )

Convenience function to set a single category to be saved.

See also setCategories().

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.