20#ifndef LIBREPCB_EDITOR_LIBRARYDOWNLOAD_H
21#define LIBREPCB_EDITOR_LIBRARYDOWNLOAD_H
70 const QByteArray& checksum)
noexcept;
80 void start() noexcept;
85 void abort() noexcept;
91 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:129
The LibraryDownload class.
Definition: librarydownload.h:46
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:102
const FilePath & getDestinationDir() const noexcept
Definition: librarydownload.h:57
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
QScopedPointer< FileDownload > mFileDownload
Definition: librarydownload.h:101
LibraryDownload(const LibraryDownload &other)=delete
void downloadErrored(const QString &errMsg) noexcept
Definition: librarydownload.cpp:137
FilePath mTempDestDir
Definition: librarydownload.h:103
~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
FilePath mTempZipFile
Definition: librarydownload.h:104
Definition: occmodel.cpp:77