9#include <QtLocation/QPlaceCategory>
11#include <QtCore/QSharedData>
12#include <QtCore/QList>
13#include <QtCore/QVariant>
22 return searchTerm ==
other.searchTerm &&
24 searchArea ==
other.searchArea &&
25 recommendationId ==
other.recommendationId &&
26 visibilityScope ==
other.visibilityScope &&
27 relevanceHint ==
other.relevanceHint &&
29 searchContext ==
other.searchContext;
50 return request.d_ptr.constData();
147 return *
d == *
other.d_func();
156 return d->searchTerm;
165 d->searchTerm = term;
176 return d->categories;
187 d->categories.clear();
189 if (!
category.categoryId().isEmpty())
213 return d->searchArea;
222 d->searchArea =
area;
232 return d->recommendationId;
241 d->recommendationId = placeId;
252 return d->searchContext;
284 return d->visibilityScope;
293 d->visibilityScope = scope;
305 return d->relevanceHint;
314 d->relevanceHint =
hint;
QPlaceSearchRequest::RelevanceHint relevanceHint
static const QPlaceSearchRequestPrivate * get(const QPlaceSearchRequest &request)
QLocation::VisibilityScope visibilityScope
void setSearchTerm(const QString &term)
Sets the search term.
QGeoShape searchArea() const
Returns the search area which will be used to limit search results.
int limit() const
Returns the maximum number of search results to retrieve.
RelevanceHint
Defines hints to help rank place results.
void setLimit(int limit)
Set the maximum number of search results to retrieve to limit.
QLocation::VisibilityScope visibilityScope() const
Returns the visibility scope used when searching for places.
QString searchTerm() const
Returns the search term.
void setRecommendationId(const QString &recommendationId)
Sets the placeId which will be used to search for recommendations.
QList< QPlaceCategory > categories() const
Return the categories to be used in the search request.
QPlaceSearchRequest & operator=(const QPlaceSearchRequest &other) noexcept
Assigns other to this search request and returns a reference to this search request.
QPlaceSearchRequest()
Default constructor.
~QPlaceSearchRequest()
Destroys the request object.
void clear()
Clears the search request.
void setCategory(const QPlaceCategory &category)
Sets the search request to search by a single category.
void setRelevanceHint(RelevanceHint hint)
Sets the relevance hint to be used when searching for a place.
QString recommendationId() const
Returns the place id which will be used to search for recommendations for similar places.
QVariant searchContext() const
Returns backend specific additional search context associated with this place search request.
void setSearchArea(const QGeoShape &area)
Sets the search request to search within the given area.
void setSearchContext(const QVariant &context)
Sets the search context to context.
void setCategories(const QList< QPlaceCategory > &categories)
Sets the search request to search from the list of given categories.
void setVisibilityScope(QLocation::VisibilityScope visibilityScopes)
Sets the visibility scope used when searching for places.
RelevanceHint relevanceHint() const
Returns the relevance hint of the request.
const T * constData() const noexcept
Returns a const pointer to the shared data object.
T * data()
Returns a pointer to the shared data object.
\macro QT_RESTRICTED_CAST_FROM_ASCII
void clear()
Clears the contents of the string and makes it null.
void clear()
Convert this variant to type QMetaType::UnknownType and free up any resources used.
const QLoggingCategory & category()
[1]
Combined button and popup list for selecting options.
static int area(const QSize &s)
GLsizei GLenum * categories
#define QT_DEFINE_QSDP_SPECIALIZATION_DTOR(Class)
static QT_BEGIN_NAMESPACE QVariant hint(QPlatformIntegration::StyleHint h)
QNetworkRequest request(url)