The LibraryDownload class.
More...
#include <librarydownload.h>
Inherits QObject.
|
void | start () noexcept |
| Start downloading the library.
|
|
void | abort () noexcept |
| Abort downloading the library.
|
|
◆ LibraryDownload() [1/3]
◆ LibraryDownload() [2/3]
◆ LibraryDownload() [3/3]
◆ ~LibraryDownload()
◆ getDestinationDir()
const FilePath & getDestinationDir |
( |
| ) |
const |
|
inlinenoexcept |
◆ setExpectedZipFileSize()
void setExpectedZipFileSize |
( |
qint64 |
bytes | ) |
|
|
noexcept |
Set the expected size of the requested content.
If set, this size will be used to calculate the download progress in percent in case that there is no "Content-Length" attribute in the received HTTP header.
- Parameters
-
bytes | Expected content size of the reply in bytes |
◆ setExpectedChecksum()
void setExpectedChecksum |
( |
QCryptographicHash::Algorithm |
algorithm, |
|
|
const QByteArray & |
checksum |
|
) |
| |
|
noexcept |
Set the expected checksum of the file to download.
If set, the checksum of the downloaded file will be compared with this checksum. If they differ, the file gets removed and an error will be reported.
- Parameters
-
algorithm | The checksum algorithm to be used |
checksum | The expected checksum of the file to download |
◆ operator=()
◆ start
Start downloading the library.
◆ abort
Abort downloading the library.
◆ progressState
void progressState |
( |
const QString & |
status | ) |
|
|
signal |
◆ progressPercent
void progressPercent |
( |
int |
percent | ) |
|
|
signal |
◆ finished
void finished |
( |
bool |
success, |
|
|
const QString & |
errMsg |
|
) |
| |
|
signal |
◆ abortRequested
◆ downloadErrored()
void downloadErrored |
( |
const QString & |
errMsg | ) |
|
|
privatenoexcept |
◆ downloadAborted()
◆ downloadSucceeded()
void downloadSucceeded |
( |
| ) |
|
|
privatenoexcept |
◆ getPathToLibDir()
◆ mFileDownload
◆ mDestDir
◆ mTempDestDir
◆ mTempZipFile
The documentation for this class was generated from the following files: