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  · 

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()), or an overall operation error occurs(which may be retrieved by calling error()).

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

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 to be saved. If called after the save operation has finished, any new categories saved will have had their QLandmarkCategoryId set. (Categories which were updated or failed to save will remain unchanged, use the errorMap() function to determine which particular categories failed to save.)

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. This function is the equivalent of calling setCategories() with a single category.

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.

[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