QGIS API Documentation
3.20.0-Odense (decaadbb31)
|
An interface for providers of widgets designed to configure a data provider's source. More...
#include <qgsprovidersourcewidgetprovider.h>
Public Member Functions | |
virtual | ~QgsProviderSourceWidgetProvider () |
virtual bool | canHandleLayer (QgsMapLayer *layer) const =0 |
Returns true if the provider can handle the specified layer. More... | |
virtual QgsProviderSourceWidget * | createWidget (QgsMapLayer *layer, QWidget *parent=nullptr)=0 |
Creates a new widget to configure the source of the specified layer. More... | |
virtual QString | name () const |
Source widget provider name, this is useful to retrieve a particular source widget provider in case the provider has more than one, it should be unique among all providers. More... | |
virtual QString | providerKey () const =0 |
Provider key. More... | |
An interface for providers of widgets designed to configure a data provider's source.
Definition at line 37 of file qgsprovidersourcewidgetprovider.h.
|
virtualdefault |
|
pure virtual |
Returns true
if the provider can handle the specified layer.
|
pure virtual |
Creates a new widget to configure the source of the specified layer.
It may return nullptr
if it cannot handle the layer. The returned object must be destroyed by the caller.
|
inlinevirtual |
Source widget provider name, this is useful to retrieve a particular source widget provider in case the provider has more than one, it should be unique among all providers.
The default implementation returns the providerKey()
Definition at line 53 of file qgsprovidersourcewidgetprovider.h.
|
pure virtual |
Provider key.