21 #ifndef _ENABLE_QT_EXPERIMENTAL_
22 #error You should define _ENABLE_QT_EXPERIMENTAL_ in order to use this experimental header file.
25 #include <QtCore/QJsonDocument>
26 #include <QtCore/QUrl>
40 class JsonAsyncReader;
54 typedef std::shared_ptr<QJsonDocument> QJsonDocumentSptr;
56 typedef QVector<QPair<QString, QString>> QJsonParameters;
65 QJsonDocumentSptr
read(QUrl
const& uri)
const;
74 QJsonDocumentSptr
read(QString
const& host, QJsonParameters
const& parameters)
const;
80 std::shared_ptr<JsonAsyncReader> p_;
Class that downloads http JSON files synchronously.
Definition: JsonReader.h:47
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.