16#ifndef QGSTRANSACTIONGROUP_H
17#define QGSTRANSACTIONGROUP_H
54 QSet<QgsVectorLayer *>
layers()
const;
86 void onEditingStarted();
87 void onLayerDeleted();
88 void onBeforeCommitChanges(
bool stopEditing );
92 bool mEditingStopping =
false;
94 void disableTransaction();
98 QSet<QgsVectorLayer *> mLayers;
100 std::unique_ptr<QgsTransaction> mTransaction;
103 QString mProviderKey;
QString connString() const
Returns the connection string used by this transaction group.
bool modified() const
Returns true if any of the layers in this group reports a modification.
QgsTransactionGroup(QObject *parent=nullptr)
Constructor for QgsTransactionGroup.
bool isEmpty() const
Returns true if there are no layers in this transaction group.
void commitError(const QString &msg)
Will be emitted whenever there is a commit error.
QString providerKey() const
Returns the provider key used by this transaction group.
bool addLayer(QgsVectorLayer *layer)
Add a layer to this transaction group.
QSet< QgsVectorLayer * > layers() const
Gets the set of layers currently managed by this transaction group.
Represents a vector layer which manages a vector based dataset.