2017-05-14 09:48:41 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgsdataitemproviderregistry.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-03-04 19:26:42 +07:00
|
|
|
|
|
|
|
class QgsDataItemProviderRegistry
|
|
|
|
{
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
This class keeps a list of data item providers that may add items to the browser tree.
|
|
|
|
When created, it automatically adds providers from provider plugins (e.g. PostGIS, WMS, ...)
|
2017-05-14 09:48:41 +02:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
QgsDataItemProviderRegistry is not usually directly created, but rather accessed through
|
2017-12-19 11:43:52 -04:00
|
|
|
:py:func:`QgsApplication.dataItemProviderRegistry()`
|
2017-05-14 09:48:41 +02:00
|
|
|
|
|
|
|
.. versionadded:: 2.10
|
|
|
|
%End
|
|
|
|
|
2015-03-04 19:26:42 +07:00
|
|
|
%TypeHeaderCode
|
2017-05-14 09:48:41 +02:00
|
|
|
#include "qgsdataitemproviderregistry.h"
|
2015-03-04 19:26:42 +07:00
|
|
|
%End
|
|
|
|
public:
|
2017-05-14 09:48:41 +02:00
|
|
|
|
2016-12-28 16:09:05 +10:00
|
|
|
QgsDataItemProviderRegistry();
|
2017-05-14 09:48:41 +02:00
|
|
|
|
2015-03-04 19:26:42 +07:00
|
|
|
~QgsDataItemProviderRegistry();
|
|
|
|
|
|
|
|
|
2017-05-14 09:48:41 +02:00
|
|
|
QList<QgsDataItemProvider *> providers() const;
|
|
|
|
%Docstring
|
2018-10-27 10:38:06 +10:00
|
|
|
Returns the list of available providers.
|
2017-05-14 09:48:41 +02:00
|
|
|
%End
|
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void addProvider( QgsDataItemProvider *provider /Transfer/ );
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
2018-10-27 10:38:06 +10:00
|
|
|
Adds a ``provider`` implementation to the registry. Ownership of the provider
|
|
|
|
is transferred to the registry.
|
2017-05-14 09:48:41 +02:00
|
|
|
%End
|
2015-03-05 00:09:39 +07:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void removeProvider( QgsDataItemProvider *provider );
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
2018-10-27 10:38:06 +10:00
|
|
|
Removes a ``provider`` implementation from the registry.
|
|
|
|
The provider object is automatically deleted.
|
2017-05-14 09:48:41 +02:00
|
|
|
%End
|
2015-03-04 19:26:42 +07:00
|
|
|
|
2017-05-14 10:50:30 +02:00
|
|
|
private:
|
|
|
|
QgsDataItemProviderRegistry( const QgsDataItemProviderRegistry &rh );
|
2015-03-04 19:26:42 +07:00
|
|
|
};
|
2017-05-14 09:48:41 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgsdataitemproviderregistry.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|