IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QPlaceSupplier Class

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

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QPlaceSupplier Class

  • Header: QPlaceSupplier

  • qmake: QT += location

  • Group: QPlaceSupplier is part of QtLocation-places, QtLocation-places-data

Detailed Description

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.

Property Documentation

 

icon : QPlaceIcon

This property holds the icon of the supplier.

Access functions:

  • icon() const

  • void setIcon(const &icon)

name : QString

This property holds 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.

Access functions:

  • name() const

  • void setName(const &name)

supplierId : QString

This property holds 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.

Access functions:

url : QUrl

This property holds the URL of the supplier's website.

Access functions:

  • url() const

  • void setUrl(const &url)

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.

bool QPlaceSupplier::isEmpty() const

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

void QPlaceSupplier::setIcon(const QPlaceIcon &icon)

Sets the icon of the supplier.

Setter function for property icon.

See Also

See also icon()

void QPlaceSupplier::setName(const QString &name)

Sets the name of the supplier.

Setter function for property name.

See Also

See also name()

void QPlaceSupplier::setSupplierId(const QString &identifier)

Sets the identifier of the supplier.

Setter function for property supplierId.

See Also

See also supplierId()

void QPlaceSupplier::setUrl(const QUrl &url)

Sets the url of the supplier's website.

Setter function for property url.

See Also

See also url()

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

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

Related Non-Members

 

bool operator!=(const QPlaceSupplier &lhs, const QPlaceSupplier &rhs)

Returns true if lhs is not equal to rhs, otherwise returns false.

bool operator==(const QPlaceSupplier &lhs, const QPlaceSupplier &rhs)

Returns true if lhs is equal to rhs, otherwise returns false.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+