20 #ifndef LIBREPCB_WORKSPACE_LIBRARYDOWNLOAD_H
21 #define LIBREPCB_WORKSPACE_LIBRARYDOWNLOAD_H
71 const QByteArray& checksum) noexcept;
81 void start() noexcept;
86 void abort() noexcept;
92 void finished(
bool success, const QString& errMsg);
115 #endif // LIBREPCB_WORKSPACE_LIBRARYDOWNLOAD_H
void downloadErrored(const QString &errMsg) noexcept
Definition: librarydownload.cpp:121
void progressPercent(int percent)
This class is used to download a file asynchronously in a separate thread.
Definition: filedownload.h:46
LibraryDownload & operator=(const LibraryDownload &rhs)=delete
const FilePath & getDestinationDir() const noexcept
Definition: librarydownload.h:58
void progressState(const QString &status)
FilePath mTempDestDir
Definition: librarydownload.h:104
void start() noexcept
Start downloading the library.
Definition: librarydownload.cpp:94
FilePath mDestDir
Definition: librarydownload.h:103
void setExpectedZipFileSize(qint64 bytes) noexcept
Set the expected size of the requested content.
Definition: librarydownload.cpp:72
void downloadSucceeded() noexcept
Definition: librarydownload.cpp:129
~LibraryDownload() noexcept
Definition: librarydownload.cpp:64
This class represents absolute, well-formatted paths to files or directories.
Definition: filepath.h:127
void downloadAborted() noexcept
Definition: librarydownload.cpp:125
QScopedPointer< FileDownload > mFileDownload
Definition: librarydownload.h:102
void abort() noexcept
Abort downloading the library.
Definition: librarydownload.cpp:113
The LibraryDownload class.
Definition: librarydownload.h:47
void setExpectedChecksum(QCryptographicHash::Algorithm algorithm, const QByteArray &checksum) noexcept
Definition: librarydownload.cpp:80
FilePath getPathToLibDir() noexcept
Definition: librarydownload.cpp:182
void finished(bool success, const QString &errMsg)