QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
processing
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"
22
#include "
qgsprocessingprovider.h
"
23
24
#include <QDomDocument>
25
#include <QPointer>
26
27
class
QgsProcessingModelAlgorithm;
28
34
class
CORE_EXPORT
QgsProcessingModelProvider
:
public
QgsProcessingProvider
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::QgsProcessingModelProvider
QgsProcessingModelProvider(QObject *parent=nullptr)
Constructor for QgsProcessingModelProvider.
Definition
qgsprocessingmodelprovider.cpp:33
QgsProcessingProvider::icon
virtual QIcon icon() const
Returns an icon for the provider.
Definition
qgsprocessingprovider.cpp:42
QgsProcessingProvider::name
virtual QString name() const =0
Returns the provider name, which is used to describe the provider within the GUI.
QgsProcessingProvider::QgsProcessingProvider
QgsProcessingProvider(QObject *parent=nullptr)
Constructor for QgsProcessingProvider.
Definition
qgsprocessingprovider.cpp:32
QgsProcessingProvider::svgIconPath
virtual QString svgIconPath() const
Returns a path to an SVG version of the provider's icon.
Definition
qgsprocessingprovider.cpp:47
QgsProcessingProvider::id
virtual QString id() const =0
Returns the unique provider id, used for identifying the provider.
QgsProcessingProvider::load
virtual bool load()
Loads the provider.
Definition
qgsprocessingprovider.h:355
QgsProcessingProvider::loadAlgorithms
virtual void loadAlgorithms()=0
Loads all algorithms belonging to this provider.
QgsProcessingProvider::supportsNonFileBasedOutput
virtual bool supportsNonFileBasedOutput() const
Returns true if the provider supports non-file based outputs (such as memory layers or direct databas...
Definition
qgsprocessingprovider.cpp:400
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:52
qgsprocessingprovider.h
Generated on
for QGIS API Documentation by
1.17.0