32 #ifndef NETWORKFACTORY_H
33 #define NETWORKFACTORY_H
35 #include <QNetworkReply>
36 #include <QCoreApplication>
61 static QNetworkReply::NetworkError
downloadFile(
const QString &url,
64 bool protected_contents =
false,
65 const QString &username = QString(),
66 const QString &password = QString());
69 #endif // NETWORKFACTORY_H
static QString networkErrorText(QNetworkReply::NetworkError error_code)
Gets human readable text for given network error.
static QNetworkReply::NetworkError downloadFile(const QString &url, int timeout, QByteArray &output, bool protected_contents=false, const QString &username=QString(), const QString &password=QString())
Performs SYNCHRONOUS download of file with given URL and given timeout.
Network-related functionality.