QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
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. | |
virtual QgsProviderSourceWidget * | createWidget (QgsMapLayer *layer, QWidget *parent=nullptr)=0 |
Creates a new widget to configure the source of the specified layer. | |
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. | |
virtual QString | providerKey () const =0 |
Provider key. | |
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.