QGIS API Documentation
2.8.2-Wien
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
src
core
qgsvectorlayereditpassthrough.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsvectorlayereditpassthrough.h
3
---------------------
4
begin : Jan 12 2015
5
copyright : (C) 2015 by Sandro Mani
6
email : manisandro at gmail dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
#ifndef QGSVECTORLAYEREDITPASSTHROUGH_H
16
#define QGSVECTORLAYEREDITPASSTHROUGH_H
17
18
#include "
qgsvectorlayereditbuffer.h
"
19
20
class
QgsVectorLayer
;
21
22
class
CORE_EXPORT
QgsVectorLayerEditPassthrough
:
public
QgsVectorLayerEditBuffer
23
{
24
Q_OBJECT
25
public
:
26
QgsVectorLayerEditPassthrough
(
QgsVectorLayer
* layer ) { L = layer; }
27
bool
isModified
()
const override
{
return
false
; }
28
bool
addFeature
(
QgsFeature
& f )
override
;
29
bool
addFeatures
(
QgsFeatureList
& features )
override
;
30
bool
deleteFeature
(
QgsFeatureId
fid )
override
;
31
bool
changeGeometry
(
QgsFeatureId
fid,
QgsGeometry
* geom )
override
;
32
bool
changeAttributeValue
(
QgsFeatureId
fid,
int
field,
const
QVariant &newValue,
const
QVariant &oldValue = QVariant() )
override
;
33
bool
addAttribute
(
const
QgsField
&field )
override
;
34
bool
deleteAttribute
(
int
attr )
override
;
35
bool
commitChanges
( QStringList& commitErrors )
override
;
36
void
rollBack
()
override
;
37
38
};
39
40
#endif // QGSVECTORLAYEREDITPASSTHROUGH_H
Generated on Sun May 10 2015 16:33:25 for QGIS API Documentation by
1.8.1.2