2017-04-02 17:04:47 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/processing/qgsprocessingregistry.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-01-09 09:59:35 +10:00
|
|
|
class QgsProcessingRegistry : QObject
|
|
|
|
{
|
2017-04-02 17:04:47 +10:00
|
|
|
%Docstring
|
|
|
|
Registry for various processing components, including providers, algorithms
|
|
|
|
and various parameters and outputs.
|
|
|
|
|
|
|
|
QgsProcessingRegistry is not usually directly created, but rather accessed through
|
|
|
|
QgsApplication::processingRegistry().
|
2017-04-02 20:52:50 +10:00
|
|
|
.. versionadded:: 3.0
|
2017-04-02 17:04:47 +10:00
|
|
|
%End
|
|
|
|
|
2017-01-09 09:59:35 +10:00
|
|
|
%TypeHeaderCode
|
2017-04-02 17:04:47 +10:00
|
|
|
#include "qgsprocessingregistry.h"
|
2017-01-09 09:59:35 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2017-04-02 17:04:47 +10:00
|
|
|
QgsProcessingRegistry( QObject *parent /TransferThis/ = 0 );
|
|
|
|
%Docstring
|
|
|
|
Constructor for QgsProcessingRegistry.
|
|
|
|
%End
|
2017-01-09 09:59:35 +10:00
|
|
|
|
|
|
|
~QgsProcessingRegistry();
|
|
|
|
|
2017-04-02 12:53:31 +02:00
|
|
|
// QgsProcessingRegistry &operator=( const QgsProcessingRegistry &other ) = delete;
|
2017-04-02 17:04:47 +10:00
|
|
|
|
|
|
|
QList<QgsProcessingProvider *> providers() const;
|
|
|
|
%Docstring
|
|
|
|
Get list of available providers.
|
|
|
|
%End
|
|
|
|
|
|
|
|
bool addProvider( QgsProcessingProvider *provider /Transfer/ );
|
|
|
|
%Docstring
|
|
|
|
Add a processing provider to the registry. Ownership of the provider is transferred to the registry.
|
|
|
|
Returns false if the provider could not be added (eg if a provider with a duplicate ID already exists
|
|
|
|
in the registry).
|
2017-04-03 11:59:45 +10:00
|
|
|
\see removeProvider()
|
2017-04-02 17:04:47 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
bool removeProvider( QgsProcessingProvider *provider );
|
|
|
|
%Docstring
|
|
|
|
Removes a provider implementation from the registry (the provider object is deleted).
|
|
|
|
Returns false if the provider could not be removed (eg provider does not exist in the registry).
|
2017-04-03 11:59:45 +10:00
|
|
|
\see addProvider()
|
2017-04-02 17:04:47 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
bool removeProvider( const QString &providerId );
|
|
|
|
%Docstring
|
|
|
|
Removes a provider implementation from the registry (the provider object is deleted).
|
|
|
|
Returns false if the provider could not be removed (eg provider does not exist in the registry).
|
2017-04-03 11:59:45 +10:00
|
|
|
\see addProvider()
|
2017-04-02 17:04:47 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
QgsProcessingProvider *providerById( const QString &id );
|
|
|
|
%Docstring
|
|
|
|
Returns a matching provider by provider ID.
|
|
|
|
%End
|
2017-01-09 09:59:35 +10:00
|
|
|
|
|
|
|
signals:
|
|
|
|
|
2017-04-02 17:04:47 +10:00
|
|
|
void providerAdded( const QString &id );
|
|
|
|
%Docstring
|
|
|
|
Emitted when a provider has been added to the registry.
|
|
|
|
%End
|
2017-01-09 09:59:35 +10:00
|
|
|
|
2017-04-02 17:04:47 +10:00
|
|
|
void providerRemoved( const QString &id );
|
|
|
|
%Docstring
|
|
|
|
Emitted when a provider is removed from the registry
|
|
|
|
%End
|
2017-01-09 09:59:35 +10:00
|
|
|
|
|
|
|
private:
|
2017-04-02 17:04:47 +10:00
|
|
|
QgsProcessingRegistry( const QgsProcessingRegistry &other );
|
2017-01-09 09:59:35 +10:00
|
|
|
};
|
2017-04-02 17:04:47 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/processing/qgsprocessingregistry.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|