QPlaceSupplier Class▲
-
Header: QPlaceSupplier
-
Since: Qt 5.6
-
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.
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▲
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▲
See also setName()
void QPlaceSupplier::setIcon(const QPlaceIcon &icon)▲
void QPlaceSupplier::setName(const QString &name)▲
void QPlaceSupplier::setSupplierId(const QString &identifier)▲
void QPlaceSupplier::setUrl(const QUrl &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▲
See also setSupplierId()
QUrl QPlaceSupplier::url() const▲
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.