Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qplacecontentrequest.cpp
Go to the documentation of this file.
1// Copyright (C) 2022 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
6#include "qgeocoordinate.h"
7
9
11
13{
14 return contentType == other.contentType
15 && limit == other.limit;
16}
17
23
52
57
62
68{
69 if (this == &other)
70 return *this;
71
72 d_ptr = other.d_ptr;
73 return *this;
74}
75
86bool QPlaceContentRequest::isEqual(const QPlaceContentRequest &other) const noexcept
87{
88 Q_D(const QPlaceContentRequest);
89 return *d == *other.d_func();
90}
91
96{
97 Q_D(const QPlaceContentRequest);
98 return d->contentType;
99}
100
109
114{
115 Q_D(const QPlaceContentRequest);
116 return d->placeId;
117}
118
123{
125 d->placeId = identifier;
126}
127
132{
133 Q_D(const QPlaceContentRequest);
134 return d->contentContext;
135}
136
153{
155 d->contentContext = context;
156}
157
167{
168 Q_D(const QPlaceContentRequest);
169 return d->limit;
170}
171
177{
179 d->limit = limit;
180}
181
186{
188 d->clear();
189}
190
191inline QPlaceContentRequestPrivate *QPlaceContentRequest::d_func()
192{
193 return static_cast<QPlaceContentRequestPrivate *>(d_ptr.data());
194}
195
196inline const QPlaceContentRequestPrivate *QPlaceContentRequest::d_func() const
197{
198 return static_cast<const QPlaceContentRequestPrivate *>(d_ptr.constData());
199}
200
\inmodule QtLocation
QPlaceContentRequest & operator=(const QPlaceContentRequest &other) noexcept
Assigns other to this content request and returns a reference to this content request.
void setContentContext(const QVariant &context)
Sets the content context to context.
void setPlaceId(const QString &identifier)
Sets the identifier of the place to fetch content for to identifier.
QString placeId() const
Returns the identifier of the place content is to be fetched for.
int limit() const
Returns the maximum number of content items to retrieve.
~QPlaceContentRequest()
Destroys the request object.
QPlaceContentRequest()
Constructs a new request object.
void setLimit(int limit)
Set the maximum number of content items to retrieve to limit.
void clear()
Clears the content request.
QVariant contentContext() const
Returns backend specific additional content context associated with this place content request.
QPlaceContent::Type contentType() const
Returns the type of content to be requested, for example reviews or images.
void setContentType(QPlaceContent::Type type)
Sets the type of content to be requested.
Type
Defines the type of content.
const T * constData() const noexcept
Returns a const pointer to the shared data object.
Definition qshareddata.h:51
T * data()
Returns a pointer to the shared data object.
Definition qshareddata.h:47
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
\inmodule QtCore
Definition qvariant.h:65
Combined button and popup list for selecting options.
static void * context
GLenum type
GLint limit
#define QT_DEFINE_QSDP_SPECIALIZATION_DTOR(Class)
QSharedPointer< T > other(t)
[5]