|
libosmscout 1.1.1
|
#include <libosmscout-client-qt/include/osmscoutclientqt/MapDownloader.h>


Public Member Functions | |
| MapDownloadJob (QNetworkAccessManager *webCtrl, AvailableMapsModelMap map, QDir target, bool replaceExisting) | |
| ~MapDownloadJob () override | |
| void | start () |
| QString | getMapName () const |
| QStringList | getMapPath () const |
| uint64_t | expectedSize () const override |
| Public Member Functions inherited from osmscout::DownloadJob | |
| DownloadJob (QNetworkAccessManager *webCtrl, QDir target, bool replaceExisting) | |
| ~DownloadJob () override | |
| DownloadJob (const DownloadJob &)=delete | |
| DownloadJob (DownloadJob &&)=delete | |
| DownloadJob & | operator= (const DownloadJob &)=delete |
| DownloadJob & | operator== (const DownloadJob &&)=delete |
| void | start (const QString &serverBasePath, const QStringList &files) |
| void | cancel () |
| bool | isDone () const |
| bool | isSuccessful () const |
| bool | isDownloading () const |
| QString | getError () const |
| bool | isReplaceExisting () const |
| QDir | getDestinationDirectory () const |
| double | getProgress () |
| QString | getDownloadingFile () |
Additional Inherited Members | |
| Public Slots inherited from osmscout::DownloadJob | |
| void | onJobFailed (QString errorMessage, bool recoverable) |
| void | onJobFinished (QString path) |
| void | onDownloadProgress (uint64_t) |
| void | downloadNextFile () |
| Signals inherited from osmscout::DownloadJob | |
| void | finished () |
| void | failed (QString error) |
| void | canceled () |
| void | downloadProgress () |
| Protected Member Functions inherited from osmscout::DownloadJob | |
| void | clearJobs () |
| Protected Attributes inherited from osmscout::DownloadJob | |
| QList< FileDownloader * > | jobs |
| QNetworkAccessManager * | webCtrl |
| QDir | target |
| bool | done {false} |
| bool | started {false} |
| bool | successful {false} |
| bool | canceledByUser {false} |
| uint64_t | downloadedBytes {0} |
| QString | error |
| bool | replaceExisting |
Utility class for downloading map db described by AvailableMapsModelMap over http.
| osmscout::MapDownloadJob::MapDownloadJob | ( | QNetworkAccessManager * | webCtrl, |
| AvailableMapsModelMap | map, | ||
| QDir | target, | ||
| bool | replaceExisting ) |
|
override |
Cancel downloading, when db is not downloaded successfully, remove it from disk (even already downloaded files).
|
inlineoverridevirtual |
Implements osmscout::DownloadJob.
|
inline |
|
inline |
| void osmscout::MapDownloadJob::start | ( | ) |