18 #ifndef QGSPROCESSINGPROVIDER_H 19 #define QGSPROCESSINGPROVIDER_H 21 #include "qgis_core.h" 56 virtual QIcon icon()
const;
62 virtual QString svgIconPath()
const;
71 virtual QString id()
const = 0;
79 virtual QString helpId()
const;
87 virtual QString name()
const = 0;
99 virtual QString longName()
const;
117 virtual QStringList supportedOutputRasterLayerExtensions()
const;
125 virtual QStringList supportedOutputVectorLayerExtensions()
const;
141 virtual QString defaultVectorFileExtension(
bool hasGeometry =
true )
const;
154 virtual QString defaultRasterFileExtension()
const;
169 virtual bool supportsNonFileBasedOutput()
const;
180 virtual bool load() { refreshAlgorithms();
return true; }
191 void refreshAlgorithms();
197 QList< const QgsProcessingAlgorithm * > algorithms()
const;
213 void algorithmsLoaded();
221 virtual void loadAlgorithms() = 0;
230 QMap< QString, const QgsProcessingAlgorithm * > mAlgorithms;
237 #endif // QGSPROCESSINGPROVIDER_H
Abstract base class for processing providers.
Abstract base class for processing algorithms.
virtual bool isActive() const
Returns true if the provider is active and able to run algorithms.
virtual bool load()
Loads the provider.
virtual bool canBeActivated() const
Returns true if the provider can be activated, or false if it cannot be activated (e...
virtual void unload()
Unloads the provider.