QGIS API Documentation 3.41.0-Master (cea29feecf2)
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:
44
47
49 QList<QgsProviderSourceWidgetProvider *> providers();
50
52 void addProvider( QgsProviderSourceWidgetProvider *provider SIP_TRANSFER );
53
58 bool removeProvider( QgsProviderSourceWidgetProvider *provider SIP_TRANSFER );
59
64 void initializeFromProviderGuiRegistry( QgsProviderGuiRegistry *providerGuiRegistry );
65
67 QgsProviderSourceWidgetProvider *providerByName( const QString &name );
68
70 QList<QgsProviderSourceWidgetProvider *> providersByKey( const QString &providerKey );
71
77 QgsProviderSourceWidget *createWidget( QgsMapLayer *layer, QWidget *parent SIP_TRANSFERTHIS = nullptr ) SIP_TRANSFERBACK;
78
79 private:
80#ifdef SIP_RUN
82#endif
83
85 QList<QgsProviderSourceWidgetProvider *> mProviders;
86};
87
88#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