Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Properties | Signals | Public Member Functions | Protected Slots | Protected Attributes
qSlicerExtensionDownloadTask Class Reference

#include <Base/QTCore/qSlicerExtensionDownloadTask.h>

Inheritance diagram for qSlicerExtensionDownloadTask:
Inheritance graph
[legend]
Collaboration diagram for qSlicerExtensionDownloadTask:
Collaboration graph
[legend]

Properties

QString archiveName
 
QString extensionName
 
bool installDependencies
 
QVariantMap metadata
 
QNetworkReply reply
 

Signals

void error (qSlicerExtensionDownloadTask *, QNetworkReply::NetworkError)
 
void finished (qSlicerExtensionDownloadTask *)
 
void progress (qSlicerExtensionDownloadTask *, qint64 received, qint64 total)
 

Public Member Functions

QString archiveName () const
 Get archive name. More...
 
QString extensionName () const
 Get extension name. More...
 
bool installDependencies () const
 
QVariantMap metadata () const
 Get extension metadata. More...
 
 qSlicerExtensionDownloadTask (QNetworkReply *reply, QObject *parent=nullptr)
 
QNetworkReply * reply () const
 Get associated network reply. More...
 
void setArchiveName (const QString &)
 Set archive name. More...
 
void setExtensionName (const QString &)
 Set extension name. More...
 
void setInstallDependencies (bool confirm)
 
void setMetadata (const QVariantMap &)
 
 ~qSlicerExtensionDownloadTask () override
 Destructor. More...
 

Protected Slots

void emitError (QNetworkReply::NetworkError)
 
void emitFinished ()
 
void emitProgress (qint64, qint64)
 

Protected Attributes

QScopedPointer< qSlicerExtensionDownloadTaskPrivate > d_ptr
 

Detailed Description

Definition at line 32 of file qSlicerExtensionDownloadTask.h.

Property Documentation

◆ archiveName

QString qSlicerExtensionDownloadTask::archiveName
readwrite

Definition at line 37 of file qSlicerExtensionDownloadTask.h.

◆ extensionName

QString qSlicerExtensionDownloadTask::extensionName
readwrite

Definition at line 36 of file qSlicerExtensionDownloadTask.h.

◆ installDependencies

bool qSlicerExtensionDownloadTask::installDependencies
readwrite

Definition at line 39 of file qSlicerExtensionDownloadTask.h.

◆ metadata

QVariantMap qSlicerExtensionDownloadTask::metadata
readwrite

Definition at line 35 of file qSlicerExtensionDownloadTask.h.

◆ reply

QNetworkReply qSlicerExtensionDownloadTask::reply
read

Definition at line 38 of file qSlicerExtensionDownloadTask.h.

Constructor & Destructor Documentation

◆ qSlicerExtensionDownloadTask()

qSlicerExtensionDownloadTask::qSlicerExtensionDownloadTask ( QNetworkReply *  reply,
QObject *  parent = nullptr 
)
explicit

Constructor.

The task takes ownership of the reply and will delete it when the task is destroyed.

◆ ~qSlicerExtensionDownloadTask()

qSlicerExtensionDownloadTask::~qSlicerExtensionDownloadTask ( )
override

Destructor.

Member Function Documentation

◆ archiveName()

QString qSlicerExtensionDownloadTask::archiveName ( ) const

Get archive name.

◆ emitError

void qSlicerExtensionDownloadTask::emitError ( QNetworkReply::NetworkError  )
protectedslot

◆ emitFinished

void qSlicerExtensionDownloadTask::emitFinished ( )
protectedslot

◆ emitProgress

void qSlicerExtensionDownloadTask::emitProgress ( qint64  ,
qint64   
)
protectedslot

◆ error

void qSlicerExtensionDownloadTask::error ( qSlicerExtensionDownloadTask ,
QNetworkReply::NetworkError   
)
signal

◆ extensionName()

QString qSlicerExtensionDownloadTask::extensionName ( ) const

Get extension name.

◆ finished

void qSlicerExtensionDownloadTask::finished ( qSlicerExtensionDownloadTask )
signal

◆ installDependencies()

bool qSlicerExtensionDownloadTask::installDependencies ( ) const

Install extensions that the requested extension needs. Enabled by default.

◆ metadata()

QVariantMap qSlicerExtensionDownloadTask::metadata ( ) const

Get extension metadata.

◆ progress

void qSlicerExtensionDownloadTask::progress ( qSlicerExtensionDownloadTask ,
qint64  received,
qint64  total 
)
signal

◆ reply()

QNetworkReply* qSlicerExtensionDownloadTask::reply ( ) const

Get associated network reply.

◆ setArchiveName()

void qSlicerExtensionDownloadTask::setArchiveName ( const QString &  )

Set archive name.

◆ setExtensionName()

void qSlicerExtensionDownloadTask::setExtensionName ( const QString &  )

Set extension name.

◆ setInstallDependencies()

void qSlicerExtensionDownloadTask::setInstallDependencies ( bool  confirm)

◆ setMetadata()

void qSlicerExtensionDownloadTask::setMetadata ( const QVariantMap )

Set extension metadata.

This sets the extension metadata that is associated with the task. If provided by the metadata, this also sets the extension name and archive name, if not previously set.

See also
setExtensionName, setArchiveName

Member Data Documentation

◆ d_ptr

QScopedPointer<qSlicerExtensionDownloadTaskPrivate> qSlicerExtensionDownloadTask::d_ptr
protected

Definition at line 95 of file qSlicerExtensionDownloadTask.h.


The documentation for this class was generated from the following file: