Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qplaceproposedsearchresult.cpp
Go to the documentation of this file.
1
// Copyright (C) 2013 Aaron McCarthy <mccarthy.aaron@gmail.com>
2
// Copyright (C) 2022 The Qt Company Ltd.
3
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
// Qt-Security score:significant reason:default
5
6
#
include
"qplaceproposedsearchresult.h"
7
#
include
"qplaceproposedsearchresult_p.h"
8
9
QT_BEGIN_NAMESPACE
10
11
bool
QPlaceProposedSearchResultPrivate
::
compare
(
const
QPlaceSearchResultPrivate *other)
const
12
{
13
const
QPlaceProposedSearchResultPrivate
*od =
static_cast
<
const
QPlaceProposedSearchResultPrivate *>(other);
14
return
QPlaceSearchResultPrivate::compare(other) && searchRequest == od->searchRequest;
15
}
16
17
/*!
18
\class QPlaceProposedSearchResult
19
\inmodule QtLocation
20
\ingroup QtLocation-places
21
\ingroup QtLocation-places-data
22
\since QtLocation 5.2
23
24
\brief The QPlaceProposedSearchResult class represents a search result containing a proposed search.
25
26
\sa QPlaceSearchResult
27
*/
28
29
/*!
30
Constructs a new proposed search result.
31
*/
32
QPlaceProposedSearchResult::QPlaceProposedSearchResult()
33
: QPlaceSearchResult(
new
QPlaceProposedSearchResultPrivate)
34
{
35
}
36
37
/*!
38
\fn QPlaceProposedSearchResult::QPlaceProposedSearchResult(const QPlaceSearchRequest &other)
39
40
Contructs a copy of \a other if possible, otherwise constructs a default proposed search
41
result.
42
*/
43
Q_IMPLEMENT_SEARCHRESULT_COPY_CTOR
(QPlaceProposedSearchResult)
44
45
Q_IMPLEMENT_SEARCHRESULT_D_FUNC
(QPlaceProposedSearchResult)
46
47
/*!
48
Destroys the proposed search result.
49
*/
50
QPlaceProposedSearchResult::~QPlaceProposedSearchResult()
51
{
52
}
53
54
/*!
55
Returns a place search request that can be used to perform an additional proposed search.
56
*/
57
QPlaceSearchRequest QPlaceProposedSearchResult::searchRequest()
const
58
{
59
Q_D(
const
QPlaceProposedSearchResult);
60
return
d->searchRequest;
61
}
62
63
/*!
64
Sets the proposed search request to \a request.
65
*/
66
void
QPlaceProposedSearchResult::setSearchRequest(
const
QPlaceSearchRequest &request)
67
{
68
Q_D(QPlaceProposedSearchResult);
69
d->searchRequest = request;
70
}
71
72
QT_END_NAMESPACE
QPlaceProposedSearchResultPrivate
Definition
qplaceproposedsearchresult_p.h:25
QPlaceProposedSearchResultPrivate::compare
bool compare(const QPlaceSearchResultPrivate *other) const override
Definition
qplaceproposedsearchresult.cpp:11
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
Q_IMPLEMENT_SEARCHRESULT_D_FUNC
#define Q_IMPLEMENT_SEARCHRESULT_D_FUNC(Class)
Definition
qplacesearchresult_p.h:28
Q_IMPLEMENT_SEARCHRESULT_COPY_CTOR
#define Q_IMPLEMENT_SEARCHRESULT_COPY_CTOR(Class)
Definition
qplacesearchresult_p.h:32
qtlocation
src
location
places
qplaceproposedsearchresult.cpp
Generated on
for Qt by
1.16.1