Some work on network.
This commit is contained in:
parent
b3e1b5bbe9
commit
bdb156e28b
1 changed files with 4 additions and 9 deletions
|
|
@ -35,17 +35,12 @@ class NetworkFactory {
|
||||||
|
|
||||||
// Performs SYNCHRONOUS download if favicon for the site,
|
// Performs SYNCHRONOUS download if favicon for the site,
|
||||||
// given URL belongs to.
|
// given URL belongs to.
|
||||||
static QNetworkReply::NetworkError downloadIcon(const QString &url,
|
static QNetworkReply::NetworkError downloadIcon(const QString &url, int timeout, QIcon &output);
|
||||||
int timeout,
|
|
||||||
QIcon &output);
|
|
||||||
|
|
||||||
// Performs SYNCHRONOUS download of file with given URL
|
// Performs SYNCHRONOUS download of file with given URL
|
||||||
// and given timeout.
|
// and given timeout.
|
||||||
static QNetworkReply::NetworkError downloadFile(const QString &url,
|
static QNetworkReply::NetworkError downloadFile(const QString &url, int timeout, QByteArray &output,
|
||||||
int timeout,
|
bool protected_contents = false, const QString &username = QString(),
|
||||||
QByteArray &output,
|
|
||||||
bool protected_contents = false,
|
|
||||||
const QString &username = QString(),
|
|
||||||
const QString &password = QString());
|
const QString &password = QString());
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue