20#ifndef LIBREPCB_EDITOR_LIBRARYDOWNLOAD_H
21#define LIBREPCB_EDITOR_LIBRARYDOWNLOAD_H
72 const QByteArray& checksum)
noexcept;
82 void start() noexcept;
87 void abort() noexcept;
93 void finished(
bool success, const QString& errMsg);
This class is used to download a file asynchronously in a separate thread.
Definition filedownload.h:46
This class represents absolute, well-formatted paths to files or directories.
Definition filepath.h:127
The LibraryDownload class.
Definition librarydownload.h:48
FilePath getPathToLibDir() noexcept
Definition librarydownload.cpp:198
void finished(bool success, const QString &errMsg)
void setExpectedChecksum(QCryptographicHash::Algorithm algorithm, const QByteArray &checksum) noexcept
Set the expected checksum of the file to download.
Definition librarydownload.cpp:80
LibraryDownload & operator=(const LibraryDownload &rhs)=delete
FilePath mDestDir
Definition librarydownload.h:104
const FilePath & getDestinationDir() const noexcept
Definition librarydownload.h:59
void progressState(const QString &status)
void progressPercent(int percent)
void setExpectedZipFileSize(qint64 bytes) noexcept
Set the expected size of the requested content.
Definition librarydownload.cpp:71
LibraryDownload(const LibraryDownload &other)=delete
void downloadErrored(const QString &errMsg) noexcept
Definition librarydownload.cpp:137
FilePath mTempDestDir
Definition librarydownload.h:105
~LibraryDownload() noexcept
Definition librarydownload.cpp:63
void abort() noexcept
Abort downloading the library.
Definition librarydownload.cpp:129
void downloadSucceeded() noexcept
Definition librarydownload.cpp:145
void start() noexcept
Start downloading the library.
Definition librarydownload.cpp:95
void downloadAborted() noexcept
Definition librarydownload.cpp:141
std::unique_ptr< FileDownload > mFileDownload
Definition librarydownload.h:103
FilePath mTempZipFile
Definition librarydownload.h:106
Definition occmodel.cpp:76