mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-10-31 00:06:02 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			74 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			74 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| /************************************************************************
 | |
|  * This file has been generated automatically from                      *
 | |
|  *                                                                      *
 | |
|  * src/gui/qgsfiledownloaderdialog.h                                    *
 | |
|  *                                                                      *
 | |
|  * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | |
|  ************************************************************************/
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| class QgsFileDownloaderDialog : QProgressDialog
 | |
| {
 | |
| %Docstring(signature="appended")
 | |
| :py:class:`QgsFileDownloaderDialog` is a QProgressDialog subclass which
 | |
| handles file downloads and user feedback.
 | |
| 
 | |
| Internally, it uses :py:class:`QgsFileDownloader` to handle the download,
 | |
| while showing progress via a progress dialog and supporting
 | |
| cancellation.
 | |
| 
 | |
| .. note::
 | |
| 
 | |
|    Until QGIS 3.0 this functionality was available via :py:class:`QgsFileDownloader`.
 | |
| 
 | |
| .. versionadded:: 3.0
 | |
| %End
 | |
| 
 | |
| %TypeHeaderCode
 | |
| #include "qgsfiledownloaderdialog.h"
 | |
| %End
 | |
|   public:
 | |
| 
 | |
|     QgsFileDownloaderDialog( const QUrl &url, const QString &outputFileName, const QString &authcfg = QString() );
 | |
| %Docstring
 | |
| :py:class:`QgsFileDownloader`
 | |
| 
 | |
| :param url: the download url
 | |
| :param outputFileName: file name where the downloaded content will be stored
 | |
| :param authcfg: optionally apply this authentication configuration
 | |
| %End
 | |
| 
 | |
|   signals:
 | |
|     void downloadCompleted();
 | |
| %Docstring
 | |
| Emitted when the download has completed successfully
 | |
| %End
 | |
|     void downloadExited();
 | |
| %Docstring
 | |
| Emitted always when the downloader exits
 | |
| %End
 | |
|     void downloadCanceled();
 | |
| %Docstring
 | |
| Emitted when the download was canceled by the user
 | |
| %End
 | |
|     void downloadError( QStringList errorMessages );
 | |
| %Docstring
 | |
| Emitted when an error makes the download fail
 | |
| %End
 | |
|     void downloadProgress( qint64 bytesReceived, qint64 bytesTotal );
 | |
| %Docstring
 | |
| Emitted when data are ready to be processed
 | |
| %End
 | |
| 
 | |
| };
 | |
| 
 | |
| /************************************************************************
 | |
|  * This file has been generated automatically from                      *
 | |
|  *                                                                      *
 | |
|  * src/gui/qgsfiledownloaderdialog.h                                    *
 | |
|  *                                                                      *
 | |
|  * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | |
|  ************************************************************************/
 |