The QLandmarkCategoryFetchRequest class allows a client to asynchronously request a list of categories from a landmark manager. More...
#include <QLandmarkCategoryFetchRequest>
Inherits QLandmarkAbstractRequest.
QLandmarkCategoryFetchRequest ( QLandmarkManager * manager, QObject * parent = 0 ) | |
~QLandmarkCategoryFetchRequest () | |
QList<QLandmarkCategory> | categories () const |
int | limit () const |
int | offset () const |
void | setLimit ( int limit ) |
void | setOffset ( int offset ) |
void | setSorting ( const QLandmarkNameSort & nameSort ) |
QLandmarkNameSort | sorting () const |
The QLandmarkCategoryFetchRequest class allows a client to asynchronously request a list of categories from a landmark manager.
For a QLandmarkCategoryFetchRequest, the resultsAvailable() signal will be emitted as resultant categories are found (these are retrievable via the callings categories()), as well as if an overall operation error occurred(which may be retrieved by calling QLandmarkAbstractRequest::error()).
Creates a new category fetch request object with the given manager and parent.
Destroys the request object.
Returns the list of categories that have been found during the request.
Returns the maximum number of categories to be returned. If category ids have been assigned to this fetch request, the limit has no effect.
See also setLimit().
Returns the index offset for the request. If category ids have been assigned to this fetch request then offset has no effect.
See also setOffset().
Sets the maximum number of categories to be returned to limit.
See also limit().
Sets the index offset for the request.
See also offset().
Sets nameSort to specify the sorting of the returned categories.
See also sorting().
Returns the sorting of the categories. By default the sorting is case insensitive and in ascending order according to the category name.
The sorting only takes effect when all categories are to be retrieved. (i.e. no category ids are assigned to the fetch request). If a particular set of categories are to be retrieved then the sorting is ignored.
See also setSorting().