QGIS/python/core/qgstransactiongroup.sip

78 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:
explicit QgsTransactionGroup( QObject *parent = 0 );
bool addLayer( QgsVectorLayer *layer );
2017-05-14 09:48:41 +02:00
%Docstring
Add a layer to this transaction group.
2016-01-15 09:31:19 +01:00
2017-05-14 09:48:41 +02:00
Will return true if it is compatible and has been added.
:rtype: bool
%End
QSet<QgsVectorLayer *> layers() const;
%Docstring
Get the set of layers currently managed by this transaction group.
:return: Layer set
:rtype: set of QgsVectorLayer
%End
2016-01-18 13:11:02 +01:00
bool modified() const;
2017-05-14 09:48:41 +02:00
%Docstring
Returns true if any of the layers in this group reports a modification.
:rtype: bool
%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
Return the connection string used by this transaction group.
Layers need be compatible when added.
:rtype: str
%End
2016-01-15 09:31:19 +01:00
QString providerKey() const;
2017-05-14 09:48:41 +02:00
%Docstring
Return the provider key used by this transaction group.
Layers need be compatible when added.
:rtype: str
%End
2016-01-15 09:31:19 +01:00
bool isEmpty() const;
2017-05-14 09:48:41 +02:00
%Docstring
Returns true if there are no layers in this transaction group.
:rtype: bool
%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
Will be emitted whenever there is a commit error
%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 *
************************************************************************/