2017-09-01 17:47:55 +02:00
|
|
|
/************************************************************************
|
|
|
|
* 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
|
|
|
|
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-09-04 08:00:14 +02:00
|
|
|
QgsSourceSelectProviderRegistry is not usually directly created, but rather accessed through
|
|
|
|
QgsGui.sourceSelectProviderRegistry().
|
|
|
|
|
2017-09-04 09:10:56 +02:00
|
|
|
.. note::
|
|
|
|
|
|
|
|
This class access to QgsProviderRegistry instance to initialize, but QgsProviderRegistry is
|
|
|
|
typically initialized after QgsGui is constructed, for this reason a delayed initialization has been
|
|
|
|
implemented in the class.
|
|
|
|
|
2017-09-01 17:47:55 +02:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgssourceselectproviderregistry.h"
|
|
|
|
%End
|
2017-09-01 18:20:06 +02:00
|
|
|
public:
|
|
|
|
QgsSourceSelectProviderRegistry();
|
2017-09-01 17:47:55 +02:00
|
|
|
|
2017-09-01 18:20:06 +02:00
|
|
|
~QgsSourceSelectProviderRegistry();
|
2017-09-01 17:47:55 +02:00
|
|
|
|
|
|
|
|
2017-09-04 09:10:56 +02:00
|
|
|
QList< QgsSourceSelectProvider *> providers();
|
2017-09-01 17:47:55 +02:00
|
|
|
%Docstring
|
|
|
|
Get list of available providers
|
|
|
|
:rtype: list of QgsSourceSelectProvider
|
|
|
|
%End
|
|
|
|
|
2017-09-01 18:20:06 +02:00
|
|
|
void addProvider( QgsSourceSelectProvider *provider /Transfer/ );
|
2017-09-01 17:47:55 +02:00
|
|
|
%Docstring
|
2017-09-04 15:15:20 +02:00
|
|
|
Add a ``provider`` implementation. Takes ownership of the object.
|
2017-09-01 17:47:55 +02:00
|
|
|
%End
|
|
|
|
|
2017-09-04 15:15:20 +02:00
|
|
|
bool removeProvider( QgsSourceSelectProvider *provider /Transfer/ );
|
2017-09-01 17:47:55 +02:00
|
|
|
%Docstring
|
2017-09-04 15:15:20 +02:00
|
|
|
:return: true if the provider was actually removed and deleted
|
|
|
|
:rtype: bool
|
2017-09-01 17:47:55 +02:00
|
|
|
%End
|
|
|
|
|
2017-09-04 09:10:56 +02:00
|
|
|
QgsSourceSelectProvider *providerByName( const QString &name );
|
2017-09-01 17:47:55 +02:00
|
|
|
%Docstring
|
2017-09-04 15:15:20 +02:00
|
|
|
Return a provider by ``name`` or None if not found
|
2017-09-01 17:47:55 +02:00
|
|
|
:rtype: QgsSourceSelectProvider
|
|
|
|
%End
|
|
|
|
|
2017-09-04 09:10:56 +02:00
|
|
|
QList<QgsSourceSelectProvider *> providersByKey( const QString &providerKey );
|
2017-09-01 17:47:55 +02:00
|
|
|
%Docstring
|
2017-09-04 15:15:20 +02:00
|
|
|
Return a (possibly empty) list of providers by data ``providerkey``
|
2017-09-01 17:47:55 +02:00
|
|
|
:rtype: list of QgsSourceSelectProvider
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
2017-09-01 18:20:06 +02:00
|
|
|
private:
|
|
|
|
QgsSourceSelectProviderRegistry( const QgsSourceSelectProviderRegistry &rh );
|
2017-09-01 17:47:55 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgssourceselectproviderregistry.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|