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)
46 QObject* parent =
nullptr);
64 QString extensionName() const;
67 void setExtensionName(const QString&);
70 QString archiveName() const;
73 void setArchiveName(const QString&);
76 QNetworkReply* reply() const;
85 void emitError(QNetworkReply::NetworkError);
86 void emitProgress(qint64, qint64);
89 QScopedPointer<qSlicerExtensionDownloadTaskPrivate> d_ptr;