QGIS/python/core/processing/qgsprocessingalgorithm.sip

128 lines
3.6 KiB
Plaintext
Raw Normal View History

2017-04-03 13:53:47 +10:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/processing/qgsprocessingalgorithm.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsProcessingAlgorithm
{
2017-04-03 13:53:47 +10:00
%Docstring
Abstract base class for processing algorithms.
.. versionadded:: 3.0
%End
2017-04-03 13:53:47 +10:00
%TypeHeaderCode
#include "qgsprocessingalgorithm.h"
%End
public:
2017-04-03 13:53:47 +10:00
enum Flag
{
FlagHideFromToolbox,
FlagHideFromModeler,
FlagSupportsBatch,
2017-04-19 15:03:31 +02:00
FlagDeprecated,
};
typedef QFlags<QgsProcessingAlgorithm::Flag> Flags;
2017-04-20 13:48:50 +02:00
QgsProcessingAlgorithm();
2017-04-03 13:53:47 +10:00
%Docstring
Constructor for QgsProcessingAlgorithm.
%End
virtual ~QgsProcessingAlgorithm();
// QgsProcessingAlgorithm &operator=( const QgsProcessingAlgorithm &other ) = delete;
virtual QString name() const = 0;
2017-04-03 13:53:47 +10:00
%Docstring
Returns the algorithm name, used for identifying the algorithm. This string
should be fixed for the algorithm, and must not be localised. The name should
be unique within each provider. Names should contain lowercase alphanumeric characters
only and no spaces or other formatting characters.
\see displayName()
\see group()
\see tags()
:rtype: str
2017-04-03 13:53:47 +10:00
%End
QString id() const;
%Docstring
Returns the unique ID for the algorithm, which is a combination of the algorithm
provider's ID and the algorithms unique name (e.g. "qgis:mergelayers" ).
\see name()
\see provider()
:rtype: str
%End
virtual QString displayName() const = 0;
2017-04-03 13:53:47 +10:00
%Docstring
Returns the translated algorithm name, which should be used for any user-visible display
of the algorithm name.
\see name()
:rtype: str
2017-04-03 13:53:47 +10:00
%End
virtual QStringList tags() const;
2017-04-03 13:53:47 +10:00
%Docstring
Returns a list of tags which relate to the algorithm, and are used to assist users in searching
for suitable algorithms. These tags should be localised.
:rtype: list of str
2017-04-03 13:53:47 +10:00
%End
virtual QIcon icon() const;
2017-04-03 13:53:47 +10:00
%Docstring
Returns an icon for the algorithm.
\see svgIconPath()
:rtype: QIcon
2017-04-03 13:53:47 +10:00
%End
virtual QString svgIconPath() const;
2017-04-03 13:53:47 +10:00
%Docstring
Returns a path to an SVG version of the algorithm's icon.
\see icon()
:rtype: str
2017-04-03 13:53:47 +10:00
%End
virtual QString group() const;
2017-04-03 13:53:47 +10:00
%Docstring
Returns the name of the group this algorithm belongs to. This string
should be localised.
\see tags()
:rtype: str
2017-04-03 13:53:47 +10:00
%End
virtual Flags flags() const;
2017-04-03 13:53:47 +10:00
%Docstring
Returns the flags indicating how and when the algorithm operates and should be exposed to users.
:rtype: Flags
2017-04-03 13:53:47 +10:00
%End
QgsProcessingProvider *provider() const;
%Docstring
Returns the provider to which this algorithm belongs.
:rtype: QgsProcessingProvider
%End
private:
QgsProcessingAlgorithm( const QgsProcessingAlgorithm &other );
};
QFlags<QgsProcessingAlgorithm::Flag> operator|(QgsProcessingAlgorithm::Flag f1, QFlags<QgsProcessingAlgorithm::Flag> f2);
2017-04-03 13:53:47 +10:00
2017-04-20 13:48:50 +02:00
2017-04-03 13:53:47 +10:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/processing/qgsprocessingalgorithm.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/