QGIS API Documentation
3.14.0-Pi (9f7028fd23)
src
gui
qgssourceselectproviderregistry.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgssourceselectproviderregistry.h - QgsSourceSelectProviderRegistry
3
4
---------------------
5
begin : 1.9.2017
6
copyright : (C) 2017 by Alessandro Pasotti
7
email : apasotti at boundlessgeo dot com
8
***************************************************************************
9
* *
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
14
* *
15
***************************************************************************/
16
#ifndef QGSSOURCESELECTPROVIDERREGISTRY_H
17
#define QGSSOURCESELECTPROVIDERREGISTRY_H
18
19
#include <QList>
20
#include <QWidget>
21
22
#include "qgis_gui.h"
23
#include "
qgis_sip.h
"
24
25
#include "
qgsproviderregistry.h
"
26
27
class
QgsSourceSelectProvider
;
28
class
QgsProviderGuiRegistry
;
29
class
QgsAbstractDataSourceWidget
;
30
41
class
GUI_EXPORT
QgsSourceSelectProviderRegistry
42
{
43
public
:
44
45
QgsSourceSelectProviderRegistry
();
46
~
QgsSourceSelectProviderRegistry
();
47
49
QgsSourceSelectProviderRegistry
(
const
QgsSourceSelectProviderRegistry
&rh ) =
delete
;
51
QgsSourceSelectProviderRegistry
&operator=(
const
QgsSourceSelectProviderRegistry
&rh ) =
delete
;
52
54
QList< QgsSourceSelectProvider *> providers();
55
57
void
addProvider(
QgsSourceSelectProvider
*provider
SIP_TRANSFER
);
58
63
bool
removeProvider(
QgsSourceSelectProvider
*provider
SIP_TRANSFER
);
64
70
void
initializeFromProviderGuiRegistry(
QgsProviderGuiRegistry
*providerGuiRegistry );
71
73
QgsSourceSelectProvider
*providerByName(
const
QString &name );
74
76
QList<QgsSourceSelectProvider *> providersByKey(
const
QString &providerKey );
77
85
QgsAbstractDataSourceWidget
*createSelectionWidget(
86
const
QString &name,
87
QWidget *parent,
88
Qt::WindowFlags fl,
89
QgsProviderRegistry::WidgetMode
widgetMode
90
);
91
92
private
:
93
#ifdef SIP_RUN
94
QgsSourceSelectProviderRegistry
(
const
QgsSourceSelectProviderRegistry
&rh );
95
#endif
96
98
QList<QgsSourceSelectProvider *> mProviders;
99
100
};
101
102
#endif // QGSSOURCESELECTPROVIDERREGISTRY_H
QgsAbstractDataSourceWidget
Abstract base Data Source Widget to create connections and add layers This class provides common func...
Definition:
qgsabstractdatasourcewidget.h:42
QgsSourceSelectProviderRegistry
Definition:
qgssourceselectproviderregistry.h:41
QgsSourceSelectProvider
Definition:
qgssourceselectprovider.h:35
QgsProviderRegistry::WidgetMode
WidgetMode
Different ways a source select dialog can be used.
Definition:
qgsproviderregistry.h:63
qgsproviderregistry.h
qgis_sip.h
SIP_TRANSFER
#define SIP_TRANSFER
Definition:
qgis_sip.h:36
QgsProviderGuiRegistry
Definition:
qgsproviderguiregistry.h:49
Generated on Mon Jun 22 2020 05:14:09 for QGIS API Documentation by
1.8.17