QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
elevation
qgsprofilesourceregistry.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsprofilesourceregistry.h
3
--------------------------------------
4
Date : April 2024
5
Copyright : (C) 2024 by Germán Carrillo
6
Email : german at opengis dot ch
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSPROFILESOURCEREGISTRY_H
17
#define QGSPROFILESOURCEREGISTRY_H
18
19
#include "qgis_core.h"
20
#include "
qgis_sip.h
"
21
22
class
QgsAbstractProfileSource
;
23
24
#include <QObject>
25
#include <QList>
26
27
37
class
CORE_EXPORT
QgsProfileSourceRegistry
:
public
QObject
38
{
39
Q_OBJECT
40
41
public
:
45
QgsProfileSourceRegistry
();
46
47
~QgsProfileSourceRegistry
()
override
;
48
52
QList< QgsAbstractProfileSource * >
profileSources
()
const
;
53
59
bool
registerProfileSource
(
QgsAbstractProfileSource
*source
SIP_TRANSFER
);
60
66
Q_DECL_DEPRECATED
bool
unregisterProfileSource
(
QgsAbstractProfileSource
*source )
SIP_DEPRECATED
;
67
76
bool
unregisterProfileSource
(
const
QString &sourceId );
77
85
QgsAbstractProfileSource
*
findSourceById
(
const
QString &sourceId )
const
;
86
87
signals:
88
97
void
profileSourceRegistered
(
const
QString &sourceId,
const
QString &sourceName );
98
106
void
profileSourceUnregistered
(
const
QString &sourceId );
107
108
private
:
109
QList< QgsAbstractProfileSource * > mSources;
110
111
Q_DISABLE_COPY(
QgsProfileSourceRegistry
)
112
};
113
114
#endif
// QGSPROFILESOURCEREGISTRY_H
QgsAbstractProfileSource
Interface for classes which can generate elevation profiles.
Definition
qgsabstractprofilesource.h:35
QgsProfileSourceRegistry::findSourceById
QgsAbstractProfileSource * findSourceById(const QString &sourceId) const
Finds a registered profile source by id.
Definition
qgsprofilesourceregistry.cpp:88
QgsProfileSourceRegistry::profileSourceUnregistered
void profileSourceUnregistered(const QString &sourceId)
Signal emitted once a profile source is unregistered.
QgsProfileSourceRegistry::unregisterProfileSource
Q_DECL_DEPRECATED bool unregisterProfileSource(QgsAbstractProfileSource *source)
Unregisters a profile source and destroys its instance.
Definition
qgsprofilesourceregistry.cpp:60
QgsProfileSourceRegistry::registerProfileSource
bool registerProfileSource(QgsAbstractProfileSource *source)
Registers a profile source and takes ownership of it.
Definition
qgsprofilesourceregistry.cpp:39
QgsProfileSourceRegistry::profileSources
QList< QgsAbstractProfileSource * > profileSources() const
Returns a list of registered profile sources.
Definition
qgsprofilesourceregistry.cpp:34
QgsProfileSourceRegistry::QgsProfileSourceRegistry
QgsProfileSourceRegistry()
Constructor - creates a registry of profile sources.
Definition
qgsprofilesourceregistry.cpp:26
QgsProfileSourceRegistry::profileSourceRegistered
void profileSourceRegistered(const QString &sourceId, const QString &sourceName)
Signal emitted once a profile source is registered.
qgis_sip.h
SIP_DEPRECATED
#define SIP_DEPRECATED
Definition
qgis_sip.h:113
SIP_TRANSFER
#define SIP_TRANSFER
Definition
qgis_sip.h:35
Generated on
for QGIS API Documentation by
1.17.0