QGIS API Documentation
3.10.0-A Coruña (6c816b4204)
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 "
qgis_sip.h
"
21
22
#include "qgis_core.h"
23
24
class
QgsDataItemProvider
;
25
36
class
CORE_EXPORT
QgsDataItemProviderRegistry
37
{
38
public
:
39
40
QgsDataItemProviderRegistry
();
41
42
~
QgsDataItemProviderRegistry
();
43
45
QgsDataItemProviderRegistry
(
const
QgsDataItemProviderRegistry
&rh ) =
delete
;
47
QgsDataItemProviderRegistry
&operator=(
const
QgsDataItemProviderRegistry
&rh ) =
delete
;
48
52
QList<QgsDataItemProvider *> providers()
const
;
53
58
void
addProvider(
QgsDataItemProvider
*provider
SIP_TRANSFER
);
59
64
void
removeProvider(
QgsDataItemProvider
*provider );
65
66
private
:
67
#ifdef SIP_RUN
68
QgsDataItemProviderRegistry
(
const
QgsDataItemProviderRegistry
&rh );
69
#endif
70
72
QList<QgsDataItemProvider *> mProviders;
73
74
};
75
76
#endif // QGSDATAITEMPROVIDERREGISTRY_H
QgsDataItemProviderRegistry
This class keeps a list of data item providers that may add items to the browser tree.
Definition:
qgsdataitemproviderregistry.h:36
qgis_sip.h
SIP_TRANSFER
#define SIP_TRANSFER
Definition:
qgis_sip.h:36
QgsDataItemProvider
This is the interface for those who want to add custom data items to the browser tree.
Definition:
qgsdataitemprovider.h:44
Generated on Sun Oct 27 2019 00:43:28 for QGIS API Documentation by
1.8.13