QPlaceSupplier Class▲
-
Header: QPlaceSupplier
-
qmake: QT += location
-
Group: QPlaceSupplier is part of QtLocation-places, QtLocation-places-data
I. 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.
II. Property Documentation▲
II-1. icon : QPlaceIcon▲
This property holds the icon of the supplier.
Access functions:
-
icon() const
-
void setIcon(const &icon)
II-2. 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)
II-3. 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:
-
supplierId() const
-
void setSupplierId(const &identifier)
II-4. url : QUrl▲
This property holds the URL of the supplier's website.
Access functions:
-
url() const
-
void setUrl(const &url)
III. Member Function Documentation▲
III-1. QPlaceSupplier::QPlaceSupplier()▲
Constructs a new supplier object.
III-2. QPlaceSupplier::QPlaceSupplier(const QPlaceSupplier &other)▲
Constructs a copy of other.
III-3. QPlaceSupplier::~QPlaceSupplier()▲
Destroys the supplier object.
III-4. bool QPlaceSupplier::isEmpty() const▲
Returns true if all fields of the place supplier are 0; otherwise returns false.
III-5. void QPlaceSupplier::setIcon(const QPlaceIcon &icon)▲
Sets the icon of the supplier.
Setter function for property icon.
III-5-1. See Also▲
See also icon()
III-6. void QPlaceSupplier::setName(const QString &name)▲
Sets the name of the supplier.
Setter function for property name.
III-6-1. See Also▲
See also name()
III-7. void QPlaceSupplier::setSupplierId(const QString &identifier)▲
Sets the identifier of the supplier.
Setter function for property supplierId.
III-7-1. See Also▲
See also supplierId()
III-8. void QPlaceSupplier::setUrl(const QUrl &url)▲
Sets the url of the supplier's website.
Setter function for property url.
III-8-1. See Also▲
See also url()
III-9. QPlaceSupplier &QPlaceSupplier::operator=(const QPlaceSupplier &other)▲
Assigns other to this supplier and returns a reference to this supplier.