Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

QLandmarkCategoryIdFetchRequest Class Reference

The QLandmarkCategoryIdFetchRequest class allows a client to asynchronously request a list of category identifiers from a landmark manager. More...

 #include <QLandmarkCategoryIdFetchRequest>

Inherits QLandmarkAbstractRequest.

Public Functions

QLandmarkCategoryIdFetchRequest ( QLandmarkManager * manager, QObject * parent = 0 )
~QLandmarkCategoryIdFetchRequest ()
QList<QLandmarkCategoryId> categoryIds () 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 QLandmarkCategoryIdFetchRequest class allows a client to asynchronously request a list of category identifiers from a landmark manager.

For a QLandmarkCategoryIdFetchRequest, the resultsAvailable() signal will be emitted as resultant category identifiers are found (these are retrievable by calling categoryIds()), 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

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

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

QLandmarkCategoryIdFetchRequest::~QLandmarkCategoryIdFetchRequest ()

Destroys the request object.

QList<QLandmarkCategoryId> QLandmarkCategoryIdFetchRequest::categoryIds () const

Returns the list of category identifiers that have been found during the request.

int QLandmarkCategoryIdFetchRequest::limit () const

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

See also setLimit().

int QLandmarkCategoryIdFetchRequest::offset () const

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 categories in the landmark store, setting the offset to 2 and limit to 5 will retrieve the 3rd to 7th category ids inclusively. (The order of category ids is specified by the sorting field).

See also setOffset().

void QLandmarkCategoryIdFetchRequest::setLimit ( int limit )

Sets the maximum number of category IDs to be returned to limit.

A limit of -1 indicates that IDs of all categories are to be retrieved.

(A limit of 0 will retrieve no categories.)

See also limit().

void QLandmarkCategoryIdFetchRequest::setOffset ( int offset )

Sets the index offset for the request.

See also offset().

void QLandmarkCategoryIdFetchRequest::setSorting ( const QLandmarkNameSort & nameSort )

Sets nameSort to specify the sorting of the returned category ids.

See also sorting().

QLandmarkNameSort QLandmarkCategoryIdFetchRequest::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.

[0]; s.parentNode.insertBefore(ga, s); })();
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt qtmobility-1.1
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web