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)
64 QString extensionName() const;
67 void setExtensionName(const QString&);
70 QString archiveName() const;
73 void setArchiveName(const QString&);
76 QNetworkReply* reply() const;
79 void finished(qSlicerExtensionDownloadTask*);
80 void error(qSlicerExtensionDownloadTask*, QNetworkReply::NetworkError);
81 void progress(qSlicerExtensionDownloadTask*, qint64 received, qint64 total);
85 void emitError(QNetworkReply::NetworkError);
86 void emitProgress(qint64, qint64);
89 QScopedPointer<qSlicerExtensionDownloadTaskPrivate> d_ptr;
92 Q_DECLARE_PRIVATE(qSlicerExtensionDownloadTask);
93 Q_DISABLE_COPY(qSlicerExtensionDownloadTask);