libosmscout 1.1.1
Loading...
Searching...
No Matches
osmscout::VoiceDownloadJob Class Reference

#include <libosmscout-client-qt/include/osmscoutclientqt/VoiceManager.h>

Inheritance diagram for osmscout::VoiceDownloadJob:
Collaboration diagram for osmscout::VoiceDownloadJob:

Public Member Functions

 VoiceDownloadJob (QNetworkAccessManager *webCtrl, const AvailableVoice &voice, const QDir &target, bool replaceExisting)
virtual ~VoiceDownloadJob ()
void start ()
uint64_t expectedSize () const override
AvailableVoice getVoice () const
Public Member Functions inherited from osmscout::DownloadJob
 DownloadJob (QNetworkAccessManager *webCtrl, QDir target, bool replaceExisting)
 ~DownloadJob () override
 DownloadJob (const DownloadJob &)=delete
 DownloadJob (DownloadJob &&)=delete
DownloadJoboperator= (const DownloadJob &)=delete
DownloadJoboperator== (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

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()

virtual 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()

void osmscout::VoiceDownloadJob::start ( )

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