#ifndef IOUTILS_HPP #define IOUTILS_HPP #include #include #include #include #include namespace ioutils { extern QNetworkAccessManager networkManager; void addLogEntry(QNetworkReply* reply, QByteArray data, QString result, QString filename); void getJson(QUrl target, QList> headers, std::function callback); void postJson(QUrl target, QList> headers, QByteArray body, std::function callback); void getData(QUrl target, QList> headers, std::function callback); void postData(QUrl target, QList> headers, QByteArray body, std::function callback); void postMultipart(QUrl target, QList> headers, QHttpMultiPart *body, std::function callback); void postMultipartData(QUrl target, QList> headers, QHttpMultiPart *body, std::function callback); QString methodString(QNetworkAccessManager::Operation operation); QString httpString(int responseCode); } // namespace ioutils #endif // IOUTILS_HPP