QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
qgssldexportcontext.h
Go to the documentation of this file.
1/***************************************************************************
2 qgssldexportcontext.h - QgsSldExportContext
3
4 ---------------------
5 begin : 21.12.2022
6 copyright : (C) 2022 by Alessandro Pasotti
7 email : elpaso at itopen dot it
8 ***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16#ifndef QGSSLDEXPORTCONTEXT_H
17#define QGSSLDEXPORTCONTEXT_H
18
19#include "qgis.h"
20#include "qgis_core.h"
21
28class CORE_EXPORT QgsSldExportContext
29{
30 public:
31
36
38
42 QgsSldExportContext( const QgsSldExportContext &other ) = default;
43
48
55 QgsSldExportContext( const Qgis::SldExportOptions &options, const Qgis::SldExportVendorExtension &vendorExtension, const QString &filePath );
56
60 Qgis::SldExportOptions exportOptions() const;
61
65 void setExportOptions( const Qgis::SldExportOptions &exportOptions );
66
70 Qgis::SldExportVendorExtension vendorExtensions() const;
71
75 void setVendorExtension( const Qgis::SldExportVendorExtension &vendorExtension );
76
80 QString exportFilePath() const;
81
85 void setExportFilePath( const QString &exportFilePath );
86
87 private:
88
91 QString mExportFilePath;
92
93};
94
96
97#endif // QGSSLDEXPORTCONTEXT_H
@ NoOptions
Default SLD export.
SldExportVendorExtension
SLD export vendor extensions, allow the use of vendor extensions when exporting to SLD.
Definition: qgis.h:502
@ NoVendorExtension
No vendor extensions.
QFlags< SldExportOption > SldExportOptions
Definition: qgis.h:493
The QgsSldExportContext class holds SLD export options and other information related to SLD export of...
QgsSldExportContext & operator=(const QgsSldExportContext &other)=default
Copy the values of other into the SLD export context.
QgsSldExportContext()=default
Constructs a default SLD export context.
~QgsSldExportContext()=default
QgsSldExportContext(const QgsSldExportContext &other)=default
Constructs a copy of SLD export context other.
Q_DECLARE_METATYPE(QgsSldExportContext)