QGIS/python/core/qgsvectorfilewritertask.sip
Nyall Dawson 95d000f662 [FEATURE] Background saving of vector layers
Switches the vector layer save operation to a background task
using the task manager framework. Allows layers to saved without
blocking the interface.
2017-02-13 08:30:29 +10:00

26 lines
550 B
Plaintext

class QgsVectorFileWriterTask : QgsTask
{
%TypeHeaderCode
#include <qgsvectorfilewritertask.h>
%End
public:
QgsVectorFileWriterTask( QgsVectorLayer* layer,
const QString& fileName,
const QgsVectorFileWriter::SaveVectorOptions& options );
virtual void cancel();
signals:
void writeComplete( const QString& newFilename );
void errorOccurred( int error, const QString& errorMessage );
protected:
virtual bool run();
virtual void finished( bool result );
};