<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qplacesupplier.cpp --> <title>QPlaceSupplier Class | Qt Location 5.12.6</title> <link rel="stylesheet" type="text/css" href="style/offline-simple.css" /> <script type="text/javascript"> document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css"); // loading style sheet breaks anchors that were jumped to before // so force jumping to anchor again setTimeout(function() { var anchor = location.hash; // need to jump to different anchor first (e.g. none) location.hash = "#"; setTimeout(function() { location.hash = anchor; }, 0); }, 0); </script> </head> <body> <div class="header" id="qtdocheader"> <div class="main"> <div class="main-rounded"> <div class="navigationbar"> <table><tr> <td >Qt 5.12</td><td ><a href="qtlocation-index.html">Qt Location</a></td><td ><a href="qtlocation-module.html">C++ Classes</a></td><td >QPlaceSupplier</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right"><a href="qtlocation-index.html">Qt 5.12.6 Reference Documentation</a></td> </tr></table> </div> </div> <div class="content"> <div class="line"> <div class="content mainContent"> <div class="sidebar"> <div class="toc"> <h3><a name="toc">Contents</a></h3> <ul> <li class="level1"><a href="#public-functions">Public Functions</a></li> <li class="level1"><a href="#details">Detailed Description</a></li> </ul> </div> <div class="sidebar-content" id="sidebar-content"></div></div> <h1 class="title">QPlaceSupplier Class</h1> <!-- $$$QPlaceSupplier-brief --> <p>The <a href="qplacesupplier.html">QPlaceSupplier</a> class represents a supplier of a place or content associated with a place. <a href="#details">More...</a></p> <!-- @@@QPlaceSupplier --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <QPlaceSupplier></span> </td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += location</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 5.6</td></tr></table></div><ul> <li><a href="qplacesupplier-members.html">List of all members, including inherited members</a></li> </ul> <a name="public-functions"></a> <h2 id="public-functions">Public Functions</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qplacesupplier.html#QPlaceSupplier">QPlaceSupplier</a></b>()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qplacesupplier.html#QPlaceSupplier-1">QPlaceSupplier</a></b>(const QPlaceSupplier &<i>other</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qplacesupplier.html#dtor.QPlaceSupplier">~QPlaceSupplier</a></b>()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QPlaceIcon </td><td class="memItemRight bottomAlign"><b><a href="qplacesupplier.html#icon">icon</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qplacesupplier.html#isEmpty">isEmpty</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qplacesupplier.html#name">name</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qplacesupplier.html#setIcon">setIcon</a></b>(const QPlaceIcon &<i>icon</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qplacesupplier.html#setName">setName</a></b>(const QString &<i>name</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qplacesupplier.html#setSupplierId">setSupplierId</a></b>(const QString &<i>identifier</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qplacesupplier.html#setUrl">setUrl</a></b>(const QUrl &<i>url</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qplacesupplier.html#supplierId">supplierId</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QUrl </td><td class="memItemRight bottomAlign"><b><a href="qplacesupplier.html#url">url</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qplacesupplier.html#operator-not-eq">operator!=</a></b>(const QPlaceSupplier &<i>other</i>) const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QPlaceSupplier &</td><td class="memItemRight bottomAlign"><b><a href="qplacesupplier.html#operator-eq">operator=</a></b>(const QPlaceSupplier &<i>other</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qplacesupplier.html#operator-eq-eq">operator==</a></b>(const QPlaceSupplier &<i>other</i>) const</td></tr> </table></div> <a name="details"></a> <!-- $$$QPlaceSupplier-description --> <div class="descr"> <h2 id="details">Detailed Description</h2> <p>The <a href="qplacesupplier.html">QPlaceSupplier</a> class represents a supplier of a place or content associated with a place.</p> <p>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.</p> <p>Note: The Places API only supports suppliers as 'retrieve-only' objects. Submitting suppliers to a provider is not a supported use case.</p> </div> <!-- @@@QPlaceSupplier --> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$QPlaceSupplier[overload1]$$$QPlaceSupplier --> <h3 class="fn" id="QPlaceSupplier"><a name="QPlaceSupplier"></a>QPlaceSupplier::<span class="name">QPlaceSupplier</span>()</h3> <p>Constructs a new supplier object.</p> <!-- @@@QPlaceSupplier --> <!-- $$$QPlaceSupplier$$$QPlaceSupplierconstQPlaceSupplier& --> <h3 class="fn" id="QPlaceSupplier-1"><a name="QPlaceSupplier-1"></a>QPlaceSupplier::<span class="name">QPlaceSupplier</span>(const <span class="type"><a href="qplacesupplier.html#QPlaceSupplier">QPlaceSupplier</a></span> &<i>other</i>)</h3> <p>Constructs a copy of <i>other</i>.</p> <!-- @@@QPlaceSupplier --> <!-- $$$~QPlaceSupplier[overload1]$$$~QPlaceSupplier --> <h3 class="fn" id="dtor.QPlaceSupplier"><a name="dtor.QPlaceSupplier"></a>QPlaceSupplier::<span class="name">~QPlaceSupplier</span>()</h3> <p>Destroys the supplier object.</p> <!-- @@@~QPlaceSupplier --> <!-- $$$icon[overload1]$$$icon --> <h3 class="fn" id="icon"><a name="icon"></a><span class="type"><a href="qplaceicon.html">QPlaceIcon</a></span> QPlaceSupplier::<span class="name">icon</span>() const</h3> <p>Returns the icon of the supplier.</p> <p><b>See also </b><a href="qplacesupplier.html#setIcon">setIcon</a>().</p> <!-- @@@icon --> <!-- $$$isEmpty[overload1]$$$isEmpty --> <h3 class="fn" id="isEmpty"><a name="isEmpty"></a><span class="type">bool</span> QPlaceSupplier::<span class="name">isEmpty</span>() const</h3> <p>Returns true if all fields of the place supplier are 0; otherwise returns false.</p> <!-- @@@isEmpty --> <!-- $$$name[overload1]$$$name --> <h3 class="fn" id="name"><a name="name"></a><span class="type">QString</span> QPlaceSupplier::<span class="name">name</span>() const</h3> <p>Returns the name of the supplier which can be displayed to the user.</p> <p>The name can potentially be localized. The language is dependent on the entity that sets it, typically this is the <a href="qplacemanager.html">QPlaceManager</a>. The <a href="qplacemanager.html#locales">QPlaceManager::locales</a>() field defines what language is used.</p> <p><b>See also </b><a href="qplacesupplier.html#setName">setName</a>().</p> <!-- @@@name --> <!-- $$$setIcon[overload1]$$$setIconconstQPlaceIcon& --> <h3 class="fn" id="setIcon"><a name="setIcon"></a><span class="type">void</span> QPlaceSupplier::<span class="name">setIcon</span>(const <span class="type"><a href="qplaceicon.html">QPlaceIcon</a></span> &<i>icon</i>)</h3> <p>Sets the <i>icon</i> of the supplier.</p> <p><b>See also </b><a href="qplacesupplier.html#icon">icon</a>().</p> <!-- @@@setIcon --> <!-- $$$setName[overload1]$$$setNameconstQString& --> <h3 class="fn" id="setName"><a name="setName"></a><span class="type">void</span> QPlaceSupplier::<span class="name">setName</span>(const <span class="type">QString</span> &<i>name</i>)</h3> <p>Sets the <i>name</i> of the supplier.</p> <p><b>See also </b><a href="qplacesupplier.html#name">name</a>().</p> <!-- @@@setName --> <!-- $$$setSupplierId[overload1]$$$setSupplierIdconstQString& --> <h3 class="fn" id="setSupplierId"><a name="setSupplierId"></a><span class="type">void</span> QPlaceSupplier::<span class="name">setSupplierId</span>(const <span class="type">QString</span> &<i>identifier</i>)</h3> <p>Sets the <i>identifier</i> of the supplier.</p> <p><b>See also </b><a href="qplacesupplier.html#supplierId">supplierId</a>().</p> <!-- @@@setSupplierId --> <!-- $$$setUrl[overload1]$$$setUrlconstQUrl& --> <h3 class="fn" id="setUrl"><a name="setUrl"></a><span class="type">void</span> QPlaceSupplier::<span class="name">setUrl</span>(const <span class="type">QUrl</span> &<i>url</i>)</h3> <p>Sets the <i>url</i> of the supplier's website.</p> <p><b>See also </b><a href="qplacesupplier.html#url">url</a>().</p> <!-- @@@setUrl --> <!-- $$$supplierId[overload1]$$$supplierId --> <h3 class="fn" id="supplierId"><a name="supplierId"></a><span class="type">QString</span> QPlaceSupplier::<span class="name">supplierId</span>() const</h3> <p>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.</p> <p><b>See also </b><a href="qplacesupplier.html#setSupplierId">setSupplierId</a>().</p> <!-- @@@supplierId --> <!-- $$$url[overload1]$$$url --> <h3 class="fn" id="url"><a name="url"></a><span class="type">QUrl</span> QPlaceSupplier::<span class="name">url</span>() const</h3> <p>Returns the URL of the supplier's website.</p> <p><b>See also </b><a href="qplacesupplier.html#setUrl">setUrl</a>().</p> <!-- @@@url --> <!-- $$$operator!=[overload1]$$$operator!=constQPlaceSupplier& --> <h3 class="fn" id="operator-not-eq"><a name="operator-not-eq"></a><span class="type">bool</span> QPlaceSupplier::<span class="name">operator!=</span>(const <span class="type"><a href="qplacesupplier.html#QPlaceSupplier">QPlaceSupplier</a></span> &<i>other</i>) const</h3> <p>Returns true if this supplier is not equal to <i>other</i>, otherwise returns false.</p> <!-- @@@operator!= --> <!-- $$$operator=[overload1]$$$operator=constQPlaceSupplier& --> <h3 class="fn" id="operator-eq"><a name="operator-eq"></a><span class="type"><a href="qplacesupplier.html#QPlaceSupplier">QPlaceSupplier</a></span> &QPlaceSupplier::<span class="name">operator=</span>(const <span class="type"><a href="qplacesupplier.html#QPlaceSupplier">QPlaceSupplier</a></span> &<i>other</i>)</h3> <p>Assigns <i>other</i> to this supplier and returns a reference to this supplier.</p> <!-- @@@operator= --> <!-- $$$operator==[overload1]$$$operator==constQPlaceSupplier& --> <h3 class="fn" id="operator-eq-eq"><a name="operator-eq-eq"></a><span class="type">bool</span> QPlaceSupplier::<span class="name">operator==</span>(const <span class="type"><a href="qplacesupplier.html#QPlaceSupplier">QPlaceSupplier</a></span> &<i>other</i>) const</h3> <p>Returns true if this supplier is equal to <i>other</i>, otherwise returns false.</p> <!-- @@@operator== --> </div> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.<br/> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br/> Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. </p> </div> </body> </html>