18 #ifndef QGSTRANSACTION_H 19 #define QGSTRANSACTION_H 64 bool addLayer(
const QString& layerId );
77 bool begin(
QString& errorMsg,
int statementTimeout = 20 );
80 bool commit(
QString& errorMsg );
83 bool rollback(
QString& errorMsg );
100 void onLayersDeleted(
const QStringList& layerids );
111 bool mTransactionActive;
116 virtual bool beginTransaction(
QString& error,
int statementTimeout ) = 0;
117 virtual bool commitTransaction(
QString& error ) = 0;
118 virtual bool rollbackTransaction(
QString& error ) = 0;
121 #endif // QGSTRANSACTION_H
This class allows including a set of layers in a database-side transaction, provided the layer data p...
This is the base class for vector data providers.
Represents a vector layer which manages a vector based data sets.