Some work on network.

This commit is contained in:
Martin Rotter 2014-08-21 16:28:25 +02:00
parent b3e1b5bbe9
commit bdb156e28b

View File

@ -35,18 +35,13 @@ class NetworkFactory {
// Performs SYNCHRONOUS download if favicon for the site,
// given URL belongs to.
static QNetworkReply::NetworkError downloadIcon(const QString &url,
int timeout,
QIcon &output);
static QNetworkReply::NetworkError downloadIcon(const QString &url, int timeout, QIcon &output);
// Performs SYNCHRONOUS download of file with given URL
// and given timeout.
static QNetworkReply::NetworkError downloadFile(const QString &url,
int timeout,
QByteArray &output,
bool protected_contents = false,
const QString &username = QString(),
const QString &password = QString());
static QNetworkReply::NetworkError downloadFile(const QString &url, int timeout, QByteArray &output,
bool protected_contents = false, const QString &username = QString(),
const QString &password = QString());
};
#endif // NETWORKFACTORY_H