mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-03 00:14:12 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			76 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			76 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/core/qgstransactiongroup.h                                       *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | 
						|
 ************************************************************************/
 | 
						|
 | 
						|
 | 
						|
 | 
						|
class QgsTransactionGroup : QObject
 | 
						|
{
 | 
						|
 | 
						|
%TypeHeaderCode
 | 
						|
#include "qgstransactiongroup.h"
 | 
						|
%End
 | 
						|
  public:
 | 
						|
 | 
						|
    explicit QgsTransactionGroup( QObject *parent = 0 );
 | 
						|
%Docstring
 | 
						|
Constructor for QgsTransactionGroup
 | 
						|
%End
 | 
						|
 | 
						|
    bool addLayer( QgsVectorLayer *layer );
 | 
						|
%Docstring
 | 
						|
Add a layer to this transaction group.
 | 
						|
 | 
						|
Will return ``True`` if it is compatible and has been added.
 | 
						|
%End
 | 
						|
 | 
						|
    QSet<QgsVectorLayer *> layers() const;
 | 
						|
%Docstring
 | 
						|
Gets the set of layers currently managed by this transaction group.
 | 
						|
 | 
						|
:return: Layer set
 | 
						|
%End
 | 
						|
 | 
						|
    bool modified() const;
 | 
						|
%Docstring
 | 
						|
Returns ``True`` if any of the layers in this group reports a modification.
 | 
						|
%End
 | 
						|
 | 
						|
    QString connString() const;
 | 
						|
%Docstring
 | 
						|
Returns the connection string used by this transaction group.
 | 
						|
Layers need be compatible when added.
 | 
						|
%End
 | 
						|
 | 
						|
    QString providerKey() const;
 | 
						|
%Docstring
 | 
						|
Returns the provider key used by this transaction group.
 | 
						|
Layers need be compatible when added.
 | 
						|
%End
 | 
						|
 | 
						|
    bool isEmpty() const;
 | 
						|
%Docstring
 | 
						|
Returns ``True`` if there are no layers in this transaction group.
 | 
						|
%End
 | 
						|
 | 
						|
  signals:
 | 
						|
 | 
						|
    void commitError( const QString &msg );
 | 
						|
%Docstring
 | 
						|
Will be emitted whenever there is a commit error
 | 
						|
%End
 | 
						|
 | 
						|
};
 | 
						|
 | 
						|
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/core/qgstransactiongroup.h                                       *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | 
						|
 ************************************************************************/
 |