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
qplacematchrequest.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 QPLACEMATCHREQUEST_H
6#define QPLACEMATCHREQUEST_H
7
8#include <QtLocation/qlocationglobal.h>
9#include <QtCore/QSharedDataPointer>
10
11QT_BEGIN_NAMESPACE
12
13class QPlace;
14class QPlaceSearchResult;
16QT_DECLARE_QSDP_SPECIALIZATION_DTOR_WITH_EXPORT(QPlaceMatchRequestPrivate, Q_LOCATION_EXPORT)
17
18class Q_LOCATION_EXPORT QPlaceMatchRequest
19{
20public:
21 static const QString AlternativeId;
22
23 QPlaceMatchRequest();
24 QPlaceMatchRequest(const QPlaceMatchRequest &other) noexcept;
25 QPlaceMatchRequest(QPlaceMatchRequest &&other) noexcept = default;
26 ~QPlaceMatchRequest();
27
28 QPlaceMatchRequest &operator=(const QPlaceMatchRequest &other) noexcept;
29 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QPlaceMatchRequest)
30
31 void swap(QPlaceMatchRequest &other) noexcept { d_ptr.swap(other.d_ptr); }
32
33 friend inline bool operator==(const QPlaceMatchRequest &lhs, const QPlaceMatchRequest &rhs) noexcept
34 { return lhs.isEqual(rhs); }
35 friend inline bool operator!=(const QPlaceMatchRequest &lhs, const QPlaceMatchRequest &rhs) noexcept
36 { return !lhs.isEqual(rhs); }
37
38 QList<QPlace> places() const;
39 void setPlaces(const QList<QPlace> &places);
40
41 void setResults(const QList<QPlaceSearchResult> &results);
42
43 QVariantMap parameters() const;
44 void setParameters(const QVariantMap &parameters);
45
46 void clear();
47
48private:
49 QSharedDataPointer<QPlaceMatchRequestPrivate> d_ptr;
50
51 bool isEqual(const QPlaceMatchRequest &other) const noexcept;
52 inline QPlaceMatchRequestPrivate *d_func();
53 inline const QPlaceMatchRequestPrivate *d_func() const;
54};
55
56QT_END_NAMESPACE
57
58#endif
QPlaceMatchRequest request
\inmodule QtLocation
Combined button and popup list for selecting options.