Sophie

Sophie

distrib > Mageia > 6 > x86_64 > media > core-updates > by-pkgid > ed56237261fa5ad3d1f8082a5fac7e2e > files > 189

qtlocation5-doc-5.9.4-1.mga6.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qplacesearchrequest.cpp -->
  <title>QPlaceSearchRequest Class | Qt Location 5.9</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.9</td><td ><a href="qtlocation-index.html">Qt Location</a></td><td ><a href="qtlocation-module.html">C++ Classes</a></td><td >QPlaceSearchRequest</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.4 Reference Documentation</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-types">Public Types</a></li>
<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">QPlaceSearchRequest Class</h1>
<!-- $$$QPlaceSearchRequest-brief -->
<p>The <a href="qplacesearchrequest.html">QPlaceSearchRequest</a> class represents the set of parameters for a search request. <a href="#details">More...</a></p>
<!-- @@@QPlaceSearchRequest -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QPlaceSearchRequest&gt;</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="qplacesearchrequest-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2 id="public-types">Public Types</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qplacesearchrequest.html#RelevanceHint-enum">RelevanceHint</a></b> { UnspecifiedHint, DistanceHint, LexicalPlaceNameHint }</td></tr>
</table></div>
<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="qplacesearchrequest.html#QPlaceSearchRequest">QPlaceSearchRequest</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qplacesearchrequest.html#QPlaceSearchRequest-1">QPlaceSearchRequest</a></b>(const QPlaceSearchRequest &amp;<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qplacesearchrequest.html#dtor.QPlaceSearchRequest">~QPlaceSearchRequest</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;QPlaceCategory&gt; </td><td class="memItemRight bottomAlign"><b><a href="qplacesearchrequest.html#categories">categories</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qplacesearchrequest.html#clear">clear</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qplacesearchrequest.html#limit">limit</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qplacesearchrequest.html#recommendationId">recommendationId</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> RelevanceHint </td><td class="memItemRight bottomAlign"><b><a href="qplacesearchrequest.html#relevanceHint">relevanceHint</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoShape </td><td class="memItemRight bottomAlign"><b><a href="qplacesearchrequest.html#searchArea">searchArea</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QVariant </td><td class="memItemRight bottomAlign"><b><a href="qplacesearchrequest.html#searchContext">searchContext</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qplacesearchrequest.html#searchTerm">searchTerm</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qplacesearchrequest.html#setCategories">setCategories</a></b>(const QList&lt;QPlaceCategory&gt; &amp;<i>categories</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qplacesearchrequest.html#setCategory">setCategory</a></b>(const QPlaceCategory &amp;<i>category</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qplacesearchrequest.html#setLimit">setLimit</a></b>(int <i>limit</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qplacesearchrequest.html#setRecommendationId">setRecommendationId</a></b>(const QString &amp;<i>placeId</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qplacesearchrequest.html#setRelevanceHint">setRelevanceHint</a></b>(RelevanceHint <i>hint</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qplacesearchrequest.html#setSearchArea">setSearchArea</a></b>(const QGeoShape &amp;<i>area</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qplacesearchrequest.html#setSearchContext">setSearchContext</a></b>(const QVariant &amp;<i>context</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qplacesearchrequest.html#setSearchTerm">setSearchTerm</a></b>(const QString &amp;<i>term</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qplacesearchrequest.html#setVisibilityScope">setVisibilityScope</a></b>(QLocation::VisibilityScope <i>scope</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QLocation::VisibilityScope </td><td class="memItemRight bottomAlign"><b><a href="qplacesearchrequest.html#visibilityScope">visibilityScope</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qplacesearchrequest.html#operator-not-eq">operator!=</a></b>(const QPlaceSearchRequest &amp;<i>other</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPlaceSearchRequest &amp;</td><td class="memItemRight bottomAlign"><b><a href="qplacesearchrequest.html#operator-eq">operator=</a></b>(const QPlaceSearchRequest &amp;<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qplacesearchrequest.html#operator-eq-eq">operator==</a></b>(const QPlaceSearchRequest &amp;<i>other</i>) const</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QPlaceSearchRequest-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qplacesearchrequest.html">QPlaceSearchRequest</a> class represents the set of parameters for a search request.</p>
<p>A typical search request may look like the following:</p>
<pre class="cpp">

  <span class="type"><a href="qplacesearchrequest.html#QPlaceSearchRequest">QPlaceSearchRequest</a></span> searchRequest;
  searchRequest<span class="operator">.</span>setSearchTerm(<span class="string">&quot;Fast food&quot;</span>); <span class="comment">//search term for what we are interested in</span>

  <span class="comment">//set a search center</span>
  searchRequest<span class="operator">.</span>setSearchArea(<span class="type">QGeoCircle</span>(<span class="type">QGeoCoordinate</span>(<span class="number">2.3</span><span class="operator">,</span> <span class="number">48.87</span>)));

  <span class="comment">//set a distance hint as a relevancy hint.</span>
  <span class="comment">//closer places have greater weighting in the ranking of results.</span>
  searchRequest<span class="operator">.</span>setRelevanceHint(<span class="type"><a href="qplacesearchrequest.html#QPlaceSearchRequest">QPlaceSearchRequest</a></span><span class="operator">::</span>DistanceHint);

  <span class="comment">//use limit to adjust pagination.</span>
  <span class="comment">//this limits the number of place results to 5 per page.</span>
  searchRequest<span class="operator">.</span>setLimit(<span class="number">5</span>);

  <span class="comment">//provide some categories to narrow down search</span>
  <span class="type">QList</span><span class="operator">&lt;</span><span class="type"><a href="qplacecategory.html">QPlaceCategory</a></span><span class="operator">&gt;</span> categories;
  categories <span class="operator">&lt;</span><span class="operator">&lt;</span> diner <span class="operator">&lt;</span><span class="operator">&lt;</span> restaurant;
  searchRequest<span class="operator">.</span>setCategories(categories);

</pre>
<p>Note that specifying a search center can be done by setting a circular search area that has a center but no radius. The default radius is set to -1, which indicates an undefined radius. The provider will interpret this as being free to choose its own default radius.</p>
<p>The <a href="qplacesearchrequest.html">QPlaceSearchRequest</a> is primarily used with the <a href="qplacemanager.html">QPlaceManager</a> to <a href="qplacemanager.html#search">search for places</a>, however it is also used to provide parameters for <a href="qplacemanager.html#searchSuggestions">generating search term suggestions</a>. Note that in this context only some of the parameters may be relevant. For example, the search area is useful in narrowing down relevant search suggestions, while other parameters such as relevance hint are not so applicable.</p>
<p>Also be aware that providers may vary by which parameters they support for example some providers may not support paging while others do, some providers may honor relevance hints while others may completely ignore them, see the <a href="qtlocation-index.html#plugin-references-and-parameters">plugin documentation</a> for more details.</p>
</div>
<!-- @@@QPlaceSearchRequest -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$RelevanceHint$$$UnspecifiedHint$$$DistanceHint$$$LexicalPlaceNameHint -->
<h3 class="fn" id="RelevanceHint-enum"><a name="RelevanceHint-enum"></a>enum QPlaceSearchRequest::<span class="name">RelevanceHint</span></h3>
<p>Defines hints to help rank place results.</p>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>QPlaceSearchRequest::UnspecifiedHint</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">No explicit hint has been specified.</td></tr>
<tr><td class="topAlign"><code>QPlaceSearchRequest::DistanceHint</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">Distance to a search center is relevant for the user. Closer places are more highly weighted. This hint is only useful if a circular search area is used in the query.</td></tr>
<tr><td class="topAlign"><code>QPlaceSearchRequest::LexicalPlaceNameHint</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">Alphabetic ordering of places according to name is relevant to the user.</td></tr>
</table></div>
<!-- @@@RelevanceHint -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QPlaceSearchRequest[overload1]$$$QPlaceSearchRequest -->
<h3 class="fn" id="QPlaceSearchRequest"><a name="QPlaceSearchRequest"></a>QPlaceSearchRequest::<span class="name">QPlaceSearchRequest</span>()</h3>
<p>Default constructor. Constructs an new request object.</p>
<!-- @@@QPlaceSearchRequest -->
<!-- $$$QPlaceSearchRequest$$$QPlaceSearchRequestconstQPlaceSearchRequest& -->
<h3 class="fn" id="QPlaceSearchRequest-1"><a name="QPlaceSearchRequest-1"></a>QPlaceSearchRequest::<span class="name">QPlaceSearchRequest</span>(const <span class="type"><a href="qplacesearchrequest.html#QPlaceSearchRequest">QPlaceSearchRequest</a></span> &amp;<i>other</i>)</h3>
<p>Constructs a copy of <i>other</i>.</p>
<!-- @@@QPlaceSearchRequest -->
<!-- $$$~QPlaceSearchRequest[overload1]$$$~QPlaceSearchRequest -->
<h3 class="fn" id="dtor.QPlaceSearchRequest"><a name="dtor.QPlaceSearchRequest"></a>QPlaceSearchRequest::<span class="name">~QPlaceSearchRequest</span>()</h3>
<p>Destroys the request object.</p>
<!-- @@@~QPlaceSearchRequest -->
<!-- $$$categories[overload1]$$$categories -->
<h3 class="fn" id="categories"><a name="categories"></a><span class="type">QList</span>&lt;<span class="type"><a href="qplacecategory.html">QPlaceCategory</a></span>&gt; QPlaceSearchRequest::<span class="name">categories</span>() const</h3>
<p>Return the categories to be used in the search request. Places need only to belong to one of the categories to be considered a match by the request.</p>
<p><b>See also </b><a href="qplacesearchrequest.html#setCategories">setCategories</a>().</p>
<!-- @@@categories -->
<!-- $$$clear[overload1]$$$clear -->
<h3 class="fn" id="clear"><a name="clear"></a><span class="type">void</span> QPlaceSearchRequest::<span class="name">clear</span>()</h3>
<p>Clears the search request.</p>
<!-- @@@clear -->
<!-- $$$limit[overload1]$$$limit -->
<h3 class="fn" id="limit"><a name="limit"></a><span class="type">int</span> QPlaceSearchRequest::<span class="name">limit</span>() const</h3>
<p>Returns the maximum number of search results to retrieve.</p>
<p>A negative value for limit means that it is undefined. It is left up to the backend provider to choose an appropriate number of results to return. The default limit is -1.</p>
<p><b>See also </b><a href="qplacesearchrequest.html#setLimit">setLimit</a>().</p>
<!-- @@@limit -->
<!-- $$$recommendationId[overload1]$$$recommendationId -->
<h3 class="fn" id="recommendationId"><a name="recommendationId"></a><span class="type">QString</span> QPlaceSearchRequest::<span class="name">recommendationId</span>() const</h3>
<p>Returns the place id which will be used to search for recommendations for similar places.</p>
<p><b>See also </b><a href="qplacesearchrequest.html#setRecommendationId">setRecommendationId</a>().</p>
<!-- @@@recommendationId -->
<!-- $$$relevanceHint[overload1]$$$relevanceHint -->
<h3 class="fn" id="relevanceHint"><a name="relevanceHint"></a><span class="type"><a href="qplacesearchrequest.html#RelevanceHint-enum">RelevanceHint</a></span> QPlaceSearchRequest::<span class="name">relevanceHint</span>() const</h3>
<p>Returns the relevance hint of the request. The hint is given to the provider to help but not dictate the ranking of results. For example providing a distance hint may give closer places a higher ranking but it doesn't necessarily mean that he results will be ordered strictly according to distance.</p>
<p><b>See also </b><a href="qplacesearchrequest.html#setRelevanceHint">setRelevanceHint</a>().</p>
<!-- @@@relevanceHint -->
<!-- $$$searchArea[overload1]$$$searchArea -->
<h3 class="fn" id="searchArea"><a name="searchArea"></a><span class="type">QGeoShape</span> QPlaceSearchRequest::<span class="name">searchArea</span>() const</h3>
<p>Returns the search area which will be used to limit search results. The default search area is an invalid QGeoShape, indicating that no specific search area is defined.</p>
<p><b>See also </b><a href="qplacesearchrequest.html#setSearchArea">setSearchArea</a>().</p>
<!-- @@@searchArea -->
<!-- $$$searchContext[overload1]$$$searchContext -->
<h3 class="fn" id="searchContext"><a name="searchContext"></a><span class="type">QVariant</span> QPlaceSearchRequest::<span class="name">searchContext</span>() const</h3>
<p>Returns backend specific additional search context associated with this place search request. The search context is typically set as part of a <a href="qplacesearchresult.html#SearchResultType-enum">proposed search results</a>.</p>
<p><b>See also </b><a href="qplacesearchrequest.html#setSearchContext">setSearchContext</a>().</p>
<!-- @@@searchContext -->
<!-- $$$searchTerm[overload1]$$$searchTerm -->
<h3 class="fn" id="searchTerm"><a name="searchTerm"></a><span class="type">QString</span> QPlaceSearchRequest::<span class="name">searchTerm</span>() const</h3>
<p>Returns the search term.</p>
<p><b>See also </b><a href="qplacesearchrequest.html#setSearchTerm">setSearchTerm</a>().</p>
<!-- @@@searchTerm -->
<!-- $$$setCategories[overload1]$$$setCategoriesconstQList<QPlaceCategory>& -->
<h3 class="fn" id="setCategories"><a name="setCategories"></a><span class="type">void</span> QPlaceSearchRequest::<span class="name">setCategories</span>(const <span class="type">QList</span>&lt;<span class="type"><a href="qplacecategory.html">QPlaceCategory</a></span>&gt; &amp;<i>categories</i>)</h3>
<p>Sets the search request to search from the list of given <i>categories</i>. Any places returned during the search will match at least one of the <i>categories</i>.</p>
<p><b>See also </b><a href="qplacesearchrequest.html#categories">categories</a>() and <a href="qplacesearchrequest.html#setCategory">setCategory</a>().</p>
<!-- @@@setCategories -->
<!-- $$$setCategory[overload1]$$$setCategoryconstQPlaceCategory& -->
<h3 class="fn" id="setCategory"><a name="setCategory"></a><span class="type">void</span> QPlaceSearchRequest::<span class="name">setCategory</span>(const <span class="type"><a href="qplacecategory.html">QPlaceCategory</a></span> &amp;<i>category</i>)</h3>
<p>Sets the search request to search by a single <i>category</i></p>
<p><b>See also </b><a href="qplacesearchrequest.html#setCategories">setCategories</a>().</p>
<!-- @@@setCategory -->
<!-- $$$setLimit[overload1]$$$setLimitint -->
<h3 class="fn" id="setLimit"><a name="setLimit"></a><span class="type">void</span> QPlaceSearchRequest::<span class="name">setLimit</span>(<span class="type">int</span> <i>limit</i>)</h3>
<p>Set the maximum number of search results to retrieve to <i>limit</i>.</p>
<p><b>See also </b><a href="qplacesearchrequest.html#limit">limit</a>().</p>
<!-- @@@setLimit -->
<!-- $$$setRecommendationId[overload1]$$$setRecommendationIdconstQString& -->
<h3 class="fn" id="setRecommendationId"><a name="setRecommendationId"></a><span class="type">void</span> QPlaceSearchRequest::<span class="name">setRecommendationId</span>(const <span class="type">QString</span> &amp;<i>placeId</i>)</h3>
<p>Sets the <i>placeId</i> which will be used to search for recommendations.</p>
<p><b>See also </b><a href="qplacesearchrequest.html#recommendationId">recommendationId</a>().</p>
<!-- @@@setRecommendationId -->
<!-- $$$setRelevanceHint[overload1]$$$setRelevanceHintRelevanceHint -->
<h3 class="fn" id="setRelevanceHint"><a name="setRelevanceHint"></a><span class="type">void</span> QPlaceSearchRequest::<span class="name">setRelevanceHint</span>(<span class="type"><a href="qplacesearchrequest.html#RelevanceHint-enum">RelevanceHint</a></span> <i>hint</i>)</h3>
<p>Sets the relevance <i>hint</i> to be used when searching for a place.</p>
<p><b>See also </b><a href="qplacesearchrequest.html#relevanceHint">relevanceHint</a>().</p>
<!-- @@@setRelevanceHint -->
<!-- $$$setSearchArea[overload1]$$$setSearchAreaconstQGeoShape& -->
<h3 class="fn" id="setSearchArea"><a name="setSearchArea"></a><span class="type">void</span> QPlaceSearchRequest::<span class="name">setSearchArea</span>(const <span class="type">QGeoShape</span> &amp;<i>area</i>)</h3>
<p>Sets the search request to search within the given <i>area</i>.</p>
<p><b>See also </b><a href="qplacesearchrequest.html#searchArea">searchArea</a>().</p>
<!-- @@@setSearchArea -->
<!-- $$$setSearchContext[overload1]$$$setSearchContextconstQVariant& -->
<h3 class="fn" id="setSearchContext"><a name="setSearchContext"></a><span class="type">void</span> QPlaceSearchRequest::<span class="name">setSearchContext</span>(const <span class="type">QVariant</span> &amp;<i>context</i>)</h3>
<p>Sets the search context to <i>context</i>.</p>
<p><b>Note: </b>This method is intended to be used by geo service plugins when returning search results of type <a href="qplacesearchresult.html#SearchResultType-enum">QPlaceSearchResult::ProposedSearchResult</a>.</p><p>The search context is used by backends to store additional search context related to the search request. Other relevant fields should also be filled in. For example, if the search context encodes a text search the search term should also be set with <a href="qplacesearchrequest.html#setSearchTerm">setSearchTerm</a>(). The search context allows additional search context to be kept which is not directly accessible via the Qt Location API.</p>
<p>The search context can be of any type storable in a QVariant. The value of the search context is not intended to be use directly by applications.</p>
<p><b>See also </b><a href="qplacesearchrequest.html#searchContext">searchContext</a>().</p>
<!-- @@@setSearchContext -->
<!-- $$$setSearchTerm[overload1]$$$setSearchTermconstQString& -->
<h3 class="fn" id="setSearchTerm"><a name="setSearchTerm"></a><span class="type">void</span> QPlaceSearchRequest::<span class="name">setSearchTerm</span>(const <span class="type">QString</span> &amp;<i>term</i>)</h3>
<p>Sets the search <i>term</i>.</p>
<p><b>See also </b><a href="qplacesearchrequest.html#searchTerm">searchTerm</a>().</p>
<!-- @@@setSearchTerm -->
<!-- $$$setVisibilityScope[overload1]$$$setVisibilityScopeQLocation::VisibilityScope -->
<h3 class="fn" id="setVisibilityScope"><a name="setVisibilityScope"></a><span class="type">void</span> QPlaceSearchRequest::<span class="name">setVisibilityScope</span>(<span class="type"><a href="qlocation.html#Visibility-enum">QLocation::VisibilityScope</a></span> <i>scope</i>)</h3>
<p>Sets the visibility <i>scope</i> used when searching for places.</p>
<p><b>See also </b><a href="qplacesearchrequest.html#visibilityScope">visibilityScope</a>().</p>
<!-- @@@setVisibilityScope -->
<!-- $$$visibilityScope[overload1]$$$visibilityScope -->
<h3 class="fn" id="visibilityScope"><a name="visibilityScope"></a><span class="type"><a href="qlocation.html#Visibility-enum">QLocation::VisibilityScope</a></span> QPlaceSearchRequest::<span class="name">visibilityScope</span>() const</h3>
<p>Returns the visibility scope used when searching for places. The default value is <a href="qlocation.html#Visibility-enum">QLocation::UnspecifiedVisibility</a> meaning that no explicit scope has been assigned. Places of any scope may be returned during the search.</p>
<p><b>See also </b><a href="qplacesearchrequest.html#setVisibilityScope">setVisibilityScope</a>().</p>
<!-- @@@visibilityScope -->
<!-- $$$operator!=[overload1]$$$operator!=constQPlaceSearchRequest& -->
<h3 class="fn" id="operator-not-eq"><a name="operator-not-eq"></a><span class="type">bool</span> QPlaceSearchRequest::<span class="name">operator!=</span>(const <span class="type"><a href="qplacesearchrequest.html#QPlaceSearchRequest">QPlaceSearchRequest</a></span> &amp;<i>other</i>) const</h3>
<p>Returns true if <i>other</i> is not equal to this search request, otherwise returns false.</p>
<!-- @@@operator!= -->
<!-- $$$operator=[overload1]$$$operator=constQPlaceSearchRequest& -->
<h3 class="fn" id="operator-eq"><a name="operator-eq"></a><span class="type"><a href="qplacesearchrequest.html#QPlaceSearchRequest">QPlaceSearchRequest</a></span> &amp;QPlaceSearchRequest::<span class="name">operator=</span>(const <span class="type"><a href="qplacesearchrequest.html#QPlaceSearchRequest">QPlaceSearchRequest</a></span> &amp;<i>other</i>)</h3>
<p>Assigns <i>other</i> to this search request and returns a reference to this search request.</p>
<!-- @@@operator= -->
<!-- $$$operator==[overload1]$$$operator==constQPlaceSearchRequest& -->
<h3 class="fn" id="operator-eq-eq"><a name="operator-eq-eq"></a><span class="type">bool</span> QPlaceSearchRequest::<span class="name">operator==</span>(const <span class="type"><a href="qplacesearchrequest.html#QPlaceSearchRequest">QPlaceSearchRequest</a></span> &amp;<i>other</i>) const</h3>
<p>Returns true if <i>other</i> is equal to this search request, otherwise returns false.</p>
<!-- @@@operator== -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2017 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>