QPlaceSupplier Class

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

頭: #include <QPlaceSupplier>
qmake: QT += location

特性

公共函數

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
QPlaceSupplier & operator= (const QPlaceSupplier & other )
bool operator!= (const QPlaceSupplier & lhs , const QPlaceSupplier & rhs )
bool operator== (const QPlaceSupplier & lhs , const QPlaceSupplier & rhs )

詳細描述

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.

特性文檔編製

icon : QPlaceIcon

This property holds the icon of the supplier.

訪問函數:

QPlaceIcon icon () const
void setIcon (const QPlaceIcon & 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 QPlaceManager::locales () field defines what language is used.

訪問函數:

QString name () const
void setName (const QString & 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.

訪問函數:

QString supplierId () const
void setSupplierId (const QString & identifier )

url : QUrl

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

訪問函數:

QUrl url () const
void setUrl (const QUrl & url )

成員函數文檔編製

QPlaceSupplier:: QPlaceSupplier ()

Constructs a new supplier object.

QPlaceSupplier:: QPlaceSupplier (const QPlaceSupplier & other )

構造副本為 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 )

設置 icon of the supplier.

注意: setter 函數對於特性 icon .

另請參閱 icon ().

void QPlaceSupplier:: setName (const QString & name )

設置 name of the supplier.

注意: setter 函數對於特性 name .

另請參閱 name ().

void QPlaceSupplier:: setSupplierId (const QString & identifier )

設置 identifier of the supplier.

注意: setter 函數對於特性 supplierId .

另請參閱 supplierId ().

void QPlaceSupplier:: setUrl (const QUrl & url )

設置 url of the supplier's website.

注意: setter 函數對於特性 url .

另請參閱 url ().

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

賦值 other to this supplier and returns a reference to this supplier.

相關非成員

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

返迴 true 若 lhs 不等於 rhs ,否則返迴 false。

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

返迴 true 若 lhs 等於 rhs ,否則返迴 false。