20 #ifndef _ENABLE_QT_EXPERIMENTAL_
21 #error You should define _ENABLE_QT_EXPERIMENTAL_ in order to use this experimental header file.
24 #include <QtCore/QJsonDocument>
25 #include <QtCore/QUrl>
39 class JsonAsyncReader;
53 typedef std::shared_ptr<QJsonDocument> QJsonDocumentSptr;
55 typedef QVector<QPair<QString, QString>> QJsonParameters;
64 QJsonDocumentSptr
read(QUrl
const& uri)
const;
73 QJsonDocumentSptr
read(QString
const& host, QJsonParameters
const& parameters)
const;
79 std::shared_ptr<JsonAsyncReader> p_;
Definition: HttpAsyncReader.h:45
Class that downloads http JSON files synchronously.
Definition: JsonReader.h:46
Top-level namespace for all things Unity-related.
Definition: Version.h:49
QJsonDocumentSptr read(QUrl const &uri) const
Downloads a remote JSON document and returns a parser containing the data.