18#ifndef QGSRASTERFILEWRITERTASK_H
19#define QGSRASTERFILEWRITERTASK_H
103 void finished(
bool result )
override;
111 std::unique_ptr< QgsRasterPipe > mPipe;
113 QString mDestFileName;
115 std::unique_ptr< QgsRasterBlockFeedback > mFeedback;
RasterFileWriterResult
Raster file export results.
@ Success
Successful export.
Represents a coordinate reference system (CRS).
Contains information about the context in which a coordinate transform is executed.
~QgsRasterFileWriterTask() override
void writeComplete(const QString &outputUrl)
Emitted when writing the layer is successfully completed.
Q_DECL_DEPRECATED QgsRasterFileWriterTask(const QgsRasterFileWriter &writer, QgsRasterPipe *pipe, int columns, int rows, const QgsRectangle &outputExtent, const QgsCoordinateReferenceSystem &crs)
Constructor for QgsRasterFileWriterTask.
void errorOccurred(int error, const QString &errorMessage)
Emitted when an error occurs which prevented the file being written (or if the task is canceled).
void errorOccurred(int error)
Emitted when an error occurs which prevented the file being written (or if the task is canceled).
The raster file writer which allows you to save a raster to a new file.
Contains a pipeline of raster interfaces for sequential raster processing.
A rectangle specified with double values.
virtual void finished(bool result)
If the task is managed by a QgsTaskManager, this will be called after the task has finished (whether ...
virtual bool run()=0
Performs the task's operation.
virtual void cancel()
Notifies the task that it should terminate.
QgsTask(const QString &description=QString(), QgsTask::Flags flags=AllFlags)
Constructor for QgsTask.