mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-10-31 00:06:02 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			88 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			88 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| /************************************************************************
 | |
|  * This file has been generated automatically from                      *
 | |
|  *                                                                      *
 | |
|  * src/core/qgsvectorlayereditpassthrough.h                             *
 | |
|  *                                                                      *
 | |
|  * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | |
|  ************************************************************************/
 | |
| 
 | |
| 
 | |
| 
 | |
| %ModuleHeaderCode
 | |
| #include <qgsvectorlayereditpassthrough.h>
 | |
| %End
 | |
| 
 | |
| class QgsVectorLayerEditPassthrough : QgsVectorLayerEditBuffer
 | |
| {
 | |
| 
 | |
| %TypeHeaderCode
 | |
| #include "qgsvectorlayereditpassthrough.h"
 | |
| %End
 | |
| %ConvertToSubClassCode
 | |
|     if ( qobject_cast<QgsVectorLayerEditPassthrough *>( sipCpp ) )
 | |
|       sipType = sipType_QgsVectorLayerEditPassthrough;
 | |
|     else
 | |
|       sipType = nullptr;
 | |
| %End
 | |
|   public:
 | |
|     QgsVectorLayerEditPassthrough( QgsVectorLayer *layer );
 | |
|     virtual bool isModified() const;
 | |
| 
 | |
|     virtual bool addFeature( QgsFeature &f );
 | |
| 
 | |
|     virtual bool addFeatures( QgsFeatureList &features );
 | |
| 
 | |
|     virtual bool deleteFeature( QgsFeatureId fid );
 | |
| 
 | |
|     virtual bool deleteFeatures( const QgsFeatureIds &fids );
 | |
| 
 | |
|     virtual bool changeGeometry( QgsFeatureId fid, const QgsGeometry &geom );
 | |
| 
 | |
|     virtual bool changeAttributeValue( QgsFeatureId fid, int field, const QVariant &newValue, const QVariant &oldValue = QVariant() );
 | |
| 
 | |
| 
 | |
|     virtual bool changeAttributeValues( QgsFeatureId fid, const QgsAttributeMap &newValues, const QgsAttributeMap &oldValues );
 | |
| 
 | |
| %Docstring
 | |
| Changes values of attributes (but does not commit it).
 | |
| 
 | |
| :return: ``True`` if attributes are well updated, ``False`` otherwise
 | |
| 
 | |
| .. versionadded:: 3.0
 | |
| %End
 | |
| 
 | |
|     virtual bool addAttribute( const QgsField &field );
 | |
| 
 | |
|     virtual bool deleteAttribute( int attr );
 | |
| 
 | |
|     virtual bool renameAttribute( int attr, const QString &newName );
 | |
| 
 | |
|     virtual bool commitChanges( QStringList &commitErrors );
 | |
| 
 | |
|     virtual void rollBack();
 | |
| 
 | |
| 
 | |
|     bool update( QgsTransaction *transaction, const QString &sql, const QString &name );
 | |
| %Docstring
 | |
| Update underlying data with a SQL query embedded in a transaction.
 | |
| 
 | |
| :param transaction: Transaction in which the sql query has been run
 | |
| :param sql: The SQL query updating data
 | |
| :param name: The name of the undo/redo command
 | |
| 
 | |
| :return: ``True`` if the undo/redo command is well added to the stack, ``False`` otherwise
 | |
| 
 | |
| 
 | |
| .. versionadded:: 3.0
 | |
| %End
 | |
| 
 | |
| };
 | |
| 
 | |
| /************************************************************************
 | |
|  * This file has been generated automatically from                      *
 | |
|  *                                                                      *
 | |
|  * src/core/qgsvectorlayereditpassthrough.h                             *
 | |
|  *                                                                      *
 | |
|  * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | |
|  ************************************************************************/
 |