|
libosmscout 1.1.1
|
Downloads a file specified by URL. More...
#include <libosmscout-client-qt/include/osmscoutclientqt/FileDownloader.h>


Public Slots | |
| void | startDownload () |
Signals | |
| void | downloadedBytes (uint64_t sz) |
| void | writtenBytes (uint64_t sz) |
| void | finished (QString path) |
| void | error (QString error_text, bool recoverable) |
Public Member Functions | |
| FileDownloader (QNetworkAccessManager *manager, QString url, QString path, QObject *parent=nullptr) | |
| ~FileDownloader () override | |
| operator bool () const | |
| QString | getFileName () const |
| QString | getFilePath () const |
| uint64_t | getBytesDownloaded () const |
Protected Slots | |
| void | onNetworkReadyRead () |
| void | onDownloaded () |
| void | onNetworkError (QNetworkReply::NetworkError code) |
| void | onTimeout () |
Protected Member Functions | |
| void | onFinished () |
| void | onError (const QString &err) |
| bool | restartDownload () |
| Restart download if download retries are not used up. | |
Downloads a file specified by URL.
Downloads a file as specified by URL and stores in a given path. If the required directories do not exist, creates all parent directories as needed.
|
explicit |
|
override |
|
signal |
|
signal |
|
signal |
| uint64_t osmscout::FileDownloader::getBytesDownloaded | ( | ) | const |
|
inline |
|
inline |
|
protectedslot |
|
protected |
|
protected |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
inlineexplicit |
|
protected |
Restart download if download retries are not used up.
|
slot |
|
signal |