QGIS/python/core/auto_generated/qgstransactiongroup.sip.in

76 lines
2.2 KiB
Plaintext
Raw Normal View History

2017-05-14 09:48:41 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgstransactiongroup.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2016-01-15 09:31:19 +01:00
class QgsTransactionGroup : QObject
{
2017-05-14 09:48:41 +02:00
2016-01-15 09:31:19 +01:00
%TypeHeaderCode
#include "qgstransactiongroup.h"
%End
public:
2016-01-15 09:31:19 +01:00
explicit QgsTransactionGroup( QObject *parent = 0 );
%Docstring
Constructor for QgsTransactionGroup
%End
2016-01-15 09:31:19 +01:00
bool addLayer( QgsVectorLayer *layer );
2017-05-14 09:48:41 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Add a layer to this transaction group.
2016-01-15 09:31:19 +01:00
2017-12-15 10:36:55 -04:00
Will return true if it is compatible and has been added.
2017-05-14 09:48:41 +02:00
%End
QSet<QgsVectorLayer *> layers() const;
%Docstring
Gets the set of layers currently managed by this transaction group.
2017-12-15 10:36:55 -04:00
:return: Layer set
2017-05-14 09:48:41 +02:00
%End
2016-01-18 13:11:02 +01:00
bool modified() const;
2017-05-14 09:48:41 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns true if any of the layers in this group reports a modification.
2017-05-14 09:48:41 +02:00
%End
2016-01-18 13:11:02 +01:00
2016-01-15 09:31:19 +01:00
QString connString() const;
2017-05-14 09:48:41 +02:00
%Docstring
Returns the connection string used by this transaction group.
2017-12-15 10:36:55 -04:00
Layers need be compatible when added.
2017-05-14 09:48:41 +02:00
%End
2016-01-15 09:31:19 +01:00
QString providerKey() const;
2017-05-14 09:48:41 +02:00
%Docstring
Returns the provider key used by this transaction group.
2017-12-15 10:36:55 -04:00
Layers need be compatible when added.
2017-05-14 09:48:41 +02:00
%End
2016-01-15 09:31:19 +01:00
bool isEmpty() const;
2017-05-14 09:48:41 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns true if there are no layers in this transaction group.
2017-05-14 09:48:41 +02:00
%End
2016-01-15 09:31:19 +01:00
signals:
2017-05-14 09:48:41 +02:00
void commitError( const QString &msg );
2017-05-14 09:48:41 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Will be emitted whenever there is a commit error
2017-05-14 09:48:41 +02:00
%End
2016-01-15 09:31:19 +01:00
};
2017-05-14 09:48:41 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgstransactiongroup.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/