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  · 

QPlaceSupplier Class

The QPlaceSupplier class represents a supplier of a place or content associated with a place. More...

 #include <QPlaceSupplier>

This class was introduced in Qt Location 5.0.

Public Functions

QPlaceSupplier()
QPlaceSupplier(const QPlaceSupplier & other)
~QPlaceSupplier()
QPlaceIcon icon() const
bool isEmpty() const
QString name() const
void setIcon(const QPlaceIcon & icon)
void setName(const QString & name)
void setSupplierId(const QString & identifier)
void setUrl(const QUrl & url)
QString supplierId() const
QUrl url() const
bool operator!=(const QPlaceSupplier & other) const
QPlaceSupplier & operator=(const QPlaceSupplier & other)
bool operator==(const QPlaceSupplier & other) const

Detailed Description

The QPlaceSupplier class represents a supplier of a place or content associated with a place.

Each instance represents a set of data about a supplier, which can include supplier's name, url and icon. The supplier is typically a business or organization.

Note: The Places API only supports suppliers as 'retrieve-only' objects. Submitting suppliers to a provider is not a supported use case.

Member Function Documentation

QPlaceSupplier::QPlaceSupplier()

Constructs a new supplier object.

QPlaceSupplier::QPlaceSupplier(const QPlaceSupplier & other)

Constructs a copy of other.

QPlaceSupplier::~QPlaceSupplier()

Destroys the supplier object.

QPlaceIcon QPlaceSupplier::icon() const

Returns the icon of the supplier.

See also setIcon().

bool QPlaceSupplier::isEmpty() const

Returns true if all fields of the place supplier are 0; otherwise returns false.

QString QPlaceSupplier::name() const

Returns the name of the supplier which can be displayed to the user.

The name can potentially be localized. The language is dependent on the entity that sets it, typically this is the QPlaceManager. The QPlaceManager::locales() field defines what language is used.

See also setName().

void QPlaceSupplier::setIcon(const QPlaceIcon & icon)

Sets the icon of the supplier.

See also icon().

void QPlaceSupplier::setName(const QString & name)

Sets the name of the supplier.

See also name().

void QPlaceSupplier::setSupplierId(const QString & identifier)

Sets the identifier of the supplier.

See also supplierId().

void QPlaceSupplier::setUrl(const QUrl & url)

Sets the url of the supplier's website.

See also url().

QString QPlaceSupplier::supplierId() const

Returns the identifier of the supplier. The identifier is unique to the manager backend which provided the supplier and is generally not suitable for displaying to the user.

See also setSupplierId().

QUrl QPlaceSupplier::url() const

Returns the URL of the supplier's website.

See also setUrl().

bool QPlaceSupplier::operator!=(const QPlaceSupplier & other) const

Returns true if this supplier is not equal to other, otherwise returns false.

QPlaceSupplier & QPlaceSupplier::operator=(const QPlaceSupplier & other)

Assigns other to this supplier and returns a reference to this supplier.

bool QPlaceSupplier::operator==(const QPlaceSupplier & other) const

Returns true if this supplier is equal to other, otherwise returns false.

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