18 #ifndef QGSPROCESSING_H 
   19 #define QGSPROCESSING_H 
   21 #include "qgis_core.h" 
   22 #include "qgssettingsentry.h" 
   48       TypeVectorAnyGeometry = -1, 
 
   51       TypeVectorPolygon = 2, 
 
   74           return QStringLiteral( 
"TypeMapLayer" );
 
   76           return QStringLiteral( 
"TypeVectorAnyGeometry" );
 
   78           return QStringLiteral( 
"TypeVectorPoint" );
 
   80           return QStringLiteral( 
"TypeVectorLine" );
 
   82           return QStringLiteral( 
"TypeVectorPolygon" );
 
   84           return QStringLiteral( 
"TypeRaster" );
 
   86           return QStringLiteral( 
"TypeFile" );
 
   88           return QStringLiteral( 
"TypeVector" );
 
   90           return QStringLiteral( 
"TypeMesh" );
 
  104     static const inline QgsSettingsEntryBool settingsPreferFilenameAsLayerName = QgsSettingsEntryBool( QStringLiteral( 
"Processing/Configuration/PREFER_FILENAME_AS_LAYER_NAME" ), QgsSettings::NoSection, 
true, QObject::tr( 
"Prefer filename as layer name" ) );
 
  106     static const inline QgsSettingsEntryString settingsTempPath = QgsSettingsEntryString( QStringLiteral( 
"Processing/Configuration/TEMP_PATH2" ), QgsSettings::NoSection, QString() );
 
  108     static const inline QgsSettingsEntryInteger settingsDefaultOutputVectorLayerExt = QgsSettingsEntryInteger( QStringLiteral( 
"Processing/Configuration/DefaultOutputVectorLayerExt" ), QgsSettings::NoSection, -1 );
 
  110     static const inline QgsSettingsEntryInteger settingsDefaultOutputRasterLayerExt = QgsSettingsEntryInteger( QStringLiteral( 
"Processing/Configuration/DefaultOutputRasterLayerExt" ), QgsSettings::NoSection, -1 );
 
Contains enumerations and other constants for use in processing algorithms and parameters.
static const QString TEMPORARY_OUTPUT
Constant used to indicate that a Processing algorithm output should be a temporary layer/file.
PythonOutputType
Available Python output types.
@ PythonQgsProcessingAlgorithmSubclass
Full Python QgsProcessingAlgorithm subclass.
SourceType
Data source types enum.
@ TypeVectorLine
Vector line layers.
@ TypeMapLayer
Any map layer type (raster or vector or mesh)
@ TypeVectorPolygon
Vector polygon layers.
@ TypeFile
Files (i.e. non map layer sources, such as text files)
@ TypeVector
Tables (i.e. vector layers with or without geometry). When used for a sink this indicates the sink ha...
@ TypeRaster
Raster layers.
@ TypeVectorPoint
Vector point layers.
@ TypeVectorAnyGeometry
Any vector layer with geometry.
static QString sourceTypeToString(SourceType type)
Converts a source type to a string representation.