16#ifndef QGSSLDEXPORTCONTEXT_H
17#define QGSSLDEXPORTCONTEXT_H
87 QStringList
errors()
const {
return mErrors; }
96 void pushError(
const QString &error ) { mErrors << error; }
114 void pushWarning(
const QString &warning ) { mWarnings << warning; }
122 QVariantMap extraProperties()
const;
130 void setExtraProperties(
const QVariantMap &properties );
136 QString mExportFilePath;
138 QStringList mWarnings;
139 QVariantMap mExtraProperties;
@ NoOptions
Default SLD export.
SldExportVendorExtension
SLD export vendor extensions, allow the use of vendor extensions when exporting to SLD.
@ NoVendorExtension
No vendor extensions.
QFlags< SldExportOption > SldExportOptions
Holds SLD export options and other information related to SLD export of a QGIS layer style.
QStringList warnings() const
Returns a list of warnings which occurred during the conversion.
Qgis::SldExportVendorExtension vendorExtensions() const
Returns the vendor extension enabled for the SLD export.
QString exportFilePath() const
Returns the export file path for the SLD.
QStringList errors() const
Returns a list of errors which occurred during the conversion.
void setExportFilePath(const QString &exportFilePath)
Sets the export file path for the SLD to exportFilePath.
QgsSldExportContext & operator=(const QgsSldExportContext &other)=default
void pushWarning(const QString &warning)
Pushes a warning message generated during the conversion.
void setExportOptions(const Qgis::SldExportOptions &exportOptions)
Set export options to exportOptions.
Qgis::SldExportOptions exportOptions() const
Returns the export options.
QgsSldExportContext()=default
Constructs a default SLD export context.
~QgsSldExportContext()=default
void pushError(const QString &error)
Pushes a error message generated during the conversion.
QgsSldExportContext(const QgsSldExportContext &other)=default
void setVendorExtension(const Qgis::SldExportVendorExtension &vendorExtension)
Sets the vendor extensions to vendorExtension.
Q_DECLARE_METATYPE(QgsSldExportContext)