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
qplacecontentreply.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
5#include "qplacereply_p.h"
6
7#include <QtLocation/QPlaceContentRequest>
8
19
21
23
45
52
57{
58 Q_D(const QPlaceContentReply);
59 return d->contentCollection;
60}
61
69
74{
76 d->contentCollection = content;
77}
78
86{
87 Q_D(const QPlaceContentReply);
88 return d->totalCount;
89}
90
95{
97 d->totalCount = total;
98}
99
104{
105 Q_D(const QPlaceContentReply);
106 return d->contentRequest;
107}
108
114{
115 Q_D(const QPlaceContentReply);
116 return d->previousPageRequest;
117}
118
124{
125 Q_D(const QPlaceContentReply);
126 return d->nextPageRequest;
127}
128
133{
135 d->contentRequest = request;
136}
137
143{
145 d->previousPageRequest = previous;
146}
147
153{
155 d->nextPageRequest = next;
156}
\inmodule QtCore
Definition qobject.h:103
QPlaceContent::Collection contentCollection
QPlaceContentRequest contentRequest
QPlaceContentRequest nextPageRequest
QPlaceContentRequest previousPageRequest
\inmodule QtLocation
QPlaceContentRequest previousPageRequest() const
Returns a place content request that can be used to request the previous batch of place content resul...
int totalCount() const
Returns the total number of content objects for a place.
QPlaceContentRequest nextPageRequest() const
Returns a place content request that can be used to request the next batch of place content results.
void setPreviousPageRequest(const QPlaceContentRequest &previous)
Sets the place content request that can be used to request the previous batch of place content result...
void setTotalCount(int total)
Sets the total number of content objects for a place.
void setRequest(const QPlaceContentRequest &request)
Sets the content request used to generate this this reply.
void setContent(const QPlaceContent::Collection &content)
Sets the content of the reply.
QPlaceContent::Collection content() const
Returns the collection of content retrieved.
virtual ~QPlaceContentReply()
Destroys the reply.
QPlaceReply::Type type() const override
Returns the type of reply.
void setNextPageRequest(const QPlaceContentRequest &next)
Sets the place content request that can be used to request the next batch of place content results to...
QPlaceContentReply(QObject *parent=nullptr)
Constructs a content reply with a given parent.
QPlaceContentRequest request() const
Returns the content request that was used to generate this reply.
\inmodule QtLocation
\inmodule QtLocation
Definition qplacereply.h:15
Type
Describes the reply's type.
Definition qplacereply.h:31
short next
Definition keywords.cpp:445
Combined button and popup list for selecting options.
QNetworkRequest request(url)