QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
18 #ifndef QGSVECTORFILEWRITERTASK_H
19 #define QGSVECTORFILEWRITERTASK_H
21 #include "qgis_core.h"
46 const QString &fileName,
76 void finished(
bool result )
override;
80 QString mDestFileName;
82 std::unique_ptr< QgsFeedback > mOwnedFeedback;
87 QString mErrorMessage;
90 QgsVectorFileWriter::PreparedWriterDetails mWriterDetails;
91 std::unique_ptr< QgsVectorFileWriter::FieldValueConverter > mFieldValueConverter;
Contains information about the context in which a coordinate transform is executed.
Options to pass to writeAsVectorFormat()
QgsTask task which performs a QgsVectorFileWriter layer saving operation as a background task.
virtual void finished(bool result)
If the task is managed by a QgsTaskManager, this will be called after the task has finished (whether ...
void errorOccurred(int error, const QString &errorMessage)
Emitted when an error occurs which prevented the file being written (or if the task is canceled).
virtual void cancel()
Notifies the task that it should terminate.
void completed(const QString &newFilename, const QString &newLayer)
Emitted when writing the layer is successfully completed.
void writeComplete(const QString &newFilename)
Emitted when writing the layer is successfully completed.
Represents a vector layer which manages a vector based data sets.
virtual bool run()=0
Performs the task's operation.
Abstract base class for long running background tasks.