Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QPlaceSupplier Class Reference

\inmodule QtLocation More...

#include <qplacesupplier.h>

+ Collaboration diagram for QPlaceSupplier:

Public Member Functions

 QPlaceSupplier ()
 \qmlvaluetype supplier \inqmlmodule QtLocation
 
 QPlaceSupplier (const QPlaceSupplier &other) noexcept
 Constructs a copy of other.
 
 QPlaceSupplier (QPlaceSupplier &&other) noexcept=default
 
 ~QPlaceSupplier ()
 Destroys the supplier object.
 
QPlaceSupplieroperator= (const QPlaceSupplier &other) noexcept
 Assigns other to this supplier and returns a reference to this supplier.
 
void swap (QPlaceSupplier &other) noexcept
 
QString name () const
 
void setName (const QString &data)
 Sets the name of the supplier.
 
QString supplierId () const
 
void setSupplierId (const QString &identifier)
 Sets the identifier of the supplier.
 
QUrl url () const
 
void setUrl (const QUrl &data)
 Sets the url of the supplier's website.
 
QPlaceIcon icon () const
 
void setIcon (const QPlaceIcon &icon)
 Sets the icon of the supplier.
 
bool isEmpty () const
 Returns true if all fields of the place supplier are 0; otherwise returns false.
 

Properties

QML_STRUCTURED_VALUEQString name
 \qmlproperty string Supplier::name
 
QString supplierId
 \qmlproperty string Supplier::supplierId
 
QUrl url
 \qmlproperty url Supplier::url
 
QPlaceIcon icon
 \qmlproperty PlaceIcon Supplier::icon
 

Friends

bool operator== (const QPlaceSupplier &lhs, const QPlaceSupplier &rhs) noexcept
 Returns true if lhs is equal to rhs, otherwise returns false.
 
bool operator!= (const QPlaceSupplier &lhs, const QPlaceSupplier &rhs) noexcept
 Returns true if lhs is not equal to rhs, otherwise returns false.
 

Detailed Description

\inmodule QtLocation

Since
5.6

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.

Definition at line 19 of file qplacesupplier.h.

Constructor & Destructor Documentation

◆ QPlaceSupplier() [1/3]

QPlaceSupplier::QPlaceSupplier ( )

\qmlvaluetype supplier \inqmlmodule QtLocation

Since
QtLocation 5.5

Holds data regarding the supplier of a place, a place's image, review, or editorial.

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.

Definition at line 77 of file qplacesupplier.cpp.

◆ QPlaceSupplier() [2/3]

QPlaceSupplier::QPlaceSupplier ( const QPlaceSupplier & other)
defaultnoexcept

Constructs a copy of other.

◆ QPlaceSupplier() [3/3]

QPlaceSupplier::QPlaceSupplier ( QPlaceSupplier && other)
defaultnoexcept

◆ ~QPlaceSupplier()

QPlaceSupplier::~QPlaceSupplier ( )
default

Destroys the supplier object.

Member Function Documentation

◆ icon()

QPlaceIcon QPlaceSupplier::icon ( ) const

Definition at line 215 of file qplacesupplier.cpp.

References QPlaceSupplierPrivate::icon.

◆ isEmpty()

bool QPlaceSupplier::isEmpty ( ) const

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

Definition at line 231 of file qplacesupplier.cpp.

References QPlaceSupplierPrivate::isEmpty().

+ Here is the call graph for this function:

◆ name()

QString QPlaceSupplier::name ( ) const

Definition at line 141 of file qplacesupplier.cpp.

References QPlaceSupplierPrivate::name.

◆ operator=()

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

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

Definition at line 96 of file qplacesupplier.cpp.

References d, and other().

+ Here is the call graph for this function:

◆ setIcon()

void QPlaceSupplier::setIcon ( const QPlaceIcon & icon)

Sets the icon of the supplier.

Definition at line 223 of file qplacesupplier.cpp.

References icon, and QPlaceSupplierPrivate::icon.

Referenced by parseSupplier().

+ Here is the caller graph for this function:

◆ setName()

void QPlaceSupplier::setName ( const QString & data)

Sets the name of the supplier.

Definition at line 149 of file qplacesupplier.cpp.

References name, and QPlaceSupplierPrivate::name.

Referenced by parseSupplier().

+ Here is the caller graph for this function:

◆ setSupplierId()

void QPlaceSupplier::setSupplierId ( const QString & identifier)

Sets the identifier of the supplier.

Definition at line 177 of file qplacesupplier.cpp.

References QPlaceSupplierPrivate::supplierId.

◆ setUrl()

void QPlaceSupplier::setUrl ( const QUrl & data)

Sets the url of the supplier's website.

Definition at line 200 of file qplacesupplier.cpp.

References url, and QPlaceSupplierPrivate::url.

Referenced by parseSupplier().

+ Here is the caller graph for this function:

◆ supplierId()

QString QPlaceSupplier::supplierId ( ) const

Definition at line 169 of file qplacesupplier.cpp.

References QPlaceSupplierPrivate::supplierId.

◆ swap()

void QPlaceSupplier::swap ( QPlaceSupplier & other)
inlinenoexcept

Definition at line 39 of file qplacesupplier.h.

References d, other(), and swap().

Referenced by swap().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ url()

QUrl QPlaceSupplier::url ( ) const

Definition at line 192 of file qplacesupplier.cpp.

References QPlaceSupplierPrivate::url.

Friends And Related Symbol Documentation

◆ operator!=

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

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

Definition at line 44 of file qplacesupplier.h.

◆ operator==

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

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

Definition at line 41 of file qplacesupplier.h.

Property Documentation

◆ icon

QPlaceSupplier::icon
readwrite

\qmlproperty PlaceIcon Supplier::icon

This property holds the icon of the supplier.

the icon of the supplier.

Definition at line 28 of file qplacesupplier.h.

Referenced by setIcon().

◆ name

QPlaceSupplier::name
readwrite

\qmlproperty string Supplier::name

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 \l Plugin. The \l {Plugin::locales} property defines what language is used.

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.

Definition at line 25 of file qplacesupplier.h.

Referenced by setName().

◆ supplierId

QPlaceSupplier::supplierId
readwrite

\qmlproperty string Supplier::supplierId

This property holds the identifier of the supplier. The identifier is unique to the Plugin backend which provided the supplier and is generally not suitable for displaying to the user.

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.

Definition at line 26 of file qplacesupplier.h.

Referenced by QDeclarativePlaceContentModel::data().

◆ url

QPlaceSupplier::url
readwrite

\qmlproperty url Supplier::url

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

the URL of the supplier's website.

Definition at line 27 of file qplacesupplier.h.

Referenced by setUrl().


The documentation for this class was generated from the following files: