libosmscout  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
osmscout::VoiceDownloadJob Class Reference

Utility class for downloading voice described by AvailableVoice over http. More...

#include <VoiceManager.h>

+ Inheritance diagram for osmscout::VoiceDownloadJob:

Public Member Functions

uint64_t expectedSize () const override
 
AvailableVoice getVoice () const
 
void start ()
 
 VoiceDownloadJob (QNetworkAccessManager *webCtrl, const AvailableVoice &voice, const QDir &target, bool replaceExisting)
 
virtual ~VoiceDownloadJob ()
 
- Public Member Functions inherited from osmscout::DownloadJob
void cancel ()
 Cancel downloading, remove temporary files (of unfinished jobs), emit canceled signal. More...
 
 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
 
DownloadJoboperator= (const DownloadJob &)=delete
 
DownloadJoboperator== (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. More...
 
- 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
 

Detailed Description

Utility class for downloading voice described by AvailableVoice over http.

Constructor & Destructor Documentation

◆ VoiceDownloadJob()

osmscout::VoiceDownloadJob::VoiceDownloadJob ( QNetworkAccessManager *  webCtrl,
const AvailableVoice voice,
const QDir &  target,
bool  replaceExisting 
)

◆ ~VoiceDownloadJob()

osmscout::VoiceDownloadJob::~VoiceDownloadJob ( )
virtual

Member Function Documentation

◆ expectedSize()

uint64_t osmscout::VoiceDownloadJob::expectedSize ( ) const
inlineoverridevirtual

Implements osmscout::DownloadJob.

◆ getVoice()

AvailableVoice osmscout::VoiceDownloadJob::getVoice ( ) const
inline

◆ start()


The documentation for this class was generated from the following files: