21 #ifndef __qSlicerExtensionDownloadTask_h 22 #define __qSlicerExtensionDownloadTask_h 25 #include <QNetworkReply> 28 #include "qSlicerBaseQTCoreExport.h" 30 class qSlicerExtensionDownloadTaskPrivate;
35 Q_PROPERTY(
QVariantMap metadata READ metadata WRITE setMetadata)
36 Q_PROPERTY(QString extensionName READ extensionName WRITE setExtensionName)
37 Q_PROPERTY(QString archiveName READ archiveName WRITE setArchiveName)
38 Q_PROPERTY(QNetworkReply* reply READ reply)
39 Q_PROPERTY(
bool installDependencies READ installDependencies WRITE setInstallDependencies)
47 QObject* parent =
nullptr);
65 QString extensionName() const;
68 void setExtensionName(const QString&);
71 QString archiveName() const;
74 void setArchiveName(const QString&);
77 QNetworkReply* reply() const;
81 bool installDependencies() const;
82 void setInstallDependencies(
bool confirm);
91 void emitError(QNetworkReply::NetworkError);
92 void emitProgress(qint64, qint64);
95 QScopedPointer<qSlicerExtensionDownloadTaskPrivate> d_ptr;