20 #ifndef LIBREPCB_CORE_FILEDOWNLOAD_H 21 #define LIBREPCB_CORE_FILEDOWNLOAD_H 26 #include "../fileio/filepath.h" 77 const QByteArray& checksum) noexcept;
QByteArray mExpectedChecksum
Definition: filedownload.h:126
This class is used to download a file asynchronously in a separate thread.
Definition: filedownload.h:46
Definition: occmodel.cpp:76
void finalizeRequest() override
Definition: filedownload.cpp:97
void prepareRequest() override
Definition: filedownload.cpp:71
FilePath mExtractZipToDir
Definition: filedownload.h:127
void setZipExtractionDirectory(const FilePath &dir) noexcept
Set extraction directory of the ZIP file to download.
Definition: filedownload.cpp:62
Base class for network requests which are processed in the network access manager.
Definition: networkrequestbase.h:55
QCryptographicHash::Algorithm mHashAlgorithm
Definition: filedownload.h:125
void fetchNewData() noexcept override
Definition: filedownload.cpp:162
void fileDownloaded(librepcb::FilePath filepath)
File successfully downloaded signal (emitted right before finished())
~FileDownload() noexcept
Definition: filedownload.cpp:48
This class represents absolute, well-formatted paths to files or directories.
Definition: filepath.h:127
void emitSuccessfullyFinishedSignals() noexcept override
Definition: filedownload.cpp:155
void zipFileExtracted(librepcb::FilePath directory)
ZIP file successfully extracted signal (emitted right before finished())
FilePath mDestination
Definition: filedownload.h:123
QScopedPointer< QSaveFile > mFile
Definition: filedownload.h:124
FileDownload & operator=(const FileDownload &rhs)=delete
void setExpectedChecksum(QCryptographicHash::Algorithm algorithm, const QByteArray &checksum) noexcept
Set the expected checksum of the file to download.
Definition: filedownload.cpp:55