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
qplacecontentrequest.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 QPLACECONTENTREQUEST_H
5#define QPLACECONTENTREQUEST_H
6
7#include <QtCore/QSharedDataPointer>
8
9#include <QtLocation/QPlaceContent>
10
12
13class QPlaceContentRequestPrivate;
14QT_DECLARE_QSDP_SPECIALIZATION_DTOR_WITH_EXPORT(QPlaceContentRequestPrivate, Q_LOCATION_EXPORT)
15
16class Q_LOCATION_EXPORT QPlaceContentRequest
17{
18public:
19 QPlaceContentRequest();
20 QPlaceContentRequest(const QPlaceContentRequest &other) noexcept;
21 QPlaceContentRequest(QPlaceContentRequest &&other) noexcept = default;
22 ~QPlaceContentRequest();
23
24 QPlaceContentRequest &operator=(const QPlaceContentRequest &other) noexcept;
25 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QPlaceContentRequest)
26
27 void swap(QPlaceContentRequest &other) noexcept { d_ptr.swap(other.d_ptr); }
28
29 friend inline bool operator==(const QPlaceContentRequest &lhs,
30 const QPlaceContentRequest &rhs) noexcept
31 { return lhs.isEqual(rhs); }
32 friend inline bool operator!=(const QPlaceContentRequest &lhs,
33 const QPlaceContentRequest &rhs) noexcept
34 { return !lhs.isEqual(rhs); }
35
36 QPlaceContent::Type contentType() const;
37 void setContentType(QPlaceContent::Type type);
38
39 QString placeId() const;
40 void setPlaceId(const QString &identifier);
41
42 QVariant contentContext() const;
43 void setContentContext(const QVariant &context);
44
45 int limit() const;
46 void setLimit(int limit);
47
48 void clear();
49
50private:
51 QSharedDataPointer<QPlaceContentRequestPrivate> d_ptr;
52 bool isEqual(const QPlaceContentRequest &other) const noexcept;
53
54 inline QPlaceContentRequestPrivate *d_func();
55 inline const QPlaceContentRequestPrivate *d_func() const;
56};
57
58QT_END_NAMESPACE
59
60#endif
\inmodule QtLocation