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  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QPlaceIdReply Class

The QPlaceIdReply class manages operations which return an identifier such as saving and removal operations of places and categories. More...

 #include <QPlaceIdReply>

Inherits: QPlaceReply.

This class was introduced in Qt Location 5.0.

Public Types

enum OperationType { SavePlace, RemovePlace, SaveCategory, RemoveCategory }

Public Functions

QPlaceIdReply(OperationType operationType, QObject * parent = 0)
virtual ~QPlaceIdReply()
QString id() const
OperationType operationType() const

Reimplemented Public Functions

virtual QPlaceReply::Type type() const
  • 4 public functions inherited from QPlaceReply
  • 31 public functions inherited from QObject

Protected Functions

void setId(const QString & identifier)
  • 2 protected functions inherited from QPlaceReply
  • 9 protected functions inherited from QObject

Additional Inherited Members

Detailed Description

The QPlaceIdReply class manages operations which return an identifier such as saving and removal operations of places and categories.

The QPlaceIdReply can be considered a multipurpose reply in that it can be used to save places, save categories, remove places and remove categories. In each case it returns an identifier of the place or category that was added, modified or removed.

See Saving a place for an example of how to use an identifier reply.

See also QPlaceManager.

Member Type Documentation

enum QPlaceIdReply::OperationType

Defines the type of operation that was used to generate this reply.

ConstantValueDescription
QPlaceIdReply::SavePlace0The reply was created for a save place operation
QPlaceIdReply::RemovePlace2The reply was created for a remove place operation.
QPlaceIdReply::SaveCategory1The reply was created for a save category operation
QPlaceIdReply::RemoveCategory3The reply was created for a remove category operation.

Member Function Documentation

QPlaceIdReply::QPlaceIdReply(OperationType operationType, QObject * parent = 0)

Constructs a reply which contains the identifier of the object operated upon. The reply is for the given operationType and with parent.

QPlaceIdReply::~QPlaceIdReply() [virtual]

Destroys the reply.

QString QPlaceIdReply::id() const

Returns the relevant identifier for the operation. For example for a save place operation, the identifier is that of the saved place. For a category removal operation, it is the identifier of the category that was removed.

See also setId().

OperationType QPlaceIdReply::operationType() const

Returns the operation type of the reply. This means whether this identifier reply was for a save place operation, remove category operation and so on.

void QPlaceIdReply::setId(const QString & identifier) [protected]

Sets the identifier of the reply.

See also id().

QPlaceReply::Type QPlaceIdReply::type() const [virtual]

Reimplemented from QPlaceReply::type().

Returns the type of reply.

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 5.0-snapshot
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