| libosmscout 0.1
    | 
Utility class for downloading map db described by AvailableMapsModelMap over http. More...
#include <MapDownloader.h>
 Inheritance diagram for osmscout::MapDownloadJob:
 Inheritance diagram for osmscout::MapDownloadJob:| Public Member Functions | |
| uint64_t | expectedSize () const override | 
| QString | getMapName () const | 
| QStringList | getMapPath () const | 
| MapDownloadJob (QNetworkAccessManager *webCtrl, AvailableMapsModelMap map, QDir target, bool replaceExisting) | |
| void | start () | 
| ~MapDownloadJob () override | |
| Cancel downloading, when db is not downloaded successfully, remove it from disk (even already downloaded files). | |
|  Public Member Functions inherited from osmscout::DownloadJob | |
| void | cancel () | 
| Cancel downloading, remove temporary files (of unfinished jobs), emit canceled signal. | |
| DownloadJob (const DownloadJob &)=delete | |
| DownloadJob (DownloadJob &&)=delete | |
| DownloadJob (QNetworkAccessManager *webCtrl, QDir target, bool replaceExisting) | |
| QDir | getDestinationDirectory () const | 
| QString | getDownloadingFile () | 
| QString | getError () const | 
| double | getProgress () | 
| bool | isDone () const | 
| bool | isDownloading () const | 
| bool | isReplaceExisting () const | 
| bool | isSuccessful () const | 
| DownloadJob & | operator= (const DownloadJob &)=delete | 
| DownloadJob & | operator== (const DownloadJob &&)=delete | 
| void | start (const QString &serverBasePath, const QStringList &files) | 
| ~DownloadJob () override | |
| Additional Inherited Members | |
|  Public Slots inherited from osmscout::DownloadJob | |
| void | downloadNextFile () | 
| void | onDownloadProgress (uint64_t) | 
| void | onJobFailed (QString errorMessage, bool recoverable) | 
| void | onJobFinished (QString path) | 
|  Signals inherited from osmscout::DownloadJob | |
| void | canceled () | 
| void | downloadProgress () | 
| void | failed (QString error) | 
| void | finished () | 
|  Protected Member Functions inherited from osmscout::DownloadJob | |
| void | clearJobs () | 
| Clear all file download jobs, it removes temporary *.download files. | |
|  Protected Attributes inherited from osmscout::DownloadJob | |
| bool | canceledByUser {false} | 
| bool | done {false} | 
| uint64_t | downloadedBytes {0} | 
| QString | error | 
| QList< FileDownloader * > | jobs | 
| bool | replaceExisting | 
| bool | started {false} | 
| bool | successful {false} | 
| QDir | target | 
| QNetworkAccessManager * | webCtrl | 
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).
References osmscout::DownloadJob::clearJobs(), osmscout::DownloadJob::started, osmscout::DownloadJob::successful, and osmscout::DownloadJob::target.
| 
 | inlineoverridevirtual | 
Implements osmscout::DownloadJob.
| 
 | inline | 
| 
 | inline | 
| void osmscout::MapDownloadJob::start | ( | ) | 
References osmscout::DownloadJob::done, osmscout::DownloadJob::error, osmscout::DownloadJob::failed(), osmscout::AvailableMapsModelMap::getCreation(), osmscout::AvailableMapsModelItem::getName(), osmscout::AvailableMapsModelItem::getPath(), osmscout::AvailableMapsModelMap::getProvider(), osmscout::AvailableMapsModelMap::getServerDirectory(), osmscout::AvailableMapsModelMap::getSize(), osmscout::AvailableMapsModelMap::getVersion(), osmscout::DownloadJob::onJobFailed(), osmscout::DownloadJob::start(), osmscout::DownloadJob::started, osmscout::StringVectorToQStringList(), and osmscout::DownloadJob::target.