MeVisLab Scripting Reference
MLABHttpDownload Class Reference

Inherits QObject.

Script access


void startDownload (const QUrl &url, const QString &targetFileName)
 
void startDownload (const QString &url, const QString &targetFileName)
 
void cancel ()
 
void finished (bool succeeded)
 
void progress (qint64 bytesReceived, qint64 bytesTotal)
 

Detailed Description

MLABHttpDownload object available via MLAB.

The MLABHttpDownload object asynchronously downloads a file via HTTP.

Member Function Documentation

◆ cancel

void MLABHttpDownload::cancel ( )
slot

Cancels the download.

◆ finished

void MLABHttpDownload::finished ( bool  succeeded)
signal

This signal is emitted when the download has finished completely (or an error occurred).

◆ progress

void MLABHttpDownload::progress ( qint64  bytesReceived,
qint64  bytesTotal 
)
signal

This signal is emitted while downloading a file.

◆ startDownload [1/2]

void MLABHttpDownload::startDownload ( const QString &  url,
const QString &  targetFileName 
)
slot

Starts the asynchronous download of the given URL to the targetFileName.

◆ startDownload [2/2]

void MLABHttpDownload::startDownload ( const QUrl &  url,
const QString &  targetFileName 
)
slot

Starts the asynchronous download of the given URL to the targetFileName..