#include <mlabScriptWrappers.h>
Inherits QObject.
 | 
 
  
 | 
| 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) | 
|   | 
MLABHttpDownload object available via MLAB. 
The MLABHttpDownload object asynchronously downloads a file via HTTP. 
 
◆ cancel
  
  
      
        
          | void MLABHttpDownload::cancel  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ 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.