QGIS API Documentation
3.14.0-Pi (9f7028fd23)
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
c
e
f
g
h
k
l
m
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Functions
a
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
n
o
p
q
r
s
t
u
w
Typedefs
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
core
qgsvectorfilewritertask.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsvectorfilewritertask.h
3
-------------------------
4
begin : Feb 2017
5
copyright : (C) 2017 by Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSVECTORFILEWRITERTASK_H
19
#define QGSVECTORFILEWRITERTASK_H
20
21
#include "qgis_core.h"
22
#include "
qgsvectorfilewriter.h
"
23
#include "
qgstaskmanager.h
"
24
35
class
CORE_EXPORT
QgsVectorFileWriterTask
:
public
QgsTask
36
{
37
Q_OBJECT
38
39
public
:
40
45
QgsVectorFileWriterTask
(
QgsVectorLayer
*layer,
46
const
QString &fileName,
47
const
QgsVectorFileWriter::SaveVectorOptions
&options );
48
49
void
cancel
()
override
;
50
51
signals:
52
58
void
writeComplete(
const
QString &newFilename );
59
65
void
completed(
const
QString &newFilename,
const
QString &newLayer )
SIP_SKIP
;
66
71
void
errorOccurred(
int
error,
const
QString &errorMessage );
72
73
protected
:
74
75
bool
run
()
override
;
76
void
finished
(
bool
result )
override
;
77
78
private
:
79
80
QString mDestFileName;
81
82
std::unique_ptr< QgsFeedback > mOwnedFeedback;
83
QgsVectorFileWriter::WriterError
mError =
QgsVectorFileWriter::NoError
;
84
85
QString mNewFilename;
86
QString mNewLayer;
87
QString mErrorMessage;
88
89
QgsVectorFileWriter::SaveVectorOptions
mOptions;
90
QgsVectorFileWriter::PreparedWriterDetails mWriterDetails;
91
std::unique_ptr< QgsVectorFileWriter::FieldValueConverter > mFieldValueConverter;
92
93
QgsCoordinateTransformContext
mTransformContext;
94
};
95
96
#endif
QgsCoordinateTransformContext
Definition:
qgscoordinatetransformcontext.h:57
QgsVectorFileWriter::SaveVectorOptions
Definition:
qgsvectorfilewriter.h:443
QgsVectorFileWriterTask
Definition:
qgsvectorfilewritertask.h:35
qgstaskmanager.h
QgsVectorFileWriter::WriterError
WriterError
Definition:
qgsvectorfilewriter.h:167
QgsTask::finished
virtual void finished(bool result)
If the task is managed by a QgsTaskManager, this will be called after the task has finished (whether ...
Definition:
qgstaskmanager.h:280
QgsTask::cancel
virtual void cancel()
Notifies the task that it should terminate.
Definition:
qgstaskmanager.cpp:91
SIP_SKIP
#define SIP_SKIP
Definition:
qgis_sip.h:126
QgsVectorLayer
Definition:
qgsvectorlayer.h:385
QgsVectorFileWriter::NoError
@ NoError
Definition:
qgsvectorfilewriter.h:169
qgsvectorfilewriter.h
QgsTask::run
virtual bool run()=0
Performs the task's operation.
QgsTask
Abstract base class for long running background tasks. Tasks can be controlled directly,...
Definition:
qgstaskmanager.h:52
Generated on Mon Jun 22 2020 05:14:09 for QGIS API Documentation by
1.8.17