18#ifndef QGSVECTORFILEWRITERTASK_H
19#define QGSVECTORFILEWRITERTASK_H
75 void finished(
bool result )
override;
78 QString mDestFileName;
80 std::unique_ptr< QgsFeedback > mOwnedFeedback;
86 QString mErrorMessage;
89 QgsVectorFileWriter::PreparedWriterDetails mWriterDetails;
90 std::unique_ptr< QgsVectorFileWriter::FieldValueConverter > mFieldValueConverter;
Contains information about the context in which a coordinate transform is executed.
QFlags< SinkFlag > SinkFlags
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.
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 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.
QgsVectorFileWriterTask(QgsVectorLayer *layer, const QString &fileName, const QgsVectorFileWriter::SaveVectorOptions &options, QgsFeatureSink::SinkFlags sinkFlags=QgsFeatureSink::SinkFlags())
Constructor for QgsVectorFileWriterTask.
Options to pass to QgsVectorFileWriter::writeAsVectorFormat().
Represents a vector layer which manages a vector based dataset.