16#ifndef QGSTRANSACTIONGROUP_H
17#define QGSTRANSACTIONGROUP_H
53 QSet<QgsVectorLayer *>
layers()
const;
85 void onEditingStarted();
86 void onLayerDeleted();
87 void onBeforeCommitChanges(
bool stopEditing );
91 bool mEditingStopping =
false;
93 void disableTransaction();
97 QSet<QgsVectorLayer *> mLayers;
99 std::unique_ptr<QgsTransaction> mTransaction;
102 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.