QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
qgsprovidersourcewidgetproviderregistry.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsprovidersourcewidgetproviderregistry.h
3 --------------------------------------
4 Date : December 2020
5 Copyright : (C) 2020 by Nyall Dawson
6 Email : nyall dot dawson at gmail dot com
7****************************************************************************/
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
17#ifndef QGSPROVIDERSOURCEWIDGETPROVIDERREGISTRY_H
18#define QGSPROVIDERSOURCEWIDGETPROVIDERREGISTRY_H
19
20#include <QWidget>
21
22#include "qgis_gui.h"
23#include "qgis_sip.h"
24
25class QgsMapLayer;
29
40{
41 public:
42
45
48
50 QList< QgsProviderSourceWidgetProvider *> providers();
51
53 void addProvider( QgsProviderSourceWidgetProvider *provider SIP_TRANSFER );
54
59 bool removeProvider( QgsProviderSourceWidgetProvider *provider SIP_TRANSFER );
60
65 void initializeFromProviderGuiRegistry( QgsProviderGuiRegistry *providerGuiRegistry );
66
68 QgsProviderSourceWidgetProvider *providerByName( const QString &name );
69
71 QList<QgsProviderSourceWidgetProvider *> providersByKey( const QString &providerKey );
72
78 QgsProviderSourceWidget *createWidget( QgsMapLayer *layer, QWidget *parent SIP_TRANSFERTHIS = nullptr ) SIP_TRANSFERBACK;
79
80 private:
81#ifdef SIP_RUN
83#endif
84
86 QList<QgsProviderSourceWidgetProvider *> mProviders;
87};
88
89#endif // QGSPROVIDERSOURCEWIDGETPROVIDERREGISTRY_H
Base class for all map layer types.
Definition qgsmaplayer.h:76
A registry / canonical manager of GUI parts of data providers.
This class keeps a list of provider source widget providers.
QgsProviderSourceWidgetProviderRegistry & operator=(const QgsProviderSourceWidgetProviderRegistry &rh)=delete
QgsProviderSourceWidgetProviderRegistry(const QgsProviderSourceWidgetProviderRegistry &rh)=delete
An interface for providers of widgets designed to configure a data provider's source.
Base class for widgets which allow customization of a provider's source URI.
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53
#define SIP_TRANSFER
Definition qgis_sip.h:36
#define SIP_TRANSFERBACK
Definition qgis_sip.h:48