The QLandmarkFetchRequest class allows a client to asynchronously request a list of landmarks from a landmark manager. More...
#include <QLandmarkFetchRequest>
Inherits: QLandmarkAbstractRequest.
This class was introduced in Qt Mobility 1.1.
QLandmarkFetchRequest ( QLandmarkManager * manager, QObject * parent = 0 ) | |
~QLandmarkFetchRequest () | |
QLandmarkFilter | filter () const |
QList<QLandmark> | landmarks () const |
int | limit () const |
int | offset () const |
void | setFilter ( const QLandmarkFilter & filter ) |
void | setLimit ( int limit ) |
void | setOffset ( int offset ) |
void | setSorting ( const QList<QLandmarkSortOrder> & sorting ) |
void | setSorting ( const QLandmarkSortOrder & sorting ) |
QList<QLandmarkSortOrder> | sorting () const |
The QLandmarkFetchRequest class allows a client to asynchronously request a list of landmarks from a landmark manager.
For a QLandmarkFetchRequest, the resultsAvailable() signal will be emitted when the resultant landmarks (which may be retrieved by calling landmarks()) are updated, as well as if the overall operation error (which may be retrieved by calling error()) is updated.
Please see the class documentation for QLandmarkAbstractRequest for more information about the usage of request classes and ownership semantics.
Creates a new landmark fetch request object with the given manager parent.
Destroys the request object.
Returns the filter which will be used to select the landmarks.
By default, the filter's type will be a QLandmarkFilter::DefaultFilter and thus match all landmarks.
This function was introduced in Qt Mobility 1.1.
See also setFilter().
Returns the list of landmarks which matched the filter.
This function was introduced in Qt Mobility 1.1.
Returns the maximum number of landmarks to be returned. By default the limit is -1 indicating that all landmarks matching the filter sould be retrieved.
This function was introduced in Qt Mobility 1.1.
See also setLimit().
Returns the index offset for the request. By default the offset is set to 0. The offset determines the first index which is retrieved, it is generally used in conjunction with limit() to facilitate paging.
For example, if there are 10 landmarks in the landmark store, setting the offset to 2 and limit to 5 will retrieve the 3rd to 7th landmarks inclusively. (The order of the landmarks is specified by the sorting field).
This function was introduced in Qt Mobility 1.1.
See also setOffset().
Sets the filter which will be used to select landmarks.
This function was introduced in Qt Mobility 1.1.
See also filter().
Sets the maximum number of landmarks to be returned to limit.
A limit of -1 will retrieve all landmarks that match the filter.
(A limit of 0 will retrieve no landmarks.)
This function was introduced in Qt Mobility 1.1.
See also limit().
Sets the index offset for the request.
This function was introduced in Qt Mobility 1.1.
See also offset().
Sets the sort ordering of the request to sorting. This function will only have an effect on the results if invoked prior to calling QLandmarkAbstractRequest::start().
This function was introduced in Qt Mobility 1.1.
See also sorting().
Convenience function which sets the sort ordering of the request to a single sorting. This function will only have an effect on results if invoked prior to calling QLandmarkAbstractRequest::start().
This function was introduced in Qt Mobility 1.1.
Returns the sort ordering which is used to sort the result. By default the sort order list is empty, thus no sorting will take place.
This function was introduced in Qt Mobility 1.1.
See also setSorting().
© 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.