7#include "../qplacemanagerengine_nokiav2.h"
8#include "../qgeoerror_messages.h"
11#include <QCoreApplication>
12#include <QtCore/QJsonDocument>
13#include <QtCore/QJsonObject>
30 this, &QPlaceContentReplyImpl::replyFinished);
32 this, &QPlaceContentReplyImpl::replyError);
49void QPlaceContentReplyImpl::replyFinished()
71 &previous, &
next, m_engine);
static QString translate(const char *context, const char *key, const char *disambiguation=nullptr, int n=-1)
\threadsafe
QByteArray readAll()
Reads all remaining data from the device, and returns it as a byte array.
QString errorString() const
Returns a human-readable description of the last device error that occurred.
\inmodule QtCore\reentrant
static QJsonDocument fromJson(const QByteArray &json, QJsonParseError *error=nullptr)
Parses json as a UTF-8 encoded JSON document, and creates a QJsonDocument from it.
\inmodule QtCore\reentrant
The QNetworkReply class contains the data and headers for a request sent with QNetworkAccessManager.
void errorOccurred(QNetworkReply::NetworkError)
NetworkError error() const
Returns the error that was found during the processing of this request.
virtual void abort()=0
Aborts the operation immediately and close down any network connections still open.
NetworkError
Indicates all possible error conditions found during the processing of the request.
void finished()
This signal is emitted when the reply has finished processing.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
QObject * sender() const
Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; othe...
void destroyed(QObject *=nullptr)
This signal is emitted immediately before the object obj is destroyed, after any instances of QPointe...
void deleteLater()
\threadsafe
QPlaceContentReplyImpl(const QPlaceContentRequest &request, QNetworkReply *reply, QPlaceManagerEngineNokiaV2 *engine)
~QPlaceContentReplyImpl()
int totalCount() const
Returns the total number of content objects for a place.
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.
void setNextPageRequest(const QPlaceContentRequest &next)
Sets the place content request that can be used to request the next batch of place content results to...
QPlaceContentRequest request() const
Returns the content request that was used to generate this reply.
QPlaceReply::Error error() const
Returns the error code.
void errorOccurred(QPlaceReply::Error error, const QString &errorString=QString())
This signal is emitted when an error has been detected in the processing of this reply.
void finished()
This signal is emitted when this reply has finished processing.
Error
Describes an error which occurred during an operation.
QString errorString() const
Returns the error string of the reply.
void setError(QPlaceReply::Error error, const QString &errorString)
Sets the error and errorString of the reply.
void setFinished(bool finished)
Sets the status of whether the reply is finished or not.
\macro QT_RESTRICTED_CAST_FROM_ASCII
void parseCollection(QPlaceContent::Type type, const QJsonObject &object, QPlaceContent::Collection *collection, int *totalCount, QPlaceContentRequest *previous, QPlaceContentRequest *next, const QPlaceManagerEngineNokiaV2 *engine)
Combined button and popup list for selecting options.
emscripten::val document()
DBusConnection const char DBusError * error
QT_BEGIN_NAMESPACE const char NOKIA_PLUGIN_CONTEXT_NAME[]
#define QStringLiteral(str)
QNetworkRequest request(url)