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