Skip to content
Permalink
Browse files

[processing] Add version method to QgsProcessingProvider

Allows retrieving provider version
  • Loading branch information
nyalldawson committed Apr 8, 2019
1 parent 67dabd7 commit 708bf4425bdd6b512b5a10e63374ced2ef6498b8
@@ -87,6 +87,16 @@ The default implementation returns the same string as name().
.. seealso:: :py:func:`name`

.. seealso:: :py:func:`id`
%End

virtual QString versionInfo() const;
%Docstring
Returns a version information string for the provider, or an empty string if this
is not applicable (e.g. for inbuilt Processing providers).

For plugin based providers, this should return the plugin's version identifier.

.. versionadded:: 3.8
%End

virtual bool canBeActivated() const;
@@ -51,6 +51,11 @@ QString QgsProcessingProvider::longName() const
return name();
}

QString QgsProcessingProvider::versionInfo() const
{
return QString();
}

QStringList QgsProcessingProvider::supportedOutputRasterLayerExtensions() const
{
return QgsRasterFileWriter::supportedFormatExtensions();
@@ -98,6 +98,16 @@ class CORE_EXPORT QgsProcessingProvider : public QObject
*/
virtual QString longName() const;

/**
* Returns a version information string for the provider, or an empty string if this
* is not applicable (e.g. for inbuilt Processing providers).
*
* For plugin based providers, this should return the plugin's version identifier.
*
* \since QGIS 3.8
*/
virtual QString versionInfo() const;

/**
* Returns TRUE if the provider can be activated, or FALSE if it cannot be activated (e.g. due to
* missing external dependencies).

0 comments on commit 708bf44

Please sign in to comment.
You can’t perform that action at this time.