18 #ifndef QGSVECTORFILEWRITERTASK_H 19 #define QGSVECTORFILEWRITERTASK_H 21 #include "qgis_core.h" 47 const QString &fileName,
58 void writeComplete(
const QString &newFilename );
64 void errorOccurred(
int error,
const QString &errorMessage );
69 void finished(
bool result )
override;
73 QString mDestFileName;
75 std::unique_ptr< QgsFeedback > mOwnedFeedback;
79 QString mErrorMessage;
82 QgsVectorFileWriter::PreparedWriterDetails mWriterDetails;
83 std::unique_ptr< QgsVectorFileWriter::FieldValueConverter > mFieldValueConverter;
Options to pass to writeAsVectorFormat()
Abstract base class for long running background tasks.
virtual void cancel()
Notifies the task that it should terminate.
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.
QgsTask task which performs a QgsVectorFileWriter layer saving operation as a background task...
Represents a vector layer which manages a vector based data sets.