Qt Mobility Reference Documentation

QLandmarkCategoryFetchRequest Class Reference

The QLandmarkCategoryFetchRequest class allows a client to asynchronously request a list of categories from a landmark manager. More...

 #include <QLandmarkCategoryFetchRequest>

Inherits QLandmarkAbstractRequest.


Public Functions

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

Additional Inherited Members


Detailed Description

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 by calling categories()), as well as if an overall operation error occurred(which may be retrieved by calling QLandmarkAbstractRequest::error()).

Please see the class documentation for QLandmarkAbstractRequest for more information about the usage of request classes and ownership semantics.


Member Function Documentation

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

Creates a new category fetch request object with the given manager and parent.

QLandmarkCategoryFetchRequest::~QLandmarkCategoryFetchRequest ()

Destroys the request object.

QList<QLandmarkCategory> QLandmarkCategoryFetchRequest::categories () const

Returns the list of categories that have been found during the request.

int QLandmarkCategoryFetchRequest::limit () const

Returns the maximum number of categories to be returned. By default the limit is -1 indicating that all categories should be retrieved.

See also setLimit().

int QLandmarkCategoryFetchRequest::offset () const

Returns the index offset for the request. By default the offset is 0.

See also setOffset().

void QLandmarkCategoryFetchRequest::setLimit ( int limit )

Sets the maximum number of categories to be returned to limit. A limit of -1 will retrieve all categories.

(A limit of 0 will retrieve no categories.)

See also limit().

void QLandmarkCategoryFetchRequest::setOffset ( int offset )

Sets the index offset for the request.

See also offset().

void QLandmarkCategoryFetchRequest::setSorting ( const QLandmarkNameSort & nameSort )

Sets nameSort to specify the sorting of the returned categories.

See also sorting().

QLandmarkNameSort QLandmarkCategoryFetchRequest::sorting () const

Returns the sorting of the categories. By default the sorting is case insensitive and in ascending order according to the category name.

See also setSorting().

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.