QGIS API Documentation 4.3.0-Master (0ff9723465c)
Loading...
Searching...
No Matches
qgsprocessingmodelprovider.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsprocessingmodelprovider.h
3 ------------------------
4 begin : September 2026
5 copyright : (C) 2026 by Nyall Dawson
6 email : nyall dot dawson at gmail dot com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#ifndef QGSPROCESSINGMODELPROVIDER_H
19#define QGSPROCESSINGMODELPROVIDER_H
20
21#include "qgis_core.h"
23
24#include <QDomDocument>
25#include <QPointer>
26
27class QgsProcessingModelAlgorithm;
28
35{
36 Q_OBJECT
37
38 public:
42 QgsProcessingModelProvider( QObject *parent SIP_TRANSFERTHIS = nullptr );
43
44 QString name() const override;
45 QString id() const override;
46 QIcon icon() const override;
47 QString svgIconPath() const override;
48 bool supportsNonFileBasedOutput() const override;
49 bool load() override;
50
51 protected:
52 void loadAlgorithms() override;
53
54 private slots:
55 void onProviderAdded( const QString &providerId );
56
57 private:
58 void loadFromFolder( const QString &folder );
59
60 bool mIsLoading = false;
61};
62
63#endif // QGSPROCESSINGMODELPROVIDER_H
QgsProcessingModelProvider(QObject *parent=nullptr)
Constructor for QgsProcessingModelProvider.
virtual QIcon icon() const
Returns an icon for the provider.
virtual QString name() const =0
Returns the provider name, which is used to describe the provider within the GUI.
QgsProcessingProvider(QObject *parent=nullptr)
Constructor for QgsProcessingProvider.
virtual QString svgIconPath() const
Returns a path to an SVG version of the provider's icon.
virtual QString id() const =0
Returns the unique provider id, used for identifying the provider.
virtual bool load()
Loads the provider.
virtual void loadAlgorithms()=0
Loads all algorithms belonging to this provider.
virtual bool supportsNonFileBasedOutput() const
Returns true if the provider supports non-file based outputs (such as memory layers or direct databas...
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:52