QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
c
e
f
g
h
k
l
m
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Functions
3
a
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
c
l
s
t
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
core
qgsdataitemproviderregistry.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsdataitemproviderregistry.h
3
--------------------------------------
4
Date : March 2015
5
Copyright : (C) 2015 by Martin Dobias
6
Email : wonder dot sk at gmail dot com
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 QGSDATAITEMPROVIDERREGISTRY_H
17
#define QGSDATAITEMPROVIDERREGISTRY_H
18
19
#include <QList>
20
#include <QMap>
21
#include <QObject>
22
23
#include "
qgis_sip.h
"
24
25
#include "qgis_core.h"
26
27
class
QgsDataItemProvider
;
28
39
class
CORE_EXPORT
QgsDataItemProviderRegistry
:
public
QObject
40
{
41
Q_OBJECT
42
public
:
43
44
QgsDataItemProviderRegistry
();
45
46
~
QgsDataItemProviderRegistry
();
47
49
QgsDataItemProviderRegistry
(
const
QgsDataItemProviderRegistry
&rh ) =
delete
;
51
QgsDataItemProviderRegistry
&
operator=
(
const
QgsDataItemProviderRegistry
&rh ) =
delete
;
52
56
QList<QgsDataItemProvider *> providers()
const
;
57
62
QgsDataItemProvider
*provider(
const
QString &providerName )
const
;
63
68
void
addProvider(
QgsDataItemProvider
*provider
SIP_TRANSFER
);
69
74
void
removeProvider(
QgsDataItemProvider
*provider );
75
82
QString dataProviderKey(
const
QString &dataItemProviderName );
83
84
signals:
85
90
void
providerAdded
(
QgsDataItemProvider
*provider );
91
96
void
providerWillBeRemoved
(
QgsDataItemProvider
*provider );
97
98
private
:
99
#ifdef SIP_RUN
100
QgsDataItemProviderRegistry
(
const
QgsDataItemProviderRegistry
&rh );
101
#endif
102
104
QList<QgsDataItemProvider *> mProviders;
105
107
QMap<QString, QString> mDataItemProviderOrigin;
108
109
};
110
111
#endif // QGSDATAITEMPROVIDERREGISTRY_H
QgsDataItemProviderRegistry::providerAdded
void providerAdded(QgsDataItemProvider *provider)
Emitted when a new data item provider has been added.
QgsDataItemProviderRegistry
This class keeps a list of data item providers that may add items to the browser tree.
Definition:
qgsdataitemproviderregistry.h:40
QgsDataItemProvider
This is the interface for those who want to add custom data items to the browser tree.
Definition:
qgsdataitemprovider.h:46
qgis_sip.h
SIP_TRANSFER
#define SIP_TRANSFER
Definition:
qgis_sip.h:36
QgsDataItemProviderRegistry::QgsDataItemProviderRegistry
QgsDataItemProviderRegistry(const QgsDataItemProviderRegistry &rh)=delete
QgsDataItemProviderRegistry cannot be copied.
QgsDataItemProviderRegistry::providerWillBeRemoved
void providerWillBeRemoved(QgsDataItemProvider *provider)
Emitted when a data item provider is about to be removed.
QgsDataItemProviderRegistry::operator=
QgsDataItemProviderRegistry & operator=(const QgsDataItemProviderRegistry &rh)=delete
QgsDataItemProviderRegistry cannot be copied.
Generated on Sat Oct 24 2020 17:43:09 for QGIS API Documentation by
1.8.20