Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qplacesearchrequest.h
Go to the documentation of this file.
1
// Copyright (C) 2015 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
ifndef
QPLACESEARCHREQUEST_H
6
#
define
QPLACESEARCHREQUEST_H
7
8
#
include
<
QtCore
/
QSharedDataPointer
>
9
#
include
<
QtCore
/
QMetaType
>
10
#
include
<
QtLocation
/
QLocation
>
11
12
QT_BEGIN_NAMESPACE
13
14
class
QGeoShape;
15
class
QPlaceCategory;
16
class
QPlaceSearchRequestPrivate;
17
QT_DECLARE_QSDP_SPECIALIZATION_DTOR_WITH_EXPORT(QPlaceSearchRequestPrivate, Q_LOCATION_EXPORT)
18
19
class
Q_LOCATION_EXPORT
QPlaceSearchRequest
20
{
21
public
:
22
enum
RelevanceHint {
23
UnspecifiedHint,
24
DistanceHint,
25
LexicalPlaceNameHint
26
};
27
28
QPlaceSearchRequest();
29
QPlaceSearchRequest(
const
QPlaceSearchRequest &other)
noexcept
;
30
QPlaceSearchRequest(QPlaceSearchRequest &&other)
noexcept
=
default
;
31
~QPlaceSearchRequest();
32
33
QPlaceSearchRequest &operator=(
const
QPlaceSearchRequest &other)
noexcept
;
34
QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QPlaceSearchRequest)
35
36
void
swap(QPlaceSearchRequest &other)
noexcept
{ d_ptr.swap(other.d_ptr); }
37
38
friend
inline
bool
operator==(
const
QPlaceSearchRequest &lhs,
39
const
QPlaceSearchRequest &rhs)
noexcept
40
{
return
lhs.isEqual(rhs); }
41
friend
inline
bool
operator!=(
const
QPlaceSearchRequest &lhs,
42
const
QPlaceSearchRequest &rhs)
noexcept
43
{
return
!lhs.isEqual(rhs); }
44
45
QString searchTerm()
const
;
46
void
setSearchTerm(
const
QString &term);
47
48
QList<QPlaceCategory> categories()
const
;
49
void
setCategory(
const
QPlaceCategory &category);
50
void
setCategories(
const
QList<QPlaceCategory> &categories);
51
52
QGeoShape searchArea()
const
;
53
void
setSearchArea(
const
QGeoShape &area);
54
55
QString recommendationId()
const
;
56
void
setRecommendationId(
const
QString &recommendationId);
57
58
QVariant searchContext()
const
;
59
void
setSearchContext(
const
QVariant &context);
60
61
QLocation::VisibilityScope visibilityScope()
const
;
62
void
setVisibilityScope(QLocation::VisibilityScope visibilityScopes);
63
64
RelevanceHint relevanceHint()
const
;
65
void
setRelevanceHint(RelevanceHint hint);
66
67
int
limit()
const
;
68
void
setLimit(
int
limit);
69
70
void
clear();
71
72
private
:
73
QSharedDataPointer<QPlaceSearchRequestPrivate> d_ptr;
74
75
bool
isEqual(
const
QPlaceSearchRequest &other)
const
noexcept
;
76
77
inline
QPlaceSearchRequestPrivate *d_func();
78
inline
const
QPlaceSearchRequestPrivate *d_func()
const
;
79
80
friend
class
QPlaceSearchRequestPrivate;
81
};
82
83
QT_END_NAMESPACE
84
85
Q_DECLARE_METATYPE(QPlaceSearchRequest::RelevanceHint)
86
87
#
endif
// QPLACESEARCHQUERY_H
QDeclarativeSearchSuggestionModel
Definition
qdeclarativesearchsuggestionmodel_p.h:30
QPlaceManager
\inmodule QtLocation
Definition
qplacemanager.h:33
QPlaceSearchRequest
\inmodule QtLocation
Definition
qplacesearchrequest.h:20
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtlocation
src
location
places
qplacesearchrequest.h
Generated on
for Qt by
1.18.0