@@ -36,12 +36,14 @@ class QgsProcessingProvider : QObject
3636%Docstring
3737 Returns an icon for the provider.
3838 \see svgIconPath()
39+ :rtype: QIcon
3940%End
4041
4142 virtual QString svgIconPath() const;
4243%Docstring
4344 Returns a path to an SVG version of the provider's icon.
4445 \see icon()
46+ :rtype: str
4547%End
4648
4749 virtual QString id() const = 0;
@@ -50,32 +52,37 @@ class QgsProcessingProvider : QObject
5052 should be a unique, short, character only string, eg "qgis" or "gdal". This
5153 string should not be localised.
5254 \see name()
55+ :rtype: str
5356%End
5457
5558 virtual QString name() const = 0;
5659%Docstring
5760 Returns the full provider name, which is used to describe the provider within the GUI.
5861 This string should be localised.
5962 \see id()
63+ :rtype: str
6064%End
6165
6266 virtual bool canBeActivated() const;
6367%Docstring
6468 Returns true if the provider can be activated, or false if it cannot be activated (e.g. due to
6569 missing external dependencies).
6670 \see isActive()
71+ :rtype: bool
6772%End
6873
6974 virtual bool isActive() const;
7075%Docstring
7176 Returns true if the provider is active and able to run algorithms.
77+ :rtype: bool
7278%End
7379
7480 virtual QStringList supportedOutputRasterLayerExtensions() const;
7581%Docstring
7682 Returns a list of the raster format file extensions supported by this provider.
7783 \see supportedOutputVectorLayerExtensions()
7884 \see supportedOutputTableExtensions()
85+ :rtype: list of str
7986%End
8087
8188 virtual QStringList supportedOutputVectorLayerExtensions() const;
@@ -84,20 +91,23 @@ class QgsProcessingProvider : QObject
8491 \see supportedOutputRasterLayerExtensions()
8592 \see supportedOutputTableExtensions()
8693 \see supportsNonFileBasedOutput()
94+ :rtype: list of str
8795%End
8896
8997 virtual QStringList supportedOutputTableExtensions() const;
9098%Docstring
9199 Returns a list of the table format file extensions supported by this provider.
92100 \see supportedOutputRasterLayerExtensions()
93101 \see supportedOutputVectorLayerExtensions()
102+ :rtype: list of str
94103%End
95104
96105 virtual bool supportsNonFileBasedOutput() const;
97106%Docstring
98107 Returns true if the provider supports non-file based outputs (such as memory layers
99108 or direct database outputs).
100109 \see supportedOutputVectorLayerExtensions()
110+ :rtype: bool
101111%End
102112
103113 virtual bool load();
@@ -107,8 +117,9 @@ class QgsProcessingProvider : QObject
107117 Subclasses should not individually load any algorithms in their load() implementations, as that must
108118 occur within the loadAlgorithms() method. Instead, subclasses should call refreshAlgorithms()
109119 from any overloaded load() method to trigger an initial load of the provider's algorithms.
110- \returns true if provider could be successfully loaded
120+ :return: true if provider could be successfully loaded
111121 \see unload()
122+ :rtype: bool
112123%End
113124
114125 virtual void unload();
@@ -126,13 +137,15 @@ class QgsProcessingProvider : QObject
126137%Docstring
127138 Returns a list of algorithms supplied by this provider.
128139 \see algorithm()
140+ :rtype: list of const QgsProcessingAlgorithm
129141%End
130142
131143 const QgsProcessingAlgorithm *algorithm( const QString &name ) const;
132144%Docstring
133145 Returns the matching algorithm by name, or a None if no matching
134146 algorithm is contained by this provider.
135147 \see algorithms()
148+ :rtype: QgsProcessingAlgorithm
136149%End
137150
138151 signals:
@@ -155,6 +168,7 @@ class QgsProcessingProvider : QObject
155168 bool addAlgorithm( QgsProcessingAlgorithm *algorithm /Transfer/ );
156169%Docstring
157170 Adds an algorithm to the provider. Ownership of the algorithm is transferred to the provider.
171+ :rtype: bool
158172%End
159173
160174 private:
0 commit comments