|
QGIS API Documentation 3.99.0-Master (752b475928d)
|
Registry of profile sources used by QgsProfilePlotRenderer. More...
#include <qgsprofilesourceregistry.h>

Signals | |
| void | profileSourceRegistered (const QString &sourceId, const QString &sourceName) |
| Signal emitted once a profile source is registered. | |
| void | profileSourceUnregistered (const QString &sourceId) |
| Signal emitted once a profile source is unregistered. | |
Public Member Functions | |
| QgsProfileSourceRegistry () | |
| Constructor - creates a registry of profile sources. | |
| ~QgsProfileSourceRegistry () override | |
| QgsAbstractProfileSource * | findSourceById (const QString &sourceId) const |
| Finds a registered profile source by id. | |
| QList< QgsAbstractProfileSource * > | profileSources () const |
| Returns a list of registered profile sources. | |
| bool | registerProfileSource (QgsAbstractProfileSource *source) |
| Registers a profile source and takes ownership of it. | |
| bool | unregisterProfileSource (const QString &sourceId) |
| Unregisters a profile source by a given ID and destroys its instance. | |
| Q_DECL_DEPRECATED bool | unregisterProfileSource (QgsAbstractProfileSource *source) |
| Unregisters a profile source and destroys its instance. | |
Registry of profile sources used by QgsProfilePlotRenderer.
QgsProfileSourceRegistry is not usually directly created, but rather accessed through QgsApplication::profileSourceRegistry().
Definition at line 37 of file qgsprofilesourceregistry.h.
| QgsProfileSourceRegistry::QgsProfileSourceRegistry | ( | ) |
Constructor - creates a registry of profile sources.
Definition at line 22 of file qgsprofilesourceregistry.cpp.
|
override |
Definition at line 27 of file qgsprofilesourceregistry.cpp.
| QgsAbstractProfileSource * QgsProfileSourceRegistry::findSourceById | ( | const QString & | sourceId | ) | const |
Finds a registered profile source by id.
Returns nullptr if the source is not found in the registry.
| sourceId | Id of the source to be found in the registry. |
Definition at line 87 of file qgsprofilesourceregistry.cpp.
|
signal |
Signal emitted once a profile source is registered.
| sourceId | Unique identifier of the profile source that has been registered. |
| sourceName | Name of the profile source that has been registered. |
| QList< QgsAbstractProfileSource * > QgsProfileSourceRegistry::profileSources | ( | ) | const |
Returns a list of registered profile sources.
Definition at line 32 of file qgsprofilesourceregistry.cpp.
|
signal |
Signal emitted once a profile source is unregistered.
| sourceId | Unique identifier of the profile source that has been unregistered. |
| bool QgsProfileSourceRegistry::registerProfileSource | ( | QgsAbstractProfileSource * | source | ) |
Registers a profile source and takes ownership of it.
Returns true if the profile source could be registered and false otherwise.
Definition at line 37 of file qgsprofilesourceregistry.cpp.
| bool QgsProfileSourceRegistry::unregisterProfileSource | ( | const QString & | sourceId | ) |
Unregisters a profile source by a given ID and destroys its instance.
Returns true if the source id was found in the registry and false otherwise.
| sourceId | Profile source ID to be unregistered. |
Definition at line 72 of file qgsprofilesourceregistry.cpp.
| bool QgsProfileSourceRegistry::unregisterProfileSource | ( | QgsAbstractProfileSource * | source | ) |
Unregisters a profile source and destroys its instance.
Definition at line 59 of file qgsprofilesourceregistry.cpp.