QGIS/python/gui/auto_generated/qgssourceselectproviderregistry.sip.in

89 lines
2.9 KiB
Plaintext
Raw Normal View History

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgssourceselectproviderregistry.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsSourceSelectProviderRegistry
{
%Docstring
2017-12-15 10:36:55 -04:00
This class keeps a list of source select providers that may add items to the QgsDataSourceManagerDialog
When created, it automatically adds providers from data provider plugins (e.g. PostGIS, WMS, ...)
2017-12-15 10:36:55 -04:00
QgsSourceSelectProviderRegistry is not usually directly created, but rather accessed through
2017-12-19 11:43:52 -04:00
:py:func:`QgsGui.sourceSelectProviderRegistry()`
.. versionadded:: 3.0
%End
%TypeHeaderCode
#include "qgssourceselectproviderregistry.h"
%End
2017-09-01 18:20:06 +02:00
public:
2017-09-11 21:43:15 +10:00
QgsSourceSelectProviderRegistry( QgsProviderGuiRegistry *providerGuiRegistry );
2017-09-11 21:43:15 +10:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsSourceSelectProviderRegistry.
2017-09-11 21:43:15 +10:00
%End
2017-09-01 18:20:06 +02:00
~QgsSourceSelectProviderRegistry();
QList< QgsSourceSelectProvider *> providers();
%Docstring
Gets list of available providers
%End
2017-09-01 18:20:06 +02:00
void addProvider( QgsSourceSelectProvider *provider /Transfer/ );
%Docstring
Add a ``provider`` implementation. Takes ownership of the object.
%End
bool removeProvider( QgsSourceSelectProvider *provider /Transfer/ );
%Docstring
2017-12-15 10:36:55 -04:00
Remove ``provider`` implementation from the list (``provider`` object is deleted)
2019-02-26 19:54:09 +10:00
:return: ``True`` if the provider was actually removed and deleted
%End
QgsSourceSelectProvider *providerByName( const QString &name );
%Docstring
Returns a provider by ``name`` or ``None`` if not found
%End
QList<QgsSourceSelectProvider *> providersByKey( const QString &providerKey );
%Docstring
Returns a (possibly empty) list of providers by data ``providerkey``
%End
QgsAbstractDataSourceWidget *createSelectionWidget(
const QString &name,
QWidget *parent,
Qt::WindowFlags fl,
QgsProviderRegistry::WidgetMode widgetMode
);
%Docstring
Gets select widget from provider with ``name``
The function is replacement of QgsProviderRegistry.createSelectionWidget() from QGIS 3.8
.. versionadded:: 3.10
%End
2017-09-01 18:20:06 +02:00
private:
QgsSourceSelectProviderRegistry( const QgsSourceSelectProviderRegistry &rh );
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgssourceselectproviderregistry.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/