QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
qgsfiledownloaderdialog.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsfiledownloaderdialog.h
3
--------------------------------------
4
Date : November 2016
5
Copyright : (C) 2016 by Alessandro Pasotti
6
Email : apasotti at boundlessgeo dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSFILEDOWNLOADERDIALOG_H
17
#define QGSFILEDOWNLOADERDIALOG_H
18
19
#include "qgis_gui.h"
20
21
#include <QProgressDialog>
22
23
class
QgsFileDownloader
;
24
36
class
GUI_EXPORT
QgsFileDownloaderDialog
:
public
QProgressDialog
37
{
38
Q_OBJECT
39
public
:
46
QgsFileDownloaderDialog
(
const
QUrl &url,
const
QString &outputFileName,
const
QString &authcfg = QString() );
47
48
signals:
50
void
downloadCompleted
();
52
void
downloadExited
();
54
void
downloadCanceled
();
56
void
downloadError
( QStringList errorMessages );
58
void
downloadProgress
( qint64 bytesReceived, qint64 bytesTotal );
59
60
private
slots:
61
62
void
onError(
const
QStringList &errors );
63
void
onDownloadProgress( qint64 bytesReceived, qint64 bytesTotal );
64
65
private
:
66
QString mOutputFileName;
67
QgsFileDownloader
*mDownloader =
nullptr
;
68
};
69
70
#endif
// QGSFILEDOWNLOADERDIALOG_H
QgsFileDownloaderDialog::downloadCompleted
void downloadCompleted()
Emitted when the download has completed successfully.
QgsFileDownloaderDialog::QgsFileDownloaderDialog
QgsFileDownloaderDialog(const QUrl &url, const QString &outputFileName, const QString &authcfg=QString())
QgsFileDownloader.
Definition
qgsfiledownloaderdialog.cpp:28
QgsFileDownloaderDialog::downloadExited
void downloadExited()
Emitted always when the downloader exits.
QgsFileDownloaderDialog::downloadError
void downloadError(QStringList errorMessages)
Emitted when an error makes the download fail.
QgsFileDownloaderDialog::downloadCanceled
void downloadCanceled()
Emitted when the download was canceled by the user.
QgsFileDownloaderDialog::downloadProgress
void downloadProgress(qint64 bytesReceived, qint64 bytesTotal)
Emitted when data are ready to be processed.
QgsFileDownloader
A utility class for downloading files.
Definition
qgsfiledownloader.h:46
Generated on
for QGIS API Documentation by
1.17.0