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