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
7
9
10bool QPlaceProposedSearchResultPrivate::compare(const QPlaceSearchResultPrivate *other) const
11{
12 const QPlaceProposedSearchResultPrivate *od = static_cast<const QPlaceProposedSearchResultPrivate *>(other);
13 return QPlaceSearchResultPrivate::compare(other) && searchRequest == od->searchRequest;
14}
15
16/*!
17 \class QPlaceProposedSearchResult
18 \inmodule QtLocation
19 \ingroup QtLocation-places
20 \ingroup QtLocation-places-data
21 \since QtLocation 5.2
22
23 \brief The QPlaceProposedSearchResult class represents a search result containing a proposed search.
24
25 \sa QPlaceSearchResult
26*/
27
28/*!
29 Constructs a new proposed search result.
30*/
31QPlaceProposedSearchResult::QPlaceProposedSearchResult()
32: QPlaceSearchResult(new QPlaceProposedSearchResultPrivate)
33{
34}
35
36/*!
37 \fn QPlaceProposedSearchResult::QPlaceProposedSearchResult(const QPlaceSearchRequest &other)
38
39 Contructs a copy of \a other if possible, otherwise constructs a default proposed search
40 result.
41*/
42Q_IMPLEMENT_SEARCHRESULT_COPY_CTOR(QPlaceProposedSearchResult)
43
44Q_IMPLEMENT_SEARCHRESULT_D_FUNC(QPlaceProposedSearchResult)
45
46/*!
47 Destroys the proposed search result.
48*/
49QPlaceProposedSearchResult::~QPlaceProposedSearchResult()
50{
51}
52
53/*!
54 Returns a place search request that can be used to perform an additional proposed search.
55*/
56QPlaceSearchRequest QPlaceProposedSearchResult::searchRequest() const
57{
58 Q_D(const QPlaceProposedSearchResult);
59 return d->searchRequest;
60}
61
62/*!
63 Sets the proposed search request to \a request.
64*/
65void QPlaceProposedSearchResult::setSearchRequest(const QPlaceSearchRequest &request)
66{
67 Q_D(QPlaceProposedSearchResult);
68 d->searchRequest = request;
69}
70
71QT_END_NAMESPACE
bool compare(const QPlaceSearchResultPrivate *other) const override
#define Q_IMPLEMENT_SEARCHRESULT_D_FUNC(Class)
#define Q_IMPLEMENT_SEARCHRESULT_COPY_CTOR(Class)