16#ifndef QGSFILEUPLOADER_H
17#define QGSFILEUPLOADER_H
23#include <QNetworkReply>
54 QgsFileUploader(
const QString &uploadFileName,
const QUrl &url,
const QString &formName = QString(),
const QString &authcfg = QString(),
bool delayStart =
true );
89 void onUploadProgress( qint64 bytesSent, qint64 bytesTotal );
100 void error(
const QStringList &errorMessages );
101 void error(
const QString &errorMessage );
105 bool mUploadCanceled;
void startUpload()
Called to start the upload.
void uploadExited()
Emitted always when the uploader exits.
void cancelUpload()
Call to abort the upload and delete this object after the cancellation has been processed.
void uploadError(QStringList errorMessages)
Emitted when an error makes the upload fail.
void uploadCompleted(const QUrl &url)
Emitted when the upload has completed successfully.
void uploadCanceled()
Emitted when the upload was canceled by the user.
QgsFileUploader(const QString &uploadFileName, const QUrl &url, const QString &formName=QString(), const QString &authcfg=QString(), bool delayStart=true)
QgsFileUploader.
void uploadProgress(qint64 bytesSent, qint64 bytesTotal)
Emitted when data are ready to be processed.